NVIC accessing in LPCOpen

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

NVIC accessing in LPCOpen

870件の閲覧回数
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 返信

753件の閲覧回数
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 件の賞賛
返信