Skip to content

Commit f8183af

Browse files
fpistmtadtruex
authored andcommitted
libraries(WBA): IWDG support
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 13fbb25 commit f8183af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/IWatchdog/src/IWatchdog.cpp

Lines changed: 1 addition & 1 deletion
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)