提交 d671e754 编写于 作者: A Aubr.Cool

lpccan irq add irq enter & irq leave

上级 9b4222b2
......@@ -825,6 +825,7 @@ static struct rt_can_device lpccan2;
void CAN_IRQHandler(void)
{
rt_uint32_t IntStatus;
rt_interrupt_enter();
#ifdef RT_USING_LPCCAN1
IntStatus = CAN_IntGetStatus(CAN_1);
//check receive interrupt
......@@ -1036,6 +1037,7 @@ void CAN_IRQHandler(void)
}
}
#endif /*RT_USING_LPCCAN2*/
rt_interrupt_leave();
}
int lpc_can_init(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册