Get/Set Interrupts Priority Level

Discussion created by sebasira on Feb 14, 2013
Latest reply on Feb 20, 2013 by TomE

Hello everyone!


I'm working with MCF51QE128 and CW v6.1. I was used to workig with HCS12 where interrupts can be either enable or disable. On this other MCU, there's a prioriry level for them. My question is how can I get the actual value, then set another one (for example 7 to disable all) and then, when I'm done, restore the previous value.


I was told, that there's an asm function: asm_set_ipl (you can look for it here but I don't know how to add it to my project, or if it is another way to do that


Thanks in advance!