LPC1788 - LPCOpen Using NVIC Interrupts?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1788 - LPCOpen Using NVIC Interrupts?

671 Views
johnwhitmore
Contributor III

Hello all, first off the house keeping. I'm developing using the MUCXpresso-IDE and a Segger J-Link device for an NXP LPX1788.

So my problem is that I'm sending a CAN Frame on one of the CAN Channels in the device but I'm not getting an interrupt to confirm that the Frame has been sent. That is fair enough as I've not enabled the actual peripheral interrupt in the NVIC Controller even if I have enabled the peripherals Interrupts in the CAN Registers.

My question is to do with the fact that I can't see any header file in LPCOpen for the NVIC controller? Has it not been included? For example I'm using the files can_17xx_40xx.h and can_17xx_40xx.c, using the API functions defined and implemented in these files to control the CAN Channel. There don't seem to be any such file for NVIC. I'll write my own functions to control it but I'd prefer to use a standardised API, if there is one.

Cheers for any help.

Tags (3)
1 Reply

540 Views
lpcxpresso_supp
NXP Employee
NXP Employee

You need to include the core_cm3.h file for the in-line NVIC function definitions.

Thanks and regards,

MCUXpresso Support