1
0
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:
Francisco 2021-06-28 10:03:27 +02:00 committed by GitHub
commit bc5810ea33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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
}