Skip to content

Commit 7172130

Browse files
committed
chore(iwatchdog): add HAL v2 support
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 2eb6b4c commit 7172130

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎libraries/IWatchdog/src/IWatchdog.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,11 @@ bool IWatchdogClass::isReset(bool clear)
199199
*/
200200
void IWatchdogClass::clearReset(void)
201201
{
202+
#if defined(USE_HALV2_DRIVER)
203+
LL_RCC_ForceClearResetFlags();
204+
#else
202205
LL_RCC_ClearResetFlags();
206+
#endif
203207
}
204208

205209
// Preinstantiate Object

0 commit comments

Comments
 (0)