mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 04:38:10 +00:00
With the BOARD_LATE_INITIALIZE flow, board_late_initialize() runs on a kernel thread and sets the MWDT0 prescaler. However, after it returns, the init task (NSH) is spawned and lib_cxx_initialize() invokes constructor functions, including enable_timer_group0_for_calibration() from esp-hal-3rdparty which calls timg_ll_reset_register(0), resetting all Timer Group 0 registers (including the WDT prescaler) back to their defaults. Re-apply the prescaler, timeout, and feed the WDT counter in wdt_lh_start() just before enabling the timer. This ensures correct WDT configuration regardless of any intermediate register resets by external code. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||