Disable / Enable interrupts for rest of handler on MPC5777C

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

Disable / Enable interrupts for rest of handler on MPC5777C

ソリューションへジャンプ
309件の閲覧回数
20Sidar04
Contributor III

Dear Mr./Mrs.

I have a question about enable or disable of interrupts on MPC5777C? When I check sample source code for enable interrupt, I saw assembly code such as "__asm__(" wrteei 1");" for diasble "__asm__(" wrteei 0");" Can I use C instead of asm for enable this source code? What could could be instead of "wrteei" for my source code when I prefer C? Does it essential to use assembly to develop project for INT Controller?

Best Regars.

 

0 件の賞賛
1 解決策
300件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Core SPR registers only can be accesses by special instructions. wrteei 1/0 is simplified mnemonic of SPR access.

I have sometimes been using header file as attached to simplify SPR/MSR access in C but using of assembly instruction is necessary, it cannot be done directly in C.

元の投稿で解決策を見る

0 件の賞賛
1 返信
301件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Core SPR registers only can be accesses by special instructions. wrteei 1/0 is simplified mnemonic of SPR access.

I have sometimes been using header file as attached to simplify SPR/MSR access in C but using of assembly instruction is necessary, it cannot be done directly in C.

0 件の賞賛