embedded - How to disable nesting in NVIC Interrupts in ARM Cortex M0+? -
i have started using arm cortex m0+ gpio interrupts. want disable nesting feature arm interrupts. there way it.? know default, nesting enabled in arm, want disable it.
arm cortex-m0/m0+ not support interrupt priority grouping preemption priority(nestable) , sub-priority (non-nestable) available on m3/m4/m7 example.
if wish prevent interrupt nesting; necessary either;
- set interrupts same priority, or
- disable , re-enable interrupts on entry , exit handlers.
the first of these options simplest, gives no control on execution order (which seldom matters asynchronous events, may lead non-deterministic behaviour , timing). second not prevent nesting, allow nesting before lower-priority interrupt has disabled interrupts - before has started processing actual event. result behaviour similar of sub-priorities available on cortex-m3 etc.
Comments
Post a Comment