Download DSP56800E_Quick_Start User`s Manual

Transcript
5.2.3.5 INTC_GET_IPL_n_RAW - gets the interrupt priority level bits
Call(s):
UWord16 ioctl(const int *pModuleBase, INTC_GET_IPL_n_RAW, NULL);
// ... where n is the interrupt number
Arguments:
Table 5-51. INTC_GET_IPL_n_RAW ioctl call arguments
pModuleBase
in
The INTC module identifier. Use INTC.
Description: The INTC_GET_IPL_n_RAW ioctl command returns a two-bit IPL value for given
interrupt. For the most of interrupts, the two-bit value represents one of the interrupt levels:
Disabled, Level 0, 1 and 2. For selected system interrupts the value represents the interrupt levels
Disabled, Level 1, 2 and 3. Refer to the device data sheet for more details.
Use this command in conjunction with INTC_SET_IPL_n_RAW command to save and restore the
interrupt priority level in run-time.
Returns: None.
Range Issues: None.
Special Issues: None.
Design/Implementation: The INTC_GET_IPL_n_RAW ioctl command is implemented as a
macro.
Example 5-45. INTC_GET_IPL_n_RAW
UWord16 ipl = ioctl(INTC, INTC_GET_IPL_34_RAW, NULL);
...
ioctl(INTC, INTC_SET_IPL_34_RAW, ipl);
This code saves and later restores the interrupt priority level for interrupt number 34.
5-70
Targeting 56F8xxx Platform
FREESCALE SEMICONDUCTOR