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:
parent
125c892c03
commit
b48679e497
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user