Skip to content

Commit d62a7c9

Browse files
committed
libraries(WBA): IWDG support
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 08f6d5d commit d62a7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/IWatchdog/src/IWatchdog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void IWatchdogClass::begin(uint32_t timeout, uint32_t window)
3838
}
3939

4040
// Enable the peripheral clock IWDG
41-
#ifdef RCC_CSR_LSI1ON
41+
#if defined(RCC_CSR_LSI1ON) || defined(RCC_BDCR1_LSI1ON)
4242
LL_RCC_LSI1_Enable();
4343
while (LL_RCC_LSI1_IsReady() != 1) {
4444
}

0 commit comments

Comments
 (0)