Add spi half duplex support to stm32h7#11
Closed
justapotato213 wants to merge 33 commits into
Closed
Conversation
This commit fixes the function to select the GPIO behavior for the pins associated to the board's button. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit adds an entry on Documentation regarding ESP32-C3, ESP32-C6 and ESP32-H2 boards that implement the `buttons` defconfig Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
…processing
Provide linker script preprocessing function porting for
tasking compiler
Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
Remove function prototypes for BMP180 pressure sensor and CS4344 audio DAC devices that were never actually present on this board configuration. This cleans up the header file by removing declarations for non-existent hardware. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Fix bug in temperature sensor driver where direct casting of lower half structure pointer could lead to incorrect memory access. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Fix bug in temperature sensor driver where direct casting of lower half structure pointer could lead to incorrect memory access. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This patch addresses several issues and adds enhancements to the WWDG (Window Watchdog) implementation for the STM32H7 platform. The changes include: - Extend the definitions of WWDG_CFR_PCLK1 macros to support dividers up to 128, and update the stm32_settimeout() function to consider this extended range. - Fix the "elapsed" calculations in the stm32_getstatus() function to ensure correct time remaining calculations. - Clear the EWIF (Early Wakeup Interrupt Flag) bit in the stm32_start() function, as this bit might be set by hardware before the watchdog is actually started. - Initialize the WWDG clock in the RCC_APB3ENR register and set the RCC_GCR_WW1RSC bit as per the STM32 reference manual to ensure proper behavior when enabling the WWDG1. Signed-off-by: Szymon Magrian <szymon.magrian@hexagon.com>
This commit fixes the incompatible pointer type issue due to incompatible types of the `bitexchange_t` callback. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
The interrupt handler accesses the device as well as the driver's private data. Use critical_section for mutual exclusion with drivers/usbdev, which also protects the same data with critical_section. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
These archs only align the size of the stack, forgeting to do the stack start addr alignment, this patch fixes it. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
The stack alignment operation in tricore and arm porting only aligns the size of the stack, forget to align the start addr of the stack, this patch fixes it. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
prefix compiler with ${TOOLCHAIN_PREFIX}
Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
…ntext
Since the alignment of the signal context is affected by XCPTCONTEXT_SIZE in
different Kconfig, sometimes the stack pointer is not aligned to 8 bytes, this
is not what the software and compiler expect, for example, if va_list() obtains
wide data of type long long, the offset will be wrong, So in this commit, we set
stack-aligned the base offset so that the correct offset will be set during context
restoration.
1. test code:
| void signal_handler(int signo, siginfo_t *info, void *context) {
| long long ttt = 1024000;
| printf("%lld\n", ttt);
| }
|
| struct itimerspec its = { .it_value.tv_sec = 1,
| .it_value.tv_nsec = 0,
| .it_interval.tv_sec = 1,
| .it_interval.tv_nsec = 0
| };
|
| int main(int argc, FAR char *argv[])
| {
| struct sigevent evp;
| timer_t timer_id;
|
| memset(&evp, 0, sizeof(evp));
| evp.sigev_notify = SIGEV_SIGNAL | SIGEV_THREAD_ID;
| evp.sigev_signo = SIGALRM;
| evp.sigev_notify_thread_id = gettid();
|
| timer_create(CLOCK_REALTIME, &evp, &timer_id);
|
|
| struct sigaction sa;
| memset(&sa, 0, sizeof(sa));
| sa.sa_sigaction = signal_handler;
| sa.sa_flags = SA_SIGINFO;
| sigemptyset(&sa.sa_mask);
|
| sigaction(SIGALRM, &sa, NULL);
|
| timer_settime(timer_id, 0, &its, NULL);
|
| while (1)
| sleep(1);
|
| return 0;
| }
2. before this change:
| NuttShell (NSH) NuttX-12.10.0
| nsh> hello
| 4398046527890440
| 4398046527890472
| 4398046527890504
| 4398046527890536
3. after this change:
| NuttShell (NSH) NuttX-12.10.0
| nsh> hello
| 1024000
| 1024000
| 1024000
| 1024000
Signed-off-by: chao an <anchao.archer@bytedance.com>
Add "add_link_options(--no-default-libraries)" ToolchainTasking.cmake Add "LDFLAGS += --no-default-libraries" in ToolchainTasking.defs Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
The functions `hw_write_masked` and `hw_xor_bits` (as defined in pico-sdk) were defined in NuttX twice. Additionally these definitions were in conflict (one lacked the `volatile` modifier). Now these functions and their dependencies are defined in a new header file. Its name is based on the filename of the original definition in pico-sdk: src/rp2_common/hardware_base/include/hardware/address_mapped.h This change should fix the potential issue of GPIO operations failing due to compiler optimizations caused by the absence of `volatile`. Signed-off-by: Lars Kruse <devel@sumpfralle.de>
replace **running_task with *running_task, and updated several other places accordingly Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
fix CAN flags decoding for SIM CAN Signed-off-by: raiden00pl <raiden00@railab.me>
The signal dispatch is called from interrupt handlers as well, so this_task() is wrong. The thread to which the signal is supposed to be delivered is known (stcb), use that. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
The nxsig_dispatch should just deliver the signal to either a thread by pid (tid) or to the process (group) by pid. Simplify the code so that the intent is more obvious. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
…ized issue In tricore_doirq, local variable regs is firstly used without initiazlied, this is a bug Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
Fixes incorrect nxboot_get_confirm function description (it was a copy paste from nxboot_confirm function). Signed-off-by: Michal Lenc <michallenc@seznam.cz>
…urring during compilation and linking phase when the configuration (CONFIG_ESP32S3_APP_FORMAT_LEGACY=y) is enabled.
Add release notes for 12.11.0 release Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Adds SYS_STARTUP_FN which calls constructors and init functions on common source code. Requires compatibility changes on linker script. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
Adds a common E-Fuse driver to be used by Espressif Xtensa devices. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
Updates E-Fuse driver for ESP32S3, now sharing a common implementation across Xtensa devices. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
Updates E-Fuse driver for ESP32S2, sharing a common implementation for Xtensa devices. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
Updates E-Fuse driver for ESP32, now sharing a common implementation across Xtensa devices. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
Fixes low and inconsistent bandwidth issues. Adds new configuration options for buffer management. Moves code around to make the implementation cleaner and easier to debug. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
Updates the defconfigs and board source to support driver refactor. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
Author
|
ugh shit why is it including weird stuff one sec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: Please adhere to Contributing Guidelines.
Summary
Update this section with information on why change is necessary,
what it exactly does and how, if new feature shows up, provide
references (dependencies, similar problems and solutions), etc.
Impact
Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.
Testing
Update this section with details on how did you verify the change,
what Host was used for build (OS, CPU, compiler, ..), what Target was
used for verification (arch, board:config, ..), etc. Providing build
and runtime logs from before and after change is highly appreciated.