Download Stellaris Peripheral Driver Library User's Guide

Transcript
Interrupt Controller (NVIC)
Description:
Prevents the processor from receiving interrupts. This does not affect the set of interrupts
enabled in the interrupt controller; it just gates the single interrupt from the controller to the
processor.
Note:
Previously, this function had no return value. As such, it was possible to include interrupt.h
and call this function without having included hw_types.h. Now that the return is a
tBoolean, a compiler error will occur in this case. The solution is to include hw_types.h
before including interrupt.h.
Returns:
Returns true if interrupts were already disabled when the function was called or false if they
were initially enabled.
13.2.2.4 IntMasterEnable
Enables the processor interrupt.
Prototype:
tBoolean
IntMasterEnable(void)
Description:
Allows the processor to respond to interrupts. This does not affect the set of interrupts enabled
in the interrupt controller; it just gates the single interrupt from the controller to the processor.
Note:
Previously, this function had no return value. As such, it was possible to include interrupt.h
and call this function without having included hw_types.h. Now that the return is a
tBoolean, a compiler error will occur in this case. The solution is to include hw_types.h
before including interrupt.h.
Returns:
Returns true if interrupts were disabled when the function was called or false if they were
initially enabled.
13.2.2.5 IntPendClear
Unpends an interrupt.
Prototype:
void
IntPendClear(unsigned long ulInterrupt)
Parameters:
ulInterrupt specifies the interrupt to be unpended.
Description:
The specified interrupt is unpended in the interrupt controller. This will cause any previously
generated interrupts that have not been handled yet (due to higher priority interrupts or the
interrupt no having been enabled yet) to be discarded.
190
January 11, 2011