Skip to content

Commit b612044

Browse files
ydamigoskartben
authored andcommitted
smartbond_timer: If PM is set, take into account watchdog for timeout ticks
If PM is enabled, adjust timeout ticks according to watchdog expiration. Signed-off-by: Ioannis Damigos <[email protected]>
1 parent 6b9eaa9 commit b612044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/timer/smartbond_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void sys_clock_set_timeout(int32_t ticks, bool idle)
103103
* as soon as system is awaken. Following code makes sure that
104104
* system never goes to sleep for longer time that watchdog reload value.
105105
*/
106-
if (!IS_ENABLED(CONFIG_WDT_SMARTBOND) && IS_ENABLED(CONFIG_PM)) {
106+
if (IS_ENABLED(CONFIG_PM)) {
107107
uint32_t watchdog_expire_ticks;
108108

109109
if (CRG_TOP->CLK_RCX_REG & CRG_TOP_CLK_RCX_REG_RCX_ENABLE_Msk) {

0 commit comments

Comments
 (0)