1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/ztimer: Use uint32_t for freq in periph_timer

Now that timer_init() of periph_timer uses uint32_t for the frequency, ztimer
should do the same.
This commit is contained in:
Marian Buschsieweke 2020-10-30 12:16:16 +01:00
parent 125c892c03
commit b48679e497
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
2 changed files with 2 additions and 3 deletions

View File

@ -54,7 +54,7 @@ typedef struct {
* @param[in] max_val maximum value this timer supports
*/
void ztimer_periph_timer_init(ztimer_periph_timer_t *clock, tim_t dev,
unsigned long freq, uint32_t max_val);
uint32_t freq, uint32_t max_val);
#ifdef __cplusplus
}

View File

@ -74,8 +74,7 @@ static const ztimer_ops_t _ztimer_periph_timer_ops = {
};
void ztimer_periph_timer_init(ztimer_periph_timer_t *clock, tim_t dev,
unsigned long freq,
uint32_t max_val)
uint32_t freq, uint32_t max_val)
{
clock->dev = dev;
clock->super.ops = &_ztimer_periph_timer_ops;