NVIC accessing in LPCOpen

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

NVIC accessing in LPCOpen

684 次查看
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) "

标记 (1)
0 项奖励
1 回复

567 次查看
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 项奖励