|
使用Keil5 测试RTX5虚拟定时器,打算定时50毫秒进一次回调函数,结果一直进不去,还需要其他地方设置参数么?求助
void timer_start(void)
{
timer_handle = osTimerNew(&timer_cb, osTimerPeriodic,(void *)0, NULL);
osTimerStart(timer_handle, 50);
}
osTimerId_t timer_handle;
void timer_cb(void *param)
{
board_uart_writ(4,"timer",5);//打印
}
|
|