mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-22 04:35:24 +08:00
lpccan irq add irq enter & irq leave
This commit is contained in:
parent
9b4222b2f0
commit
d671e7546c
@ -825,6 +825,7 @@ static struct rt_can_device lpccan2;
|
|||||||
void CAN_IRQHandler(void)
|
void CAN_IRQHandler(void)
|
||||||
{
|
{
|
||||||
rt_uint32_t IntStatus;
|
rt_uint32_t IntStatus;
|
||||||
|
rt_interrupt_enter();
|
||||||
#ifdef RT_USING_LPCCAN1
|
#ifdef RT_USING_LPCCAN1
|
||||||
IntStatus = CAN_IntGetStatus(CAN_1);
|
IntStatus = CAN_IntGetStatus(CAN_1);
|
||||||
//check receive interrupt
|
//check receive interrupt
|
||||||
@ -1036,6 +1037,7 @@ void CAN_IRQHandler(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /*RT_USING_LPCCAN2*/
|
#endif /*RT_USING_LPCCAN2*/
|
||||||
|
rt_interrupt_leave();
|
||||||
}
|
}
|
||||||
|
|
||||||
int lpc_can_init(void)
|
int lpc_can_init(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user