Skip to content

Commit 4608cc0

Browse files
committed
Merge branch 'bugfix/p4_lpwdt_efuse' into 'master'
fix(lpwdt): P4 LP-WDT now takes into account the EFUSE_WDT_DELAY for the timeout See merge request espressif/esp-idf!36993
2 parents e3583dd + befaa12 commit 4608cc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/hal/esp32p4/include/hal/lpwdt_ll.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ lpwdt_ll_config_stage(lp_wdt_dev_t *hw, wdt_stage_t stage, uint32_t timeout_tick
121121
switch (stage) {
122122
case WDT_STAGE0:
123123
hw->config0.wdt_stg0 = behavior;
124-
hw->config1.wdt_stg0_hold = timeout_ticks;
124+
//Account of implicty multiplier applied to stage 0 timeout tick config value
125+
hw->config1.wdt_stg0_hold = timeout_ticks >> (1 + REG_GET_FIELD(EFUSE_RD_REPEAT_DATA1_REG, EFUSE_WDT_DELAY_SEL));
125126
break;
126127
case WDT_STAGE1:
127128
hw->config0.wdt_stg1 = behavior;

0 commit comments

Comments
 (0)