mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-01 08:00:34 +08:00
[HUST CSE][src][timer.c]修复 iar 中的类型转换报错
This commit is contained in:
parent
ced40f33c5
commit
dfe0c6b090
@ -614,7 +614,7 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg)
|
|||||||
*(rt_tick_t *)arg = timer->timeout_tick;
|
*(rt_tick_t *)arg = timer->timeout_tick;
|
||||||
break;
|
break;
|
||||||
case RT_TIMER_CTRL_GET_FUNC:
|
case RT_TIMER_CTRL_GET_FUNC:
|
||||||
*(void **)arg = timer->timeout_func;
|
*(void **)arg = (void *)timer->timeout_func;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RT_TIMER_CTRL_SET_FUNC:
|
case RT_TIMER_CTRL_SET_FUNC:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user