This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好,想在z-stack中添加timer1定时器的操作,相关函数在hal_timer.c中定义。
我在GenericApp_Init()中配置和开启:
(void)HalTimerConfig(HAL_TIMER_3,HAL_TIMER_MODE_CTC,HAL_TIMER_CHANNEL_SINGLE,HAL_TIMER_CH_MODE_OVERFLOW,TRUE,timer1int);
(void)HalTimerStart(HAL_TIMER_3,100000);
并写回调函数:
static void timer1CB(uint8 timerId, uint8 channel, uint8 channelMode)
{
HalLedBlink(HAL_LED_2,0,50,500);
}
进入不了timer1CB(),不知道哪里出了问题。请问如何在z-stack中操作timer1,求指导!!!