Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: NMI Event Handling with SYSBIOS 6.40

$
0
0

Rick,

[quote user="Rick Crispo"]

 Question, would I use the following to enable interrupt 18?  

Hwi_enableIER(0x0012) 

[/quote]

You've almost got it.  0x12 = 18 dec = 10010 binary.  But, that argument corresponds to a bit mask, so this will enable interrupts 1 and 4.

I think you should use something like this to enable interrupt 18 (NMI):

        int intNum = 18;        

        int enableMask = 1 << (intNum - 1);
        key = Hwi_enableIER(enableMask);


Steve


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>