Skip to content

Commit 678bf71

Browse files
committed
chore(wl3): add IWDG support
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 31b0a02 commit 678bf71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/IWatchdog/src/IWatchdog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ bool IWatchdogClass::isReset(bool clear)
182182
bool status = LL_RCC_IsActiveFlag_IWDG1RST();
183183
#elif defined(STM32WB0x)
184184
bool status = LL_RCC_IsActiveFlag_WDGRST();
185+
#elif defined(STM32WL3x)
186+
bool status = ((RAM_VR.ResetReason & RCC_FLAG_WDGRST) == RCC_FLAG_WDGRST);
185187
#else
186188
bool status = LL_RCC_IsActiveFlag_IWDGRST();
187189
#endif

0 commit comments

Comments
 (0)