Download Stellaris Peripheral Driver Library User's Guide

Transcript
Floating-Point Unit (FPU)
11.2
API Functions
Functions
void FPUDisable (void)
void FPUEnable (void)
void FPUFlushToZeroModeSet (unsigned long ulMode)
void FPUHalfPrecisionModeSet (unsigned long ulMode)
void FPULazyStackingEnable (void)
void FPUNaNModeSet (unsigned long ulMode)
void FPURoundingModeSet (unsigned long ulMode)
void FPUStackingDisable (void)
void FPUStackingEnable (void)
11.2.1 Detailed Description
The FPU API provides functions for enabling and disabling the floating-point unit (FPUEnable() and
FPUDisable()), for controlling how the floating-point state is stored on the stack when interrupts
occur (FPUStackingEnable(), FPULazyStackingEnable(), and FPUStackingDisable()), for handling the floating-point interrupt (FPUIntRegister(), FPUIntUnregister(), FPUIntEnable(), FPUIntDisable(), FPUIntStatus(), and FPUIntClear()), and for adjusting the operation of the floating-point unit
(FPUHalfPrecisionModeSet(), FPUNaNModeSet(), FPUFlushToZeroModeSet(), and FPURoundingModeSet()).
11.2.2 Function Documentation
11.2.2.1 FPUDisable
Disables the floating-point unit.
Prototype:
void
FPUDisable(void)
Description:
This function disables the floating-point unit, preventing floating-point instructions from executing (generating a NOCP usage fault instead).
Returns:
None.
11.2.2.2 FPUEnable
Enables the floating-point unit.
144
September 09, 2011