Fix Error: chip/stm32_tim_lowerhalf.c:479:54: error: format specifies type 'unsigned long' but the argument has type 'uint32_t'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
ea171d6e5d
commit
ab31236905
@ -476,8 +476,8 @@ static int stm32_settimeout(struct timer_lowerhalf_s *lower,
|
|||||||
period = (uint32_t) timeout;
|
period = (uint32_t) timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
tmrinfo(" clock=%lu period=%lu maxtimeout=%lu\n", clock, period,
|
tmrinfo(" clock=%" PRIu32 " period=%" PRIu32 " maxtimeout=%" PRIu32 "\n",
|
||||||
(uint32_t)maxtimeout);
|
clock, period, (uint32_t)maxtimeout);
|
||||||
STM32_TIM_SETCLOCK(priv->tim, clock);
|
STM32_TIM_SETCLOCK(priv->tim, clock);
|
||||||
STM32_TIM_SETPERIOD(priv->tim, period);
|
STM32_TIM_SETPERIOD(priv->tim, period);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user