NVIC accessing in LPCOpen

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

NVIC accessing in LPCOpen

869 Views
jeanvaljean
Contributor II

Ladies and Gentlemen,

I'd like to enable the SSP0 interrupt in the NVIC block.

Maybe, I'm completely blind, but I do not find a way, how to access the NVIC block in LPCOpen environment.

To be concrete, I'd like to set  NVIC_ISER0 bit 20.

How to do that?

LPC_NVIC->ISER0 |= 1<<20 ; to my best logic, but it doesn't compile, saying: " error: 'LPC_NVIC' undeclared (first use in this function) "

Tags (1)
0 Kudos
Reply
1 Reply

752 Views
jeanvaljean
Contributor II

OK, I have found it using some example from stackoverflow.com:

NVIC->ISER[0] |= 1<<20 ; this compiles without error.

By the way: LPCOpen is a good platform, but the lack of documentation makes it very confusing to use.

What NXP calls documentation, it is worthless for a novice, and is not necessary for an expert. That's an automatically generated something, good for alibi, but useless.

0 Kudos
Reply