|
NetBurner 3.5.6
PDF Version |
Topics | |
| ColdFire Exception and Interrupt Vectors | |
| Vector offset definitions for predefined ColdFire exception and interrupt vectors. | |
Functions | |
| uint16_t | GetSR_IntLevel () |
| Get the current interrupt mask level from the Status Register (SR). | |
| void | SetSR_IntLevel (uint16_t sv) |
| Set the interrupt mask level in the Status Register (SR). | |
| uint16_t GetSR_IntLevel | ( | ) |
#include <cfinter.h>
Get the current interrupt mask level from the Status Register (SR).
Retrieves the interrupt priority mask from bits 8-10 of the ColdFire Status Register. The interrupt mask determines which interrupt priority levels are currently blocked. Only interrupts with priority higher than the current mask level can be serviced.
The returned value represents the interrupt mask level:
Expand for Example Usage
| void SetSR_IntLevel | ( | uint16_t | sv | ) |
#include <cfinter.h>
Set the interrupt mask level in the Status Register (SR).
Sets the interrupt priority mask in bits 8-10 of the ColdFire Status Register. The interrupt mask controls which interrupt priority levels are blocked. Only interrupts with priority strictly higher than the mask level can be serviced.
Valid interrupt mask values:
| sv | The interrupt mask level to set, formatted as 0x0X00 where X is the priority level (0-7). Only bits 8-10 are used; other bits in the SR are preserved. |
Expand for Example Usage