mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/ztimer: convert clock do not require pm
avoid blocking and unblocking of power_mode 0 for convert clocks
This commit is contained in:
parent
1011af27a1
commit
a6a53c98f7
@ -46,6 +46,9 @@ void ztimer_convert_init(ztimer_convert_t *ztimer_convert,
|
||||
.arg = ztimer_convert,
|
||||
},
|
||||
.super.max_value = max_value,
|
||||
# ifdef MODULE_PM_LAYERED
|
||||
.super.block_pm_mode = ZTIMER_CLOCK_NO_REQUIRED_PM_MODE,
|
||||
# endif
|
||||
};
|
||||
|
||||
*ztimer_convert = tmp;
|
||||
|
@ -111,4 +111,7 @@ void ztimer_convert_frac_init(ztimer_convert_frac_t *self,
|
||||
self->round = freq_self / freq_lower;
|
||||
self->super.super.max_value = UINT32_MAX;
|
||||
}
|
||||
#ifdef MODULE_PM_LAYERED
|
||||
self->super.super.block_pm_mode = ZTIMER_CLOCK_NO_REQUIRED_PM_MODE;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user