Disable CAN interrupts to go to sleep mode

vishalbhat88
Wed, 03 Feb 2021 09:10:38 +0000
Mbed OS

Hey,
I am having trouble going into sleep mode on LPC1768 using mbed OS v5 as my CAN interrupts are always enabled. I am using the can.attach function using IRQtype as RxIrq to attach a function whenever a CAN frame received interrupt is generated(Documentation for CAN functions:
Mbed OS Reference | CAN Class Reference)
However this is preventing the controller from going into sleep mode. Is there any way to detach the CAN interrupt and go into sleep mode? Any help would be much appreciated.

4 posts - 3 participants