我正在使用 atomthreads 在 stm8L151c6 中实现多任务任务。
我收到错误error clnk Debug\project.lkf:1 @svlreg missing for function f_TIM1_SystemTickISR
我已经将它添加到我的中断处理程序中。
@svlreg
INTERRUPT_HANDLER(TIM1_SystemTickISR, 11)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
/* Call the interrupt entry routine */
atomIntEnter();
/* Call the OS system tick handler */
atomTimerTick();
/* Ack the interrupt (Clear TIM1:SR1 register bit 0) */
TIM1->SR1 = (uint8_t)(~(uint8_t)TIM1_IT_Update);
/* Call the interrupt exit routine */
atomIntExit(TRUE);
}
我哪里出错了?