Skip to content

Commit

Permalink
stm32l4x6: Enable watchdog independently of NDEBUG
Browse files Browse the repository at this point in the history
JIRA: DEND-32
  • Loading branch information
anglov committed Sep 27, 2023
1 parent 475d247 commit a9da084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hal/armv7m/stm32/l4/stm32l4.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ void _stm32_switchFlashBank(int bank)

void _stm32_wdgReload(void)
{
#if defined(WATCHDOG) && defined(NDEBUG)
#if defined(WATCHDOG)
*(stm32_common.iwdg + iwdg_kr) = 0xaaaa;
#endif
}
Expand Down Expand Up @@ -485,7 +485,7 @@ void _stm32_init(void)

hal_cpuDataMemoryBarrier();

#if defined(WATCHDOG) && defined(NDEBUG)
#if defined(WATCHDOG)
/* Init watchdog */
/* Enable write access to IWDG */
*(stm32_common.iwdg + iwdg_kr) = 0x5555;
Expand Down

0 comments on commit a9da084

Please sign in to comment.