Skip to content

Commit

Permalink
drivers: hwinfo: stm32u0: Clear standby and stop flags
Browse files Browse the repository at this point in the history
Add the function that clear standby and stop flags

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
  • Loading branch information
marwaiehm-st committed Aug 1, 2024
1 parent c464c06 commit f9b49cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hwinfo/hwinfo_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ int z_impl_hwinfo_clear_reset_cause(void)
LL_PWR_ClearFlag_MCU();
#elif defined(CONFIG_SOC_SERIES_STM32WLX) || defined(CONFIG_SOC_SERIES_STM32WBX)
LL_PWR_ClearFlag_C1STOP_C1STB();
#elif defined(CONFIG_SOC_SERIES_STM32U0X) && defined(PWR_FLAG_SB)
LL_PWR_ClearFlag_CSB();
#elif defined(PWR_FLAG_SB)
LL_PWR_ClearFlag_SB();
#endif /* PWR_FLAG_SB */
Expand Down

0 comments on commit f9b49cb

Please sign in to comment.