Part Number: AM3352
Hi,
Is it possible to modify the PRIORITYTHRESHOLD inside an interrupt routine?
Currently we have an interrupt with PRIORITYTHRESHOLD set as "0x30"
and due to some requirment we need to increase the THRESHOLD to 0x08 inside the
interrupt service routine and return it back to 0x30 later.
Unfortunately we are not able to achieve this, we are getting lower priority
interrupts(like 0x10,0x20) even though the THRESHOLD is set to 0x08.
Below is the procedure we are trying to implement.
1> Enable priority masking threshold(PRIORITYTHRESHOLD) for an interrupt as 0x30
as mentioned in the TRM's "INTC Preemptive Processing Sequence".
2> Once the interrupt routine is called, modify the PRIORITYTHRESHOLD value to 0x08
so that interrupts lower or equal priority than 0x08 are masked.
3> Return back the PRIORITYTHRESHOLD value to the original one (0x30).
Please let me if this kind of usage is possible and if there is any
suggestion to implement this.
OS used: This is a non-OS bare metal application.
Best Regards
paddu
