mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #16573 from kfessel/p-convert-ztimer-require-no-pm
sys/ztimer: convert clock do not require pm
This commit is contained in:
commit
bc5810ea33
@ -46,6 +46,9 @@ void ztimer_convert_init(ztimer_convert_t *ztimer_convert,
|
|||||||
.arg = ztimer_convert,
|
.arg = ztimer_convert,
|
||||||
},
|
},
|
||||||
.super.max_value = max_value,
|
.super.max_value = max_value,
|
||||||
|
# ifdef MODULE_PM_LAYERED
|
||||||
|
.super.block_pm_mode = ZTIMER_CLOCK_NO_REQUIRED_PM_MODE,
|
||||||
|
# endif
|
||||||
};
|
};
|
||||||
|
|
||||||
*ztimer_convert = tmp;
|
*ztimer_convert = tmp;
|
||||||
|
@ -111,4 +111,7 @@ void ztimer_convert_frac_init(ztimer_convert_frac_t *self,
|
|||||||
self->round = freq_self / freq_lower;
|
self->round = freq_self / freq_lower;
|
||||||
self->super.super.max_value = UINT32_MAX;
|
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