AnsweredAssumed Answered

Is there a simple and safe way to disable CANbus receive Interrupt or enable CANbus receive Interrupt

Question asked by name_is_honglingjin on Sep 15, 2016
Latest reply on Sep 15, 2016 by FTITI.Walid
Hi guys:
I just want to disable the Can receive Interrupt when processing the important datas and after then enable it again.

should i config the can baud rate or other registers again ,or just change the below part:just change this:NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 2;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_InitStructure.NVIC_IRQChannel = USB_LP_CAN1_RX0_IRQn;