define enables the
//! appropriate set of defines for the device that is being used.
//!
//! \note This function is not valid on Sandstorm, Fury, and Dustdevil-class
@@ -1907,11 +1940,11 @@ GPIOPinConfigure(unsigned long ulPinConfig)
//!
//! This function enables a GPIO pin to be used as a trigger to start a uDMA
//! transaction. Any GPIO pin can be configured to be an external trigger for
-//! the uDMA. The GPIO pin will still generate interrupts if the interrupt is
+//! the uDMA. The GPIO pin still generates interrupts if the interrupt is
//! enabled for the selected pin.
//!
//! \note This function is not available on all devices, consult the data sheet
-//! to insure that the device you are using supports GPIO DMA Control.
+//! to ensure that the device you are using supports GPIO DMA Control.
//!
//! \return None.
//
@@ -1937,12 +1970,12 @@ GPIODMATriggerEnable(unsigned long ulPort, unsigned char ucPins)
//! \param ulPort is the base address of the GPIO port.
//! \param ucPins is the bit-packed representation of the pin(s).
//!
-//! This function disables a GPIO pin to be used as a trigger to start a uDMA
-//! transaction. This function can be used to disable this feature if it was
-//! enabled via a call to GPIODMATriggerEnable().
+//! This function disables a GPIO pin from being used as a trigger to start a
+//! uDMA transaction. This function can be used to disable this feature if it
+//! was enabled via a call to GPIODMATriggerEnable().
//!
//! \note This function is not available on all devices, consult the data sheet
-//! to insure that the device you are using supports GPIO DMA Control.
+//! to ensure that the device you are using supports GPIO DMA Control.
//!
//! \return None.
//
@@ -1970,11 +2003,13 @@ GPIODMATriggerDisable(unsigned long ulPort, unsigned char ucPins)
//!
//! This function enables a GPIO pin to be used as a trigger to start an ADC
//! sequence. Any GPIO pin can be configured to be an external trigger for
-//! an ADC sequence. The GPIO pin will still generate interrupts if the
-//! interrupt is enabled for the selected pin.
+//! an ADC sequence. The GPIO pin still generates interrupts if the
+//! interrupt is enabled for the selected pin. To enable the use of a GPIO pin
+//! to trigger the ADC module, the ADCSequenceConfigure() function must be called
+//! with the ADC_TRIGGER_EXTERNAL parameter.
//!
//! \note This function is not available on all devices, consult the data sheet
-//! to insure that the device you are using supports GPIO ADC Control.
+//! to ensure that the device you are using supports GPIO ADC Control.
//!
//! \return None.
//
@@ -2005,7 +2040,7 @@ GPIOADCTriggerEnable(unsigned long ulPort, unsigned char ucPins)
//! enabled via a call to GPIOADCTriggerEnable().
//!
//! \note This function is not available on all devices, consult the data sheet
-//! to insure that the device you are using supports GPIO ADC Control.
+//! to ensure that the device you are using supports GPIO ADC Control.
//!
//! \return None.
//
diff --git a/bsp/lm4f232/Libraries/driverlib/gpio.h b/bsp/lm4f232/Libraries/driverlib/gpio.h
index ba7d00b650..5320682910 100644
--- a/bsp/lm4f232/Libraries/driverlib/gpio.h
+++ b/bsp/lm4f232/Libraries/driverlib/gpio.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/hibernate.c b/bsp/lm4f232/Libraries/driverlib/hibernate.c
index 6c6b23136d..97d0d7fc48 100644
--- a/bsp/lm4f232/Libraries/driverlib/hibernate.c
+++ b/bsp/lm4f232/Libraries/driverlib/hibernate.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -69,9 +69,9 @@ static unsigned long g_ulWriteDelay;
//! \param None.
//!
//! On non-Fury-class devices, the hibernate module provides an indication when
-//! any write is completed. This is used to pace writes to the module. This
-//! function merely polls this bit and returns as soon as it is set. At this
-//! point, it is safe to perform another write to the module.
+//! any write is completed. This mechanism is used to pace writes to the
+//! module. This function merely polls this bit and returns as soon as it is
+//! set. At this point, it is safe to perform another write to the module.
//!
//! \return None.
//
@@ -108,10 +108,10 @@ HibernateWriteComplete(void)
//! \param ulHibClk is the rate of the clock supplied to the Hibernation
//! module.
//!
-//! Enables the Hibernation module for operation. This function should be
-//! called before any of the Hibernation module features are used.
+//! This function enables the Hibernation module for operation. This function
+//! should be called before any of the Hibernation module features are used.
//!
-//! The peripheral clock is the same as the processor clock. This is the value
+//! The peripheral clock is the same as the processor clock. This value is
//! returned by SysCtlClockGet(), or it can be explicitly hard-coded if it is
//! constant and known (to save the code/execution overhead of a call to
//! SysCtlClockGet()).
@@ -156,8 +156,8 @@ HibernateEnableExpClk(unsigned long ulHibClk)
//
//! Disables the Hibernation module for operation.
//!
-//! Disables the Hibernation module for operation. After this function is
-//! called, none of the Hibernation module features are available.
+//! This function disables the Hibernation module for operation. After this
+//! function is called, none of the Hibernation module features are available.
//!
//! \return None.
//
@@ -182,10 +182,10 @@ HibernateDisable(void)
//!
//! \param ulClockInput specifies the clock input.
//!
-//! Configures the clock input for the Hibernation module. The configuration
-//! option chosen depends entirely on hardware design. The clock input for the
-//! module will either be a 32.768 kHz oscillator or a 4.194304 MHz crystal.
-//! The \e ulClockFlags parameter must be one of the following:
+//! This function configures the clock input for the Hibernation module. The
+//! configuration option chosen depends entirely on hardware design. The clock
+//! input for the module is either a 32.768 kHz oscillator or a 4.194304 MHz
+//! crystal. The \e ulClockFlags parameter must be one of the following:
//!
//! - \b HIBERNATE_CLOCK_SEL_RAW - use the raw signal from a 32.768 kHz
//! oscillator.
@@ -289,10 +289,10 @@ HibernateClockConfig(unsigned long ulConfig)
//
//! Enables the RTC feature of the Hibernation module.
//!
-//! Enables the RTC in the Hibernation module. The RTC can be used to wake the
-//! processor from hibernation at a certain time, or to generate interrupts at
-//! certain times. This function must be called before using any of the RTC
-//! features of the Hibernation module.
+//! This function enables the RTC in the Hibernation module. The RTC can be
+//! used to wake the processor from hibernation at a certain time, or to
+//! generate interrupts at certain times. This function must be called before
+//! using any of the RTC features of the Hibernation module.
//!
//! \return None.
//
@@ -315,8 +315,9 @@ HibernateRTCEnable(void)
//
//! Disables the RTC feature of the Hibernation module.
//!
-//! Disables the RTC in the Hibernation module. After calling this function
-//! the RTC features of the Hibernation module will not be available.
+//! This function disables the RTC in the Hibernation module. After calling
+//! this function, the RTC features of the Hibernation module are not
+//! available.
//!
//! \return None.
//
@@ -350,6 +351,7 @@ HibernateRTCDisable(void)
//! indicate that the battery level is low.
//!
//! \note A hibernation request is held off if a battery check is in progress.
+//! This function is only available on some Stellaris devices.
//!
//! \return None.
//
@@ -373,15 +375,17 @@ HibernateBatCheckStart(void)
//! Returns if a forced battery check has completed.
//!
//! This function returns if the forced battery check initiated by a call to
-//! the HibernateBatCheckStart() function has completed. This function will
-//! return a non-zero value until the battery level check has completed. Once
+//! the HibernateBatCheckStart() function has completed. This function
+//! returns a non-zero value until the battery level check has completed. Once
//! this function returns a value of zero, the hibernation module has completed
//! the battery check and the HibernateIntStatus() function can be used to
//! check if the battery was low by checking if the value returned has the
//! \b HIBERNATE_INT_LOW_BAT set.
//!
+//! \note This function is only available on some Stellaris devices.
+//!
//! \return The value is zero when the battery level check has completed or
-//! non-zero if the check is still in process.
+//! non-zero if the check is still in process.
//
//*****************************************************************************
unsigned long
@@ -399,15 +403,18 @@ HibernateBatCheckDone(void)
//!
//! \param ulWakeFlags specifies which conditions should be used for waking.
//!
-//! Enables the conditions under which the Hibernation module will wake. The
-//! \e ulWakeFlags parameter is the logical OR of any combination of the
-//! following:
+//! This function enables the conditions under which the Hibernation module
+//! wakes. The \e ulWakeFlags parameter is the logical OR of any combination
+//! of the following:
//!
//! - \b HIBERNATE_WAKE_PIN - wake when the external wake pin is asserted.
//! - \b HIBERNATE_WAKE_RTC - wake when one of the RTC matches occurs.
//! - \b HIBERNATE_WAKE_LOW_BAT - wake from hibernate due to a low battery
//! level being detected.
//!
+//! \note The \b HIBERNATE_WAKE_LOW_BAT parameter is only available on some
+//! Stellaris devices.
+//!
//! \return None.
//
//*****************************************************************************
@@ -438,14 +445,18 @@ HibernateWakeSet(unsigned long ulWakeFlags)
//
//! Gets the currently configured wake conditions for the Hibernation module.
//!
-//! Returns the flags representing the wake configuration for the Hibernation
-//! module. The return value is a combination of the following flags:
+//! This function returns the flags representing the wake configuration for the
+//! Hibernation module. The return value is a combination of the following
+//! flags:
//!
//! - \b HIBERNATE_WAKE_PIN - wake when the external wake pin is asserted.
//! - \b HIBERNATE_WAKE_RTC - wake when one of the RTC matches occurs.
//! - \b HIBERNATE_WAKE_LOW_BAT - wake from hibernate due to a low battery
//! level being detected.
//!
+//! \note The \b HIBERNATE_WAKE_LOW_BAT parameter is only available on some
+//! Stellaris devices.
+//!
//! \return Returns flags indicating the configured wake conditions.
//
//*****************************************************************************
@@ -466,11 +477,11 @@ HibernateWakeGet(void)
//!
//! \param ulLowBatFlags specifies behavior of low battery detection.
//!
-//! Enables the low battery detection and whether hibernation is allowed if a
-//! low battery is detected. If low battery detection is enabled, then a low
-//! battery condition is indicated in the raw interrupt status register, and
-//! can also trigger an interrupt. Optionally, hibernation can be aborted if a
-//! low battery is detected.
+//! This function enables the low battery detection and whether hibernation is
+//! allowed if a low battery is detected. If low battery detection is enabled,
+//! then a low battery condition is indicated in the raw interrupt status
+//! register, and can also trigger an interrupt. Optionally, hibernation can be
+//! aborted if a low battery is detected.
//!
//! The \e ulLowBatFlags parameter is one of the following values:
//!
@@ -492,6 +503,9 @@ HibernateWakeGet(void)
//! HibernateLowBatSet(HIBERNATE_LOW_BAT_ABORT | HIBERNATE_LOW_BAT_2_1V);
//! \endverbatim
//!
+//! \note The parameters with the specific voltage levels are only available on
+//! some Stellaris devices.
+//!
//! \return None.
//
//*****************************************************************************
@@ -521,8 +535,8 @@ HibernateLowBatSet(unsigned long ulLowBatFlags)
//
//! Gets the currently configured low battery detection behavior.
//!
-//! Returns a value representing the currently configured low battery detection
-//! behavior.
+//! This function returns a value representing the currently configured low
+//! battery detection behavior.
//!
//! The return value is a combination of the values described in the
//! HibernateLowBatSet() function.
@@ -546,8 +560,8 @@ HibernateLowBatGet(void)
//!
//! \param ulRTCValue is the new value for the RTC.
//!
-//! Sets the value of the RTC. The RTC will count seconds if the hardware is
-//! configured correctly. The RTC must be enabled by calling
+//! This function sets the value of the RTC. The RTC count seconds if the
+//! hardware is configured correctly. The RTC must be enabled by calling
//! HibernateRTCEnable() before calling this function.
//!
//! \return None.
@@ -571,7 +585,7 @@ HibernateRTCSet(unsigned long ulRTCValue)
//
//! Gets the value of the real time clock (RTC) counter.
//!
-//! Gets the value of the RTC and returns it to the caller.
+//! This function gets the value of the RTC and returns it to the caller.
//!
//! \return Returns the value of the RTC.
//
@@ -591,9 +605,10 @@ HibernateRTCGet(void)
//!
//! \param ulMatch is the value for the match register.
//!
-//! Sets the match 0 register for the RTC. The Hibernation module can be
-//! configured to wake from hibernation, and/or generate an interrupt when the
-//! value of the RTC counter is the same as the match register.
+//! This function sets the match 0 register for the RTC. The Hibernation
+//! module can be configured to wake from hibernation, and/or generate an
+//! interrupt when the value of the RTC counter is the same as the match
+//! register.
//!
//! \return None.
//
@@ -616,7 +631,7 @@ HibernateRTCMatch0Set(unsigned long ulMatch)
//
//! Gets the value of the RTC match 0 register.
//!
-//! Gets the value of the match 0 register for the RTC.
+//! This function gets the value of the match 0 register for the RTC.
//!
//! \return Returns the value of the match register.
//
@@ -636,9 +651,10 @@ HibernateRTCMatch0Get(void)
//!
//! \param ulMatch is the value for the match register.
//!
-//! Sets the match 1 register for the RTC. The Hibernation module can be
-//! configured to wake from hibernation, and/or generate an interrupt when the
-//! value of the RTC counter is the same as the match register.
+//! This function sets the match 1 register for the RTC. The Hibernation
+//! module can be configured to wake from hibernation, and/or generate an
+//! interrupt when the value of the RTC counter is the same as the match
+//! register.
//!
//! \note The Hibernation RTC Match 1 feature is not available on all Stellaris
//! devices. Please consult the data sheet for the Stellaris device that you
@@ -665,7 +681,7 @@ HibernateRTCMatch1Set(unsigned long ulMatch)
//
//! Gets the value of the RTC match 1 register.
//!
-//! Gets the value of the match 1 register for the RTC.
+//! This function gets the value of the match 1 register for the RTC.
//!
//! \note The Hibernation RTC Match 1 feature is not available on all Stellaris
//! devices. Please consult the data sheet for the Stellaris device that you
@@ -689,10 +705,11 @@ HibernateRTCMatch1Get(void)
//!
//! \param ulMatch is the value for the sub second match register.
//!
-//! Sets the sub second match 0 register for the RTC in 1/32768 of a second
-//! increments. The Hibernation module can be configured to wake from
-//! hibernation, and/or generate an interrupt when the value of the RTC counter
-//! is the same as the match combined with the sub second match register.
+//! This function sets the sub second match 0 register for the RTC in 1/32768
+//! of a second increments. The Hibernation module can be configured to wake
+//! from hibernation, and/or generate an interrupt when the value of the RTC
+//! counter is the same as the match combined with the sub second match
+//! register.
//!
//! \note The Hibernation sub second RTC Match 0 feature is not available on
//! all Stellaris devices. Please consult the data sheet for the Stellaris
@@ -742,7 +759,7 @@ HibernateRTCSSMatch0Get(void)
//
//! Returns the current value of the RTC sub second count.
//!
-//! This function will return the current value of the sub second count for the
+//! This function returns the current value of the sub second count for the
//! for the RTC in 1/32768 of a second increments.
//!
//! \note The Hibernation sub second RTC Match 0 feature is not available on
@@ -767,14 +784,14 @@ HibernateRTCSSGet(void)
//!
//! \param ulTrim is the new value for the pre-divider trim register.
//!
-//! Sets the value of the pre-divider trim register. The input time source is
-//! divided by the pre-divider to achieve a one-second clock rate. Once every
-//! 64 seconds, the value of the pre-divider trim register is applied to the
-//! predivider to allow fine-tuning of the RTC rate, in order to make
-//! corrections to the rate. The software application can make adjustments to
-//! the predivider trim register to account for variations in the accuracy of
-//! the input time source. The nominal value is 0x7FFF, and it can be adjusted
-//! up or down in order to fine-tune the RTC rate.
+//! This function sets the value of the pre-divider trim register. The input
+//! time source is divided by the pre-divider to achieve a one-second clock
+//! rate. Once every 64 seconds, the value of the pre-divider trim register is
+//! applied to the predivider to allow fine-tuning of the RTC rate, in order
+//! to make corrections to the rate. The software application can make
+//! adjustments to the predivider trim register to account for variations in
+//! the accuracy of the input time source. The nominal value is 0x7FFF, and it
+//! can be adjusted up or down in order to fine-tune the RTC rate.
//!
//! \return None.
//
@@ -802,9 +819,9 @@ HibernateRTCTrimSet(unsigned long ulTrim)
//
//! Gets the value of the RTC predivider trim register.
//!
-//! Gets the value of the pre-divider trim register. This function can be used
-//! to get the current value of the trim register prior to making an adjustment
-//! by using the HibernateRTCTrimSet() function.
+//! This function gets the value of the pre-divider trim register. This
+//! function can be used to get the current value of the trim register prior
+//! to making an adjustment by using the HibernateRTCTrimSet() function.
//!
//! \return None.
//
@@ -820,17 +837,17 @@ HibernateRTCTrimGet(void)
//*****************************************************************************
//
-//! Stores data in the non-volatile memory of the Hibernation module.
+//! Stores data in the battery-backed memory of the Hibernation module.
//!
//! \param pulData points to the data that the caller wants to store in the
//! memory of the Hibernation module.
//! \param ulCount is the count of 32-bit words to store.
//!
-//! Stores a set of data in the Hibernation module non-volatile memory. This
-//! memory is preserved when the power to the processor is turned off, and can
-//! be used to store application state information which will be available when
-//! the processor wakes. Up to 64 32-bit words can be stored in the
-//! non-volatile memory. The data can be restored by calling the
+//! Stores a set of data in the Hibernation module battery-backed memory.
+//! This memory is preserved when the power to the processor is turned off,
+//! and can be used to store application state information which is available
+//! when the processor wakes. Up to 64 32-bit words can be stored in the
+//! battery-backed memory. The data can be restored by calling the
//! HibernateDataGet() function.
//!
//! \note The amount of memory available in the Hibernation module varies
@@ -858,7 +875,7 @@ HibernateDataSet(unsigned long *pulData, unsigned long ulCount)
for(ulIdx = 0; ulIdx < ulCount; ulIdx++)
{
//
- // Write a word to the non-volatile storage area.
+ // Write a word to the battery-backed storage area.
//
HWREG(HIB_DATA + (ulIdx * 4)) = pulData[ulIdx];
@@ -871,16 +888,18 @@ HibernateDataSet(unsigned long *pulData, unsigned long ulCount)
//*****************************************************************************
//
-//! Reads a set of data from the non-volatile memory of the Hibernation module.
+//! Reads a set of data from the battery-backed memory of the Hibernation
+//! module.
//!
//! \param pulData points to a location where the data that is read from the
-//! Hibernation module will be stored.
+//! Hibernation module is stored.
//! \param ulCount is the count of 32-bit words to read.
//!
-//! Retrieves a set of data from the Hibernation module non-volatile memory
-//! that was previously stored with the HibernateDataSet() function. The
-//! caller must ensure that \e pulData points to a large enough memory block to
-//! hold all the data that is read from the non-volatile memory.
+//! This function retrieves a set of data from the Hibernation module battery-
+//! backed memory that was previously stored with the HibernateDataSet()
+//! function. The caller must ensure that \e pulData points to a large enough
+//! memory block to hold all the data that is read from the battery-backed
+//! memory.
//!
//! \note The amount of memory available in the Hibernation module varies
//! across Stellaris devices. Please consult the data sheet for the Stellaris
@@ -907,7 +926,7 @@ HibernateDataGet(unsigned long *pulData, unsigned long ulCount)
for(ulIdx = 0; ulIdx < ulCount; ulIdx++)
{
//
- // Read a word from the non-volatile storage area. No delay is
+ // Read a word from the battery-backed storage area. No delay is
// required between reads.
//
pulData[ulIdx] = HWREG(HIB_DATA + (ulIdx * 4));
@@ -920,24 +939,25 @@ HibernateDataGet(unsigned long *pulData, unsigned long ulCount)
//!
//! This function requests the Hibernation module to disable the external
//! regulator, thus removing power from the processor and all peripherals. The
-//! Hibernation module will remain powered from the battery or auxiliary power
+//! Hibernation module remains powered from the battery or auxiliary power
//! supply.
//!
-//! The Hibernation module will re-enable the external regulator when one of
+//! The Hibernation module re-enables the external regulator when one of
//! the configured wake conditions occurs (such as RTC match or external
-//! \b WAKE pin). When the power is restored the processor will go through a
-//! normal power-on reset. The processor can retrieve saved state information
-//! with the HibernateDataGet() function. Prior to calling the function to
-//! request hibernation mode, the conditions for waking must have already been
-//! set by using the HibernateWakeSet() function.
+//! \b WAKE pin). When the power is restored the processor goes through a
+//! power-on reset although the Hibernation module is not reset. The processor
+//! can retrieve saved state information with the HibernateDataGet() function.
+//! Prior to calling the function to request hibernation mode, the conditions
+//! for waking must have already been set by using the HibernateWakeSet()
+//! function.
//!
//! Note that this function may return because some time may elapse before the
//! power is actually removed, or it may not be removed at all. For this
-//! reason, the processor will continue to execute instructions for some time
+//! reason, the processor continues to execute instructions for some time
//! and the caller should be prepared for this function to return. There are
//! various reasons why the power may not be removed. For example, if the
//! HibernateLowBatSet() function was used to configure an abort if low
-//! battery is detected, then the power will not be removed if the battery
+//! battery is detected, then the power is not removed if the battery
//! voltage is too low. There may be other reasons, related to the external
//! circuit design, that a request for hibernation may not actually occur.
//!
@@ -968,7 +988,8 @@ HibernateRequest(void)
//!
//! \param ulIntFlags is the bit mask of the interrupts to be enabled.
//!
-//! Enables the specified interrupt sources from the Hibernation module.
+//! This function enables the specified interrupt sources from the Hibernation
+//! module.
//!
//! The \e ulIntFlags parameter must be the logical OR of any combination of
//! the following:
@@ -979,10 +1000,10 @@ HibernateRequest(void)
//! - \b HIBERNATE_INT_RTC_MATCH_0 - RTC match 0 interrupt
//! - \b HIBERNATE_INT_RTC_MATCH_1 - RTC match 1 interrupt
//!
-//! \note The \b HIBERNATE_INT_RTC_MATCH_1 setting is not available on all
-//! Stellaris devices. Please consult the data sheet for the Stellaris device
-//! that you are using to determine if the Hibernation RTC Match 1 feature is
-//! available.
+//! \note The \b HIBERNATE_INT_WR_COMPLETE and \b HIBERNATE_INT_RTC_MATCH_1
+//! settings are not available on all Stellaris devices. Please consult the
+//! data sheet for the Stellaris device that you are using to determine if
+//! these interrupt sources are available.
//!
//! \return None.
//
@@ -1015,7 +1036,8 @@ HibernateIntEnable(unsigned long ulIntFlags)
//!
//! \param ulIntFlags is the bit mask of the interrupts to be disabled.
//!
-//! Disables the specified interrupt sources from the Hibernation module.
+//! This function disables the specified interrupt sources from the
+//! Hibernation module.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to the HibernateIntEnable() function.
@@ -1052,9 +1074,10 @@ HibernateIntDisable(unsigned long ulIntFlags)
//! \param pfnHandler points to the function to be called when a hibernation
//! interrupt occurs.
//!
-//! Registers the interrupt handler in the system interrupt controller. The
-//! interrupt is enabled at the global level, but individual interrupt sources
-//! must still be enabled with a call to HibernateIntEnable().
+//! This function registers the interrupt handler in the system interrupt
+//! controller. The interrupt is enabled at the global level, but individual
+//! interrupt sources must still be enabled with a call to
+//! HibernateIntEnable().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -1080,9 +1103,9 @@ HibernateIntRegister(void (*pfnHandler)(void))
//
//! Unregisters an interrupt handler for the Hibernation module interrupt.
//!
-//! Unregisters the interrupt handler in the system interrupt controller. The
-//! interrupt is disabled at the global level, and the interrupt handler will
-//! no longer be called.
+//! This function unregisters the interrupt handler in the system interrupt
+//! controller. The interrupt is disabled at the global level, and the
+//! interrupt handler is longer called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -1111,9 +1134,9 @@ HibernateIntUnregister(void)
//! \param bMasked is false to retrieve the raw interrupt status, and true to
//! retrieve the masked interrupt status.
//!
-//! Returns the interrupt status of the Hibernation module. The caller can use
-//! this to determine the cause of a hibernation interrupt. Either the masked
-//! or raw interrupt status can be returned.
+//! This function returns the interrupt status of the Hibernation module. The
+//! caller can use this function to determine the cause of a hibernation
+//! interrupt. Either the masked or raw interrupt status can be returned.
//!
//! \return Returns the interrupt status as a bit field with the values as
//! described in the HibernateIntEnable() function.
@@ -1141,13 +1164,14 @@ HibernateIntStatus(tBoolean bMasked)
//!
//! \param ulIntFlags is the bit mask of the interrupts to be cleared.
//!
-//! Clears the specified interrupt sources. This must be done from within the
-//! interrupt handler or else the handler is called again upon exit.
+//! This function clears the specified interrupt sources. This function must
+//! be called within the interrupt handler or else the handler is called again
+//! upon exit.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to the HibernateIntEnable() function.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
diff --git a/bsp/lm4f232/Libraries/driverlib/hibernate.h b/bsp/lm4f232/Libraries/driverlib/hibernate.h
index 48ec1e054b..87cdf3d558 100644
--- a/bsp/lm4f232/Libraries/driverlib/hibernate.h
+++ b/bsp/lm4f232/Libraries/driverlib/hibernate.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/i2c.c b/bsp/lm4f232/Libraries/driverlib/i2c.c
index 7c1b8c6d60..87d363e9f6 100644
--- a/bsp/lm4f232/Libraries/driverlib/i2c.c
+++ b/bsp/lm4f232/Libraries/driverlib/i2c.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -106,9 +106,10 @@ I2CSlaveBaseValid(unsigned long ulBase)
//!
//! \param ulBase is the base address of the I2C Master module.
//!
-//! Given a I2C base address, returns the corresponding interrupt number.
+//! Given a I2C base address, this function returns the corresponding
+//! interrupt number.
//!
-//! \return Returns a I2C interrupt number, or -1 if \e ulBase is invalid.
+//! \return Returns an I2C interrupt number, or -1 if \e ulBase is invalid.
//
//*****************************************************************************
static long
@@ -149,15 +150,14 @@ I2CIntNumberGet(unsigned long ulBase)
//! \param ulI2CClk is the rate of the clock supplied to the I2C module.
//! \param bFast set up for fast data transfers
//!
-//! This function initializes operation of the I2C Master block. Upon
-//! successful initialization of the I2C block, this function will have set the
-//! bus speed for the master, and will have enabled the I2C Master block.
+//! This function initializes operation of the I2C Master block by configuring
+//! the bus speed for the master and enabling the I2C Master block.
//!
//! If the parameter \e bFast is \b true, then the master block is set up to
//! transfer data at 400 kbps; otherwise, it is set up to transfer data at
//! 100 kbps.
//!
-//! The peripheral clock is the same as the processor clock. This is the value
+//! The peripheral clock is the same as the processor clock. This value is
//! returned by SysCtlClockGet(), or it can be explicitly hard coded if it is
//! constant and known (to save the code/execution overhead of a call to
//! SysCtlClockGet()).
@@ -215,9 +215,8 @@ I2CMasterInitExpClk(unsigned long ulBase, unsigned long ulI2CClk,
//! \param ulBase is the base address of the I2C Slave module.
//! \param ucSlaveAddr 7-bit slave address
//!
-//! This function initializes operation of the I2C Slave block. Upon
-//! successful initialization of the I2C blocks, this function will have set
-//! the slave address and have enabled the I2C Slave block.
+//! This function initializes operation of the I2C Slave block by configuring
+//! the slave address and enabling the I2C Slave block.
//!
//! The parameter \e ucSlaveAddr is the value that is compared against the
//! slave address sent by an I2C master.
@@ -255,7 +254,10 @@ I2CSlaveInit(unsigned long ulBase, unsigned char ucSlaveAddr)
//!
//! This function writes the specified slave address. The \e ulAddrNum field
//! dictates which slave address is configured. For example, a value of 0
-//! configures the primary address and a value of 1 the secondary.
+//! configures the primary address and a value of 1, the secondary.
+//!
+//! \note Not all Stellaris devices support a secondary address. Please consult
+//! the device data sheet to know if this feature is supported.
//!
//! \return None.
//
@@ -302,7 +304,7 @@ I2CSlaveAddressSet(unsigned long ulBase, unsigned char ucAddrNum,
//!
//! \param ulBase is the base address of the I2C Master module.
//!
-//! This will enable operation of the I2C Master block.
+//! This function enables operation of the I2C Master block.
//!
//! \return None.
//
@@ -327,7 +329,7 @@ I2CMasterEnable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the I2C Slave module.
//!
-//! This will enable operation of the I2C Slave block.
+//! This fucntion enables operation of the I2C Slave block.
//!
//! \return None.
//
@@ -358,7 +360,7 @@ I2CSlaveEnable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the I2C Master module.
//!
-//! This will disable operation of the I2C master block.
+//! This function disables operation of the I2C master block.
//!
//! \return None.
//
@@ -383,7 +385,7 @@ I2CMasterDisable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the I2C Slave module.
//!
-//! This will disable operation of the I2C slave block.
+//! This function disables operation of the I2C slave block.
//!
//! \return None.
//
@@ -416,9 +418,9 @@ I2CSlaveDisable(unsigned long ulBase)
//! \param pfnHandler is a pointer to the function to be called when the
//! I2C interrupt occurs.
//!
-//! This sets the handler to be called when an I2C interrupt occurs. This will
-//! enable the global interrupt in the interrupt controller; specific I2C
-//! interrupts must be enabled via I2CMasterIntEnable() and
+//! This function sets the handler to be called when an I2C interrupt occurs.
+//! This function enables the global interrupt in the interrupt controller;
+//! specific I2C interrupts must be enabled via I2CMasterIntEnable() and
//! I2CSlaveIntEnable(). If necessary, it is the interrupt handler's
//! responsibility to clear the interrupt source via I2CMasterIntClear() and
//! I2CSlaveIntClear().
@@ -461,9 +463,9 @@ I2CIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
//!
//! \param ulBase is the base address of the I2C Master module.
//!
-//! This function will clear the handler to be called when an I2C interrupt
-//! occurs. This will also mask off the interrupt in the interrupt controller
-//! so that the interrupt handler no longer is called.
+//! This function clears the handler to be called when an I2C interrupt
+//! occurs. This function also masks off the interrupt in the interrupt r
+//! controlle so that the interrupt handler no longer is called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -503,7 +505,7 @@ I2CIntUnregister(unsigned long ulBase)
//!
//! \param ulBase is the base address of the I2C Master module.
//!
-//! Enables the I2C Master interrupt source.
+//! This function enables the I2C Master interrupt source.
//!
//! \return None.
//
@@ -529,15 +531,19 @@ I2CMasterIntEnable(unsigned long ulBase)
//! \param ulBase is the base address of the I2C Master module.
//! \param ulIntFlags is the bit mask of the interrupt sources to be enabled.
//!
-//! Enables the indicated I2C Master interrupt sources. Only the sources that
-//! are enabled can be reflected to the processor interrupt; disabled sources
-//! have no effect on the processor.
+//! This function enables the indicated I2C Master interrupt sources. Only the
+//! sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! The \e ulIntFlags parameter is the logical OR of any of the following:
//!
//! - \b I2C_MASTER_INT_TIMEOUT - Clock Timeout interrupt
//! - \b I2C_MASTER_INT_DATA - Data interrupt
//!
+//! \note Not all Stellaris devices support the Clock Timeout interrupt.
+//! Please consult the device data sheet to know if this feature is
+//! supported.
+//!
//! \return None.
//
//*****************************************************************************
@@ -561,7 +567,7 @@ I2CMasterIntEnableEx(unsigned long ulBase, unsigned long ulIntFlags)
//!
//! \param ulBase is the base address of the I2C Slave module.
//!
-//! Enables the I2C Slave interrupt source.
+//! This function enables the I2C Slave interrupt source.
//!
//! \return None.
//
@@ -587,9 +593,9 @@ I2CSlaveIntEnable(unsigned long ulBase)
//! \param ulBase is the base address of the I2C Slave module.
//! \param ulIntFlags is the bit mask of the interrupt sources to be enabled.
//!
-//! Enables the indicated I2C Slave interrupt sources. Only the sources that
-//! are enabled can be reflected to the processor interrupt; disabled sources
-//! have no effect on the processor.
+//! This function enables the indicated I2C Slave interrupt sources. Only the
+//! sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! The \e ulIntFlags parameter is the logical OR of any of the following:
//!
@@ -597,6 +603,10 @@ I2CSlaveIntEnable(unsigned long ulBase)
//! - \b I2C_SLAVE_INT_START - Start condition detected interrupt
//! - \b I2C_SLAVE_INT_DATA - Data interrupt
//!
+//! \note Not all Stellaris devices support the Stop and Start condition
+//! interrupts. Please consult the device data sheet to know if these features
+//! are supported.
+//!
//! \return None.
//
//*****************************************************************************
@@ -620,7 +630,7 @@ I2CSlaveIntEnableEx(unsigned long ulBase, unsigned long ulIntFlags)
//!
//! \param ulBase is the base address of the I2C Master module.
//!
-//! Disables the I2C Master interrupt source.
+//! This function disables the I2C Master interrupt source.
//!
//! \return None.
//
@@ -646,9 +656,9 @@ I2CMasterIntDisable(unsigned long ulBase)
//! \param ulBase is the base address of the I2C Master module.
//! \param ulIntFlags is the bit mask of the interrupt sources to be disabled.
//!
-//! Disables the indicated I2C Master interrupt sources. Only the sources that
-//! are enabled can be reflected to the processor interrupt; disabled sources
-//! have no effect on the processor.
+//! This function disables the indicated I2C Master interrupt sources. Only
+//! the sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to I2CMasterIntEnableEx().
@@ -676,7 +686,7 @@ I2CMasterIntDisableEx(unsigned long ulBase, unsigned long ulIntFlags)
//!
//! \param ulBase is the base address of the I2C Slave module.
//!
-//! Disables the I2C Slave interrupt source.
+//! This function disables the I2C Slave interrupt source.
//!
//! \return None.
//
@@ -702,9 +712,9 @@ I2CSlaveIntDisable(unsigned long ulBase)
//! \param ulBase is the base address of the I2C Slave module.
//! \param ulIntFlags is the bit mask of the interrupt sources to be disabled.
//!
-//! Disables the indicated I2C Slave interrupt sources. Only the sources that
-//! are enabled can be reflected to the processor interrupt; disabled sources
-//! have no effect on the processor.
+//! This function disables the indicated I2C Slave interrupt sources. Only
+//! the sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to I2CSlaveIntEnableEx().
@@ -734,8 +744,8 @@ I2CSlaveIntDisableEx(unsigned long ulBase, unsigned long ulIntFlags)
//! \param bMasked is false if the raw interrupt status is requested and
//! true if the masked interrupt status is requested.
//!
-//! This returns the interrupt status for the I2C Master module. Either the
-//! raw interrupt status or the status of interrupts that are allowed to
+//! This function returns the interrupt status for the I2C Master module.
+//! Either the raw interrupt status or the status of interrupts that are allowed to
//! reflect to the processor can be returned.
//!
//! \return The current interrupt status, returned as \b true if active
@@ -772,9 +782,9 @@ I2CMasterIntStatus(unsigned long ulBase, tBoolean bMasked)
//! \param bMasked is false if the raw interrupt status is requested and
//! true if the masked interrupt status is requested.
//!
-//! This returns the interrupt status for the I2C Master module. Either the
-//! raw interrupt status or the status of interrupts that are allowed to
-//! reflect to the processor can be returned.
+//! This function returns the interrupt status for the I2C Master module.
+//! Either the raw interrupt status or the status of interrupts that are
+//! allowed to reflect to the processor can be returned.
//!
//! \return Returns the current interrupt status, enumerated as a bit field of
//! values described in I2CMasterIntEnableEx().
@@ -810,9 +820,9 @@ I2CMasterIntStatusEx(unsigned long ulBase, tBoolean bMasked)
//! \param bMasked is false if the raw interrupt status is requested and
//! true if the masked interrupt status is requested.
//!
-//! This returns the interrupt status for the I2C Slave module. Either the raw
-//! interrupt status or the status of interrupts that are allowed to reflect to
-//! the processor can be returned.
+//! This function returns the interrupt status for the I2C Slave module.
+//! Either the raw interrupt status or the status of interrupts that are
+//! allowed to reflect to the processor can be returned.
//!
//! \return The current interrupt status, returned as \b true if active
//! or \b false if not active.
@@ -848,9 +858,9 @@ I2CSlaveIntStatus(unsigned long ulBase, tBoolean bMasked)
//! \param bMasked is false if the raw interrupt status is requested and
//! true if the masked interrupt status is requested.
//!
-//! This returns the interrupt status for the I2C Slave module. Either the raw
-//! interrupt status or the status of interrupts that are allowed to reflect to
-//! the processor can be returned.
+//! This function returns the interrupt status for the I2C Slave module.
+//! Either the raw interrupt status or the status of interrupts that are
+//! allowed to reflect to the processor can be returned.
//!
//! \return Returns the current interrupt status, enumerated as a bit field of
//! values described in I2CSlaveIntEnableEx().
@@ -899,10 +909,10 @@ I2CSlaveIntStatusEx(unsigned long ulBase, tBoolean bMasked)
//! \param ulBase is the base address of the I2C Master module.
//!
//! The I2C Master interrupt source is cleared, so that it no longer asserts.
-//! This must be done in the interrupt handler to keep it from being called
-//! again immediately upon exit.
+//! This function must be called in the interrupt handler to keep the interrupt
+//! from being triggered again immediately upon exit.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -943,13 +953,13 @@ I2CMasterIntClear(unsigned long ulBase)
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
//!
//! The specified I2C Master interrupt sources are cleared, so that they no
-//! longer assert. This must be done in the interrupt handler to keep it from
-//! being called again immediately upon exit.
+//! longer assert. This function must be called in the interrupt handler to
+//! keep the interrupt from being triggered again immediately upon exit.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to I2CMasterIntEnableEx().
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -982,10 +992,10 @@ I2CMasterIntClearEx(unsigned long ulBase, unsigned long ulIntFlags)
//! \param ulBase is the base address of the I2C Slave module.
//!
//! The I2C Slave interrupt source is cleared, so that it no longer asserts.
-//! This must be done in the interrupt handler to keep it from being called
-//! again immediately upon exit.
+//! This function must be called in the interrupt handler to keep the interrupt
+//! from being triggered again immediately upon exit.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -1019,13 +1029,13 @@ I2CSlaveIntClear(unsigned long ulBase)
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
//!
//! The specified I2C Slave interrupt sources are cleared, so that they no
-//! longer assert. This must be done in the interrupt handler to keep it from
-//! being called again immediately upon exit.
+//! longer assert. This function must be called in the interrupt handler to
+//! keep the interrupt from being triggered again immediately upon exit.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to I2CSlaveIntEnableEx().
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -1053,16 +1063,16 @@ I2CSlaveIntClearEx(unsigned long ulBase, unsigned long ulIntFlags)
//*****************************************************************************
//
-//! Sets the address that the I2C Master will place on the bus.
+//! Sets the address that the I2C Master places on the bus.
//!
//! \param ulBase is the base address of the I2C Master module.
//! \param ucSlaveAddr 7-bit slave address
//! \param bReceive flag indicating the type of communication with the slave
//!
-//! This function will set the address that the I2C Master will place on the
+//! This function configures the address that the I2C Master places on the
//! bus when initiating a transaction. When the \e bReceive parameter is set
-//! to \b true, the address will indicate that the I2C Master is initiating a
-//! read from the slave; otherwise the address will indicate that the I2C
+//! to \b true, the address indicates that the I2C Master is initiating a
+//! read from the slave; otherwise the address indicates that the I2C
//! Master is initiating a write to the slave.
//!
//! \return None.
@@ -1093,6 +1103,9 @@ I2CMasterSlaveAddrSet(unsigned long ulBase, unsigned char ucSlaveAddr,
//! This function returns the state of the I2C bus by providing the real time
//! values of the SDA and SCL pins.
//!
+//! \note Not all Stellaris devices support this function. Please consult the
+//! device data sheet to know if this feature is supported.
+//!
//! \return Returns the state of the bus with SDA in bit position 1 and SCL in
//! bit position 0.
//
@@ -1185,7 +1198,7 @@ I2CMasterBusBusy(unsigned long ulBase)
//! Controls the state of the I2C Master module.
//!
//! \param ulBase is the base address of the I2C Master module.
-//! \param ulCmd command to be issued to the I2C Master module
+//! \param ulCmd command to be issued to the I2C Master module.
//!
//! This function is used to control the state of the Master module send and
//! receive operations. The \e ucCmd parameter can be one of the following
@@ -1285,9 +1298,9 @@ I2CMasterErr(unsigned long ulBase)
//! Transmits a byte from the I2C Master.
//!
//! \param ulBase is the base address of the I2C Master module.
-//! \param ucData data to be transmitted from the I2C Master
+//! \param ucData data to be transmitted from the I2C Master.
//!
-//! This function will place the supplied data into I2C Master Data Register.
+//! This function places the supplied data into I2C Master Data Register.
//!
//! \return None.
//
@@ -1344,6 +1357,9 @@ I2CMasterDataGet(unsigned long ulBase)
//! upper 8-bits being programmable. For example, to program a timeout of 20ms
//! with a 100kHz SCL frequency, \e ulValue would be 0x7d.
//!
+//! \note Not all Stellaris devices support this function. Please consult the
+//! device data sheet to know if this feature is supported.
+//!
//! \return None.
//
//*****************************************************************************
@@ -1371,6 +1387,9 @@ I2CMasterTimeoutSet(unsigned long ulBase, unsigned long ulValue)
//! This function enables or disables ACK override, allowing the user
//! application to drive the value on SDA during the ACK cycle.
//!
+//! \note Not all Stellaris devices support this function. Please consult the
+//! device data sheet to know if this feature is supported.
+//!
//! \return None.
//
//*****************************************************************************
@@ -1436,7 +1455,7 @@ I2CSlaveACKValueSet(unsigned long ulBase, tBoolean bACK)
//!
//! \param ulBase is the base address of the I2C Slave module.
//!
-//! This function will return the action requested from a master, if any.
+//! This function returns the action requested from a master, if any.
//! Possible values are:
//!
//! - \b I2C_SLAVE_ACT_NONE
@@ -1457,6 +1476,10 @@ I2CSlaveACKValueSet(unsigned long ulBase, tBoolean bACK)
//! slave address was matched, \b I2C_SLAVE_ACT_QCMD to indicate that a quick
//! command was received, and \b I2C_SLAVE_ACT_QCMD_DATA to indicate that the
//! data bit was set when the quick command was received.
+//!
+//! \note Not all Stellaris devices support the second I2C slave's own address
+//! or the quick command function. Please consult the device data sheet to
+//! know if these features are supported.
//
//*****************************************************************************
unsigned long
@@ -1480,7 +1503,7 @@ I2CSlaveStatus(unsigned long ulBase)
//! \param ulBase is the base address of the I2C Slave module.
//! \param ucData data to be transmitted from the I2C Slave
//!
-//! This function will place the supplied data into I2C Slave Data Register.
+//! This function places the supplied data into I2C Slave Data Register.
//!
//! \return None.
//
diff --git a/bsp/lm4f232/Libraries/driverlib/i2c.h b/bsp/lm4f232/Libraries/driverlib/i2c.h
index 318e6e955a..e85a9cad40 100644
--- a/bsp/lm4f232/Libraries/driverlib/i2c.h
+++ b/bsp/lm4f232/Libraries/driverlib/i2c.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/i2s.c b/bsp/lm4f232/Libraries/driverlib/i2s.c
index fe7dc610d4..3cd12ffb64 100644
--- a/bsp/lm4f232/Libraries/driverlib/i2s.c
+++ b/bsp/lm4f232/Libraries/driverlib/i2s.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -101,9 +101,9 @@ I2STxDisable(unsigned long ulBase)
//! Writes data samples to the I2S transmit FIFO with blocking.
//!
//! \param ulBase is the I2S module base address.
-//! \param ulData is the single or dual channel I2S data.
+//! \param ulData is the single- or dual-channel I2S data.
//!
-//! This function writes a single channel sample or combined left-right
+//! This function writes a single-channel sample or combined left-right
//! samples to the I2S transmit FIFO. The format of the sample is determined
//! by the configuration that was used with the function I2STxConfigSet().
//! If the transmit mode is \b I2S_MODE_DUAL_STEREO then the \e ulData
@@ -122,7 +122,7 @@ I2STxDisable(unsigned long ulBase)
//! contain the left sample, and the next 8 bits contain the right sample,
//! with the upper 16 bits unused.
//!
-//! If there is no room in the transmit FIFO, then this function will wait
+//! If there is no room in the transmit FIFO, then this function waits
//! in a polling loop until the data can be written.
//!
//! \return None.
@@ -154,9 +154,9 @@ I2STxDataPut(unsigned long ulBase, unsigned long ulData)
//! Writes data samples to the I2S transmit FIFO without blocking.
//!
//! \param ulBase is the I2S module base address.
-//! \param ulData is the single or dual channel I2S data.
+//! \param ulData is the single- or dual-channel I2S data.
//!
-//! This function writes a single channel sample or combined left-right
+//! This function writes a single-channel sample or combined left-right
//! samples to the I2S transmit FIFO. The format of the sample is determined
//! by the configuration that was used with the function I2STxConfigSet().
//! If the transmit mode is \b I2S_MODE_DUAL_STEREO then the \e ulData
@@ -165,7 +165,7 @@ I2STxDataPut(unsigned long ulBase, unsigned long ulData)
//! transmit mode is \b I2S_MODE_COMPACT_STEREO_16 or
//! \b I2S_MODE_COMPACT_STEREO_8, then the \e ulData parameter contains both
//! the left and right samples. If the transmit mode is
-//! \b I2S_MODE_SINGLE_MONO then the \e ulData parameter contains the single
+//! \b I2S_MODE_SINGLE_MONO then the \e ulData parameter contains the single-
//! channel sample.
//!
//! For the compact modes, both the left and right samples are written at
@@ -175,7 +175,7 @@ I2STxDataPut(unsigned long ulBase, unsigned long ulData)
//! contain the left sample, and the next 8 bits contain the right sample,
//! with the upper 16 bits unused.
//!
-//! If there is no room in the transmit FIFO, then this function will return
+//! If there is no room in the transmit FIFO, then this function returns
//! immediately without writing any data to the FIFO.
//!
//! \return The number of elements written to the I2S transmit FIFO (1 or 0).
@@ -256,7 +256,7 @@ I2STxConfigSet(unsigned long ulBase, unsigned long ulConfig)
//
// If compact 8 mode is used, then need to adjust some bits
// before writing the config register. Also set the FIFO
- // config register for 8 bit compact samples.
+ // config register for 8-bit compact samples.
//
ulConfig &= ~I2S_CONFIG_MODE_MONO;
HWREG(ulBase + I2S_O_TXFIFOCFG) = I2S_TXFIFOCFG_CSS;
@@ -265,14 +265,14 @@ I2STxConfigSet(unsigned long ulBase, unsigned long ulConfig)
{
//
// If compact 8 mode is not used, then set the FIFO config
- // register for 16 bit. This is okay if a compact mode is
- // not used.
+ // register for 16 bit. This setting is okay if a compact
+ // mode is not used.
//
HWREG(ulBase + I2S_O_TXFIFOCFG) = 0;
}
//
- // Write the configuration register. Since all the fields are
+ // Write the configuration register. Because all the fields are
// specified by the configuration parameter, it is not necessary
// to do a read-modify-write.
//
@@ -287,8 +287,8 @@ I2STxConfigSet(unsigned long ulBase, unsigned long ulConfig)
//! \param ulLevel is the FIFO service request limit.
//!
//! This function is used to set the transmit FIFO fullness level at which a
-//! service request will occur. The service request is used to generate an
-//! interrupt or a DMA transfer request. The transmit FIFO will generate a
+//! service request occurs. The service request is used to generate an
+//! interrupt or a DMA transfer request. The transmit FIFO generates a
//! service request when the number of items in the FIFO is less than the level
//! specified in the \e ulLevel parameter. For example, if \e ulLevel is 8,
//! then a service request is generated when there are less than 8 samples
@@ -297,9 +297,9 @@ I2STxConfigSet(unsigned long ulBase, unsigned long ulConfig)
//! For the purposes of counting the FIFO level, a left-right sample pair
//! counts as 2, whether the mode is dual or compact stereo. When mono mode is
//! used, internally the mono sample is still treated as a sample pair, so a
-//! single mono sample counts as 2. Since the FIFO always deals with sample
+//! single mono sample counts as 2. Because the FIFO always deals with sample
//! pairs, the level must be an even number from 0 to 16. The maximum value is
-//! 16, which will cause a service request when there is any room in the FIFO.
+//! 16, which causes a service request when there is any room in the FIFO.
//! The minimum value is 0, which disables the service request.
//!
//! \return None.
@@ -357,14 +357,14 @@ I2STxFIFOLimitGet(unsigned long ulBase)
//! For the purposes of measuring the FIFO level, a left-right sample pair
//! counts as 2, whether the mode is dual or compact stereo. When mono mode is
//! used, internally the mono sample is still treated as a sample pair, so a
-//! single mono sample counts as 2. Since the FIFO always deals with sample
+//! single mono sample counts as 2. Because the FIFO always deals with sample
//! pairs, normally the level is an even number from 0 to 16. If dual stereo
//! mode is used and only the left sample has been written without the matching
//! right sample, then the FIFO level is an odd value. If the FIFO level is
//! odd, it indicates a left-right sample mismatch.
//!
-//! \return Returns the number of samples in the transmit FIFO, which will
-//! normally be an even number.
+//! \return Returns the number of samples in the transmit FIFO, which is
+//! normally an even number.
//
//*****************************************************************************
unsigned long
@@ -465,7 +465,7 @@ I2SRxDisable(unsigned long ulBase)
//! contain the left sample, and the next 8 bits contain the right sample,
//! with the upper 16 bits unused.
//!
-//! If there is no data in the receive FIFO, then this function will wait
+//! If there is no data in the receive FIFO, then this function waits
//! in a polling loop until data is available.
//!
//! \return None.
@@ -517,7 +517,7 @@ I2SRxDataGet(unsigned long ulBase, unsigned long *pulData)
//! contain the left sample, and the next 8 bits contain the right sample,
//! with the upper 16 bits unused.
//!
-//! If there is no data in the receive FIFO, then this function will return
+//! If there is no data in the receive FIFO, then this function returns
//! immediately without reading any data from the FIFO.
//!
//! \return The number of elements read from the I2S receive FIFO (1 or 0).
@@ -608,14 +608,14 @@ I2SRxConfigSet(unsigned long ulBase, unsigned long ulConfig)
}
//
- // The "mono" bits needs to be removed from the configuration word
+ // The "mono" bits must be removed from the configuration word
// prior to writing to hardware, because the RX configuration register
// does not actually use these bits.
//
ulConfig &= ~I2S_CONFIG_MODE_MONO;
//
- // Write the configuration register. Since all the fields are
+ // Write the configuration register. Because all the fields are
// specified by the configuration parameter, it is not necessary
// to do a read-modify-write.
//
@@ -630,8 +630,8 @@ I2SRxConfigSet(unsigned long ulBase, unsigned long ulConfig)
//! \param ulLevel is the FIFO service request limit.
//!
//! This function is used to set the receive FIFO fullness level at which a
-//! service request will occur. The service request is used to generate an
-//! interrupt or a DMA transfer request. The receive FIFO will generate a
+//! service request occurs. The service request is used to generate an
+//! interrupt or a DMA transfer request. The receive FIFO generates a
//! service request when the number of items in the FIFO is greater than the
//! level specified in the \e ulLevel parameter. For example, if \e ulLevel is
//! 4, then a service request is generated when there are more than 4 samples
@@ -640,9 +640,9 @@ I2SRxConfigSet(unsigned long ulBase, unsigned long ulConfig)
//! For the purposes of counting the FIFO level, a left-right sample pair
//! counts as 2, whether the mode is dual or compact stereo. When mono mode is
//! used, internally the mono sample is still treated as a sample pair, so a
-//! single mono sample counts as 2. Since the FIFO always deals with sample
+//! single mono sample counts as 2. Because the FIFO always deals with sample
//! pairs, the level must be an even number from 0 to 16. The minimum value is
-//! 0, which will cause a service request when there is any data available in
+//! 0, which causes a service request when there is any data available in
//! the FIFO. The maximum value is 16, which disables the service request
//! (because there cannot be more than 16 items in the FIFO).
//!
@@ -687,7 +687,7 @@ I2SRxFIFOLimitGet(unsigned long ulBase)
//
// Read and return the FIFO limit. The lower bit is masked
- // because it always reads as 1, and has no meaning.
+ // because it always reads as 1 and has no meaning.
//
return(HWREG(ulBase + I2S_O_RXLIMIT) & 0xFFFE);
}
@@ -702,14 +702,14 @@ I2SRxFIFOLimitGet(unsigned long ulBase)
//! For the purposes of measuring the FIFO level, a left-right sample pair
//! counts as 2, whether the mode is dual or compact stereo. When mono mode is
//! used, internally the mono sample is still treated as a sample pair, so a
-//! single mono sample counts as 2. Since the FIFO always deals with sample
+//! single mono sample counts as 2. Because the FIFO always deals with sample
//! pairs, normally the level is an even number from 0 to 16. If dual stereo
//! mode is used and only the left sample has been read without reading the
//! matching right sample, then the FIFO level is an odd value. If the FIFO
//! level is odd, it indicates a left-right sample mismatch.
//!
-//! \return Returns the number of samples in the transmit FIFO, which will
-//! normally be an even number.
+//! \return Returns the number of samples in the transmit FIFO, which is
+//! normally an even number.
//
//*****************************************************************************
unsigned long
@@ -735,7 +735,7 @@ I2SRxFIFOLevelGet(unsigned long ulBase)
//! This function simultaneously enables the transmit and receive modules for
//! operation, providing a synchronized SCLK and LRCLK. The module should be
//! enabled after configuration. When the module is disabled, no data or
-//! clocks will be generated on the I2S signals.
+//! clocks are generated on the I2S signals.
//!
//! \return None.
//
@@ -771,7 +771,7 @@ I2STxRxEnable(unsigned long ulBase)
//! \param ulBase is the I2S module base address.
//!
//! This function simultaneously disables the transmit and receive modules.
-//! When the module is disabled, no data or clocks will be generated on the I2S
+//! When the module is disabled, no data or clocks are generated on the I2S
//! signals.
//!
//! \return None.
@@ -806,10 +806,10 @@ I2STxRxDisable(unsigned long ulBase)
//! \b I2S_CONFIG_FORMAT_LEFT_JUST for left justified format, or
//! \b I2S_CONFIG_FORMAT_RIGHT_JUST for right justified format.
//! - \b I2S_CONFIG_SCLK_INVERT to invert the polarity of the serial bit clock.
-//! - \b I2S_CONFIG_MODE_DUAL for dual channel stereo,
+//! - \b I2S_CONFIG_MODE_DUAL for dual-channel stereo,
//! \b I2S_CONFIG_MODE_COMPACT_16 for 16-bit compact stereo mode,
//! \b I2S_CONFIG_MODE_COMPACT_8 for 8-bit compact stereo mode, or
-//! \b I2S_CONFIG_MODE_MONO for single channel mono format.
+//! \b I2S_CONFIG_MODE_MONO for single-channel mono format.
//! - \b I2S_CONFIG_CLK_MASTER or \b I2S_CONFIG_CLK_SLAVE to select whether
//! the I2S transmitter is the clock master or slave.
//! - \b I2S_CONFIG_SAMPLE_SIZE_32, \b _24, \b _20, \b _16, or \b _8
@@ -861,8 +861,8 @@ I2STxRxConfigSet(unsigned long ulBase, unsigned long ulConfig)
}
//
- // Write the configuration register. Since all the fields are specified by
- // the configuration parameter, it is not necessary to do a
+ // Write the configuration register. Because all the fields are specified
+ // by the configuration parameter, it is not necessary to do a
// read-modify-write.
//
HWREG(ulBase + I2S_O_TXCFG) = ulConfig;
@@ -878,7 +878,7 @@ I2STxRxConfigSet(unsigned long ulBase, unsigned long ulConfig)
//! choices.
//!
//! This function selects whether the master clock is sourced from the device
-//! internal PLL, or comes from an external pin. The I2S serial bit clock
+//! internal PLL or comes from an external pin. The I2S serial bit clock
//! (SCLK) and left-right word clock (LRCLK) are derived from the I2S master
//! clock. The transmit and receive modules can be configured independently.
//! The \e ulMClock parameter is chosen from the following:
@@ -1019,13 +1019,13 @@ I2SIntStatus(unsigned long ulBase, tBoolean bMasked)
//! \param ulBase is the I2S module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
//!
-//! This function clears the specified pending I2S interrupts. This must
-//! be done in the interrupt handler to keep the handler from being called
-//! again immediately upon exit. The \e ulIntFlags parameter can be the
-//! logical OR of any of the following values: \b I2S_INT_RXERR,
+//! This function clears the specified pending I2S interrupts. This function
+//! must be called in the interrupt handler to keep the interrupt from being
+//! triggered again immediately upon exit. The \e ulIntFlags parameter can be
+//! the logical OR of any of the following values: \b I2S_INT_RXERR,
//! \b I2S_INT_RXREQ, \b I2S_INT_TXERR, or \b I2S_INT_TXREQ.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -1061,9 +1061,9 @@ I2SIntClear(unsigned long ulBase, unsigned long ulIntFlags)
//! \param pfnHandler is a pointer to the function to be called when the
//! interrupt is activated.
//!
-//! This sets and enables the handler to be called when the I2S controller
-//! generates an interrupt. Specific I2S interrupts must still be enabled
-//! with the I2SIntEnable() function. It is the responsibility of the
+//! This function sets and enables the handler to be called when the I2S
+//! controller generates an interrupt. Specific I2S interrupts must still be
+//! enabled with the I2SIntEnable() function. It is the responsibility of the
//! interrupt handler to clear any pending interrupts with I2SIntClear().
//!
//! \sa IntRegister() for important information about registering interrupt
@@ -1098,7 +1098,7 @@ I2SIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
//!
//! \param ulBase is the I2S module base address.
//!
-//! This function will disable and clear the handler to be called when the
+//! This function disables and clears the handler to be called when the
//! I2S interrupt occurs.
//!
//! \sa IntRegister() for important information about registering interrupt
diff --git a/bsp/lm4f232/Libraries/driverlib/i2s.h b/bsp/lm4f232/Libraries/driverlib/i2s.h
index e011f26faf..f7abacf8c6 100644
--- a/bsp/lm4f232/Libraries/driverlib/i2s.h
+++ b/bsp/lm4f232/Libraries/driverlib/i2s.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/interrupt.c b/bsp/lm4f232/Libraries/driverlib/interrupt.c
index 4149308185..7eed9758b0 100644
--- a/bsp/lm4f232/Libraries/driverlib/interrupt.c
+++ b/bsp/lm4f232/Libraries/driverlib/interrupt.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -166,14 +166,14 @@ void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void) __attribute__ ((aligned(1024)));
//
//! Enables the processor interrupt.
//!
-//! 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.
+//! This function allows the processor to respond to interrupts. This function
+//! 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
+//! tBoolean, a compiler error occurs in this case. The solution
//! is to include hw_types.h before including interrupt.h.
//!
//! \return Returns \b true if interrupts were disabled when the function was
@@ -193,14 +193,15 @@ IntMasterEnable(void)
//
//! Disables the processor interrupt.
//!
-//! 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.
+//! This function prevents the processor from receiving interrupts. This
+//! function 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
+//! tBoolean, a compiler error occurs in this case. The solution
//! is to include hw_types.h before including interrupt.h.
//!
//! \return Returns \b true if interrupts were already disabled when the
@@ -226,15 +227,15 @@ IntMasterDisable(void)
//! This function is used to specify the handler function to be called when the
//! given interrupt is asserted to the processor. When the interrupt occurs,
//! if it is enabled (via IntEnable()), the handler function is called in
-//! interrupt context. Since the handler function can preempt other code, care
-//! must be taken to protect memory or peripherals that are accessed by the
-//! handler and other non-handler code.
+//! interrupt context. Because the handler function can preempt other code,
+//! care must be taken to protect memory or peripherals that are accessed by
+//! the handler and other non-handler code.
//!
//! \note The use of this function (directly or indirectly via a peripheral
//! driver interrupt register function) moves the interrupt vector table from
//! flash to SRAM. Therefore, care must be taken when linking the application
//! to ensure that the SRAM vector table is located at the beginning of SRAM;
-//! otherwise NVIC will not look in the correct portion of memory for the
+//! otherwise the NVIC does not look in the correct portion of memory for the
//! vector table (it requires the vector table be on a 1 kB memory alignment).
//! Normally, the SRAM vector table is so placed via the use of linker scripts.
//! See the discussion of compile-time versus run-time interrupt handler
@@ -275,7 +276,7 @@ IntRegister(unsigned long ulInterrupt, void (*pfnHandler)(void))
}
//
- // Point NVIC at the RAM vector table.
+ // Point the NVIC at the RAM vector table.
//
HWREG(NVIC_VTABLE) = (unsigned long)g_pfnRAMVectors;
}
@@ -399,7 +400,7 @@ IntPriorityGroupingGet(void)
//! correspond to higher interrupt priorities; priority 0 is the highest
//! interrupt priority.
//!
-//! The hardware priority mechanism will only look at the upper N bits of the
+//! The hardware priority mechanism only looks at the upper N bits of the
//! priority level (where N is 3 for the Stellaris family), so any
//! prioritization must be performed in those bits. The remaining bits can be
//! used to sub-prioritize the interrupt sources, and may be used by the
@@ -587,13 +588,13 @@ IntDisable(unsigned long ulInterrupt)
//!
//! \param ulInterrupt specifies the interrupt to be pended.
//!
-//! The specified interrupt is pended in the interrupt controller. This will
-//! cause the interrupt controller to execute the corresponding interrupt
-//! handler at the next available time, based on the current interrupt state
-//! priorities. For example, if called by a higher priority interrupt handler,
-//! the specified interrupt handler will not be called until after the current
-//! interrupt handler has completed execution. The interrupt must have been
-//! enabled for it to be called.
+//! The specified interrupt is pended in the interrupt controller. Pending an
+//! interrupt causes the interrupt controller to execute the corresponding
+//! interrupt handler at the next available time, based on the current
+//! interrupt state priorities. For example, if called by a higher priority
+//! interrupt handler, the specified interrupt handler is not called until
+//! after the current interrupt handler has completed execution. The interrupt
+//! must have been enabled for it to be called.
//!
//! \return None.
//
@@ -646,10 +647,10 @@ IntPendSet(unsigned long ulInterrupt)
//!
//! \param ulInterrupt specifies the interrupt to be unpended.
//!
-//! 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.
+//! The specified interrupt is unpended in the interrupt controller. Unpending
+//! an interrupt causes any previously generated interrupts that have not been
+//! handled yet (due to higher priority interrupts or the interrupt not having
+//! been enabled yet) to be discarded.
//!
//! \return None.
//
@@ -696,16 +697,16 @@ IntPendClear(unsigned long ulInterrupt)
//! \param ulPriorityMask is the priority level that is masked.
//!
//! This function sets the interrupt priority masking level so that all
-//! interrupts at the specified or lesser priority level is masked. This
-//! can be used to globally disable a set of interrupts with priority below
-//! a predetermined threshold. A value of 0 disables priority
+//! interrupts at the specified or lesser priority level are masked. Masking
+//! interrupts can be used to globally disable a set of interrupts with
+//! priority below a predetermined threshold. A value of 0 disables priority
//! masking.
//!
//! Smaller numbers correspond to higher interrupt priorities. So for example
-//! a priority level mask of 4 will allow interrupts of priority level 0-3,
-//! and interrupts with a numerical priority of 4 and greater is blocked.
+//! a priority level mask of 4 allows interrupts of priority level 0-3,
+//! and interrupts with a numerical priority of 4 and greater are blocked.
//!
-//! The hardware priority mechanism will only look at the upper N bits of the
+//! The hardware priority mechanism only looks at the upper N bits of the
//! priority level (where N is 3 for the Stellaris family), so any
//! prioritization must be performed in those bits.
//!
@@ -728,10 +729,10 @@ IntPriorityMaskSet(unsigned long ulPriorityMask)
//! masking is disabled.
//!
//! Smaller numbers correspond to higher interrupt priorities. So for example
-//! a priority level mask of 4 will allow interrupts of priority level 0-3,
-//! and interrupts with a numerical priority of 4 and greater is blocked.
+//! a priority level mask of 4 allows interrupts of priority level 0-3,
+//! and interrupts with a numerical priority of 4 and greater are blocked.
//!
-//! The hardware priority mechanism will only look at the upper N bits of the
+//! The hardware priority mechanism only looks at the upper N bits of the
//! priority level (where N is 3 for the Stellaris family), so any
//! prioritization must be performed in those bits.
//!
diff --git a/bsp/lm4f232/Libraries/driverlib/interrupt.h b/bsp/lm4f232/Libraries/driverlib/interrupt.h
index b821209742..5ab98d6431 100644
--- a/bsp/lm4f232/Libraries/driverlib/interrupt.h
+++ b/bsp/lm4f232/Libraries/driverlib/interrupt.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/lpc.c b/bsp/lm4f232/Libraries/driverlib/lpc.c
index be412b6876..0e8cab7821 100644
--- a/bsp/lm4f232/Libraries/driverlib/lpc.c
+++ b/bsp/lm4f232/Libraries/driverlib/lpc.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -79,7 +79,7 @@ LPCChannelValid(unsigned long ulChannel)
//!
//! The \e ulConfig parameter is the logical OR of the following values:
//! - \b LPC_CFG_WAKE - Force assertion of the LPC0CLKRUN signal when the
-//! LPC bus is powered down (LPC0PD asserted).
+//! LPC bus is powered down (LPC0PD is asserted).
//!
//! \return None.
//
@@ -478,11 +478,11 @@ LPCIRQSend(unsigned long ulBase)
//! \param pfnHandler is a pointer to the function to be called when the
//! LPC interrupt occurs.
//!
-//! This sets the handler to be called when an LPC interrupt occurs. This
-//! will enable the global interrupt in the interrupt controller; specific
-//! LPC interrupts must be enabled via LPCIntEnable(). If necessary, it is
-//! the interrupt handler's responsibility to clear the interrupt source via
-//! LPCIntClear().
+//! This function registers the handler to be called when an LPC interrupt
+//! occurs. This function enables the global interrupt in the interrupt
+//! controller; specific LPC interrupts must be enabled via LPCIntEnable(). If
+//! necessary, it is the interrupt handler's responsibility to clear the
+//! interrupt source via LPCIntClear().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -516,9 +516,9 @@ LPCIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
//!
//! \param ulBase specifies the LPC module base address.
//!
-//! This function will clear the handler to be called when an LPC interrupt
-//! occurs. This will also mask off the interrupt in the interrupt controller
-//! so that the interrupt handler no longer is called.
+//! This function unregisters the handler to be called when an LPC interrupt
+//! occurs. This fucntion also masks off the interrupt in the interrupt
+//! controller so that the interrupt handler is no longer called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -552,9 +552,9 @@ LPCIntUnregister(unsigned long ulBase)
//! \param ulBase specifies the LPC module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be enabled.
//!
-//! Enables the indicated LPC interrupt sources. Only the sources that are
-//! enabled can be reflected to the processor interrupt; disabled sources have
-//! no effect on the processor.
+//! This function enables the indicated LPC interrupt sources. Only the
+//! sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! The \e ulIntFlags parameter can be any of the following values:
//! \b LPC_INT_RST, \b LPC_INT_SLEEP, \b LPC_INT_COMx, \b LPC_INT_SIRQ,
@@ -588,9 +588,9 @@ LPCIntEnable(unsigned long ulBase, unsigned long ulIntFlags)
//! \param ulBase specifies the LPC module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be disabled.
//!
-//! Disables the indicated LPC interrupt sources. Only the sources that are
-//! enabled can be reflected to the processor interrupt; disabled sources have
-//! no effect on the processor.
+//! This funciton disables the indicated LPC interrupt sources. Only the
+//! sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! \sa The description of the LPCIntEnable() function provides detailed
//! information for the bit-mapped values in \e ulIntFlags.
@@ -734,7 +734,7 @@ LPCChannelEnable(unsigned long ulBase, unsigned long ulChannel)
//! \param ulBase specifies the LPC module base address.
//! \param ulChannel specifies the LPC channel to disable.
//!
-//! The specified LPC Channel is disabled.
+//! This function disables the specified LPC Channel.
//!
//! \sa The description of the LPCChannelEnable() function provides detailed
//! information for the values that can be usd for the \e ulChannel parameter.
@@ -769,7 +769,7 @@ LPCChannelDisable(unsigned long ulBase, unsigned long ulChannel)
//! \param ulAddress specifies the LPC bus address (IO and/or MEM) for this
//! channel.
//!
-//! The specified LPC Channel is enabled as an endpoint.
+//! This function enables the specified LPC Channel as an endpoint.
//!
//! \return None.
//
@@ -821,7 +821,7 @@ LPCChannelConfigEPSet(unsigned long ulBase, unsigned long ulChannel,
//! \param ulAddress specifies the LPC bus address (IO and/or MEM) for this
//! channel.
//!
-//! The specified LPC Channel is enabled as a mailbox.
+//! This function enables the specified LPC Channel as a mailbox.
//!
//! \return None.
//
@@ -946,7 +946,8 @@ LPCChannelConfigCOMxSet(unsigned long ulBase, unsigned long ulChannel,
//! \param pulAddress is a pointer to storage for the channel bus address.
//! \param pulCOMxMode is a pointer to storage for the channel COMx mode.
//!
-//! The configuration for the specified channel is determined and returned.
+//! This function determines and returns the configuration for the specified
+//! channel.
//!
//! \return Returns the bit-mapped channel control register value.
//
@@ -979,8 +980,7 @@ LPCChannelConfigGet(unsigned long ulBase, unsigned long ulChannel,
}
//
- // Get the IO/Memory address that this endpoint will respond
- // to.
+ // Get the IO/Memory address that this endpoint responds to.
//
if(pulAddress)
{
@@ -1008,10 +1008,10 @@ LPCChannelConfigGet(unsigned long ulBase, unsigned long ulChannel,
//! \param ulBase specifies the LPC module base address.
//! \param ulChannel specifies the LPC channel to configure.
//!
-//! The absolute address of the channel pool is calculated from the channel
-//! configuration setting and returned.
+//! Thos function calculates the absolute address of the channel pool from the
+//! channel configuration setting and returns it.
//!
-//! \return Returns absolute base address of the channel pool.
+//! \return Returns the absolute base address of the channel pool.
//
//*****************************************************************************
unsigned long
@@ -1056,7 +1056,8 @@ LPCChannelPoolAddressGet(unsigned long ulBase, unsigned long ulChannel)
//! \param ulBase specifies the LPC module base address.
//! \param ulChannel specifies the LPC Channel.
//!
-//! Reads the status word from an LPC channel and returns it to the caller.
+//! This function reads the status word from an LPC channel and returns it to
+//! the caller.
//!
//! \return content of the channel status register.
//
@@ -1084,7 +1085,8 @@ LPCChannelStatusGet(unsigned long ulBase, unsigned long ulChannel)
//! \param ulChannel specifies the LPC Channel.
//! \param ulStatus is the user bit values to set.
//!
-//! Sets the selected user bits of the status word for an LPC channel.
+//! This function sets the selected user bits of the status word for an LPC
+//! channel.
//!
//! \return None
//
@@ -1103,7 +1105,7 @@ LPCChannelStatusSet(unsigned long ulBase, unsigned long ulChannel,
ASSERT((ulStatus & (~LPC_CH0ST_USER_M)) == 0);
//
- // Read thestatus from the LPC Channel, and set new values for
+ // Read the status from the LPC Channel, and set new values for
// the user bits.
//
ulTemp = HWREG(ulBase + LPC_O_CH0ST + (ulChannel * 0x10));
@@ -1119,7 +1121,8 @@ LPCChannelStatusSet(unsigned long ulBase, unsigned long ulChannel,
//! \param ulChannel specifies the LPC Channel.
//! \param ulStatus is the user bit values to clear.
//!
-//! Sets the selected user bits of the status word for an LPC channel.
+//! This function sets the selected user bits of the status word for an LPC
+//! channel.
//!
//! \return None
//
@@ -1138,7 +1141,7 @@ LPCChannelStatusClear(unsigned long ulBase, unsigned long ulChannel,
ASSERT((ulStatus & (~LPC_CH0ST_USER_M)) == 0);
//
- // Read thestatus from the LPC Channel, and set new values for
+ // Read the status from the LPC Channel, and set new values for
// the user bits.
//
ulTemp = HWREG(ulBase + LPC_O_CH0ST + (ulChannel * 0x10));
@@ -1154,8 +1157,8 @@ LPCChannelStatusClear(unsigned long ulBase, unsigned long ulChannel,
//! \param ulConfig specifies the DMA channel configuration.
//! \param ulMask specifies the configuration mask to be used.
//!
-//! Sets the specified DMA channel operation based on the \e ulConfig
-//! parameter.
+//! This function sets the specified DMA channel operation based on the
+//! \e ulConfig parameter.
//!
//! \return None.
//
@@ -1192,7 +1195,7 @@ LPCChannelDMAConfigSet(unsigned long ulBase, unsigned long ulConfig,
//!
//! \param ulBase specifies the LPC module base address.
//!
-//! Returns the configuration of the LPC DMA channels.
+//! This function returns the configuration of the LPC DMA channels.
//!
//! \return Returns the bit-mapped DMA channel configuration.
//
@@ -1219,7 +1222,7 @@ LPCChannelDMAConfigGet(unsigned long ulBase)
//! \param ulOffset specifies the offset from the beginning of the LPC channel
//! pool.
//!
-//! This function may be called to read a byte from the channel pool.
+//! This function reads a byte from the channel pool.
//!
//! \return Returns the byte read from the pool memory.
//
@@ -1249,7 +1252,7 @@ LPCByteRead(unsigned long ulBase, unsigned long ulOffset)
//! pool.
//! \param ucData specifies the byte to write.
//!
-//! Ths function may be called to write a byte to the channel pool.
+//! This function writes a byte to the channel pool.
//!
//! \return None
//
@@ -1279,8 +1282,8 @@ LPCByteWrite(unsigned long ulBase, unsigned long ulOffset,
//! \param ulOffset specifies the offset from the beginning of the LPC channel
//! pool.
//!
-//! This function may be called to read a half-word from the channel pool. The
-//! \e ulOffset specified must be half-word aligned.
+//! This function reads a half-word from the channel pool. The \e ulOffset
+//! specified must be half-word aligned.
//!
//! \return Returns the half-word read from the pool memory.
//
@@ -1311,8 +1314,8 @@ LPCHalfWordRead(unsigned long ulBase, unsigned long ulOffset)
//! pool.
//! \param usData specifies the byte to write.
//!
-//! Ths function may be called to write a half-word to the channel pool. The
-//! \e ulOffset specified must be half-word aligned.
+//! This function writes a half-word to the channel pool. The \e ulOffset
+//! specified must be half-word aligned.
//!
//! \return None
//
@@ -1343,10 +1346,10 @@ LPCHalfWordWrite(unsigned long ulBase, unsigned long ulOffset,
//! \param ulOffset specifies the offset from the beginning of the LPC channel
//! pool.
//!
-//! This function may be called to read a word from the channel pool. The
-//! \e ulOffset specified must be word aligned.
+//! This function reads a word from the channel pool. The \e ulOffset
+//! specified must be word aligned.
//!
-//! \return Returns the half-word read from the pool memory.
+//! \return Returns the word read from the pool memory.
//
//*****************************************************************************
unsigned long
@@ -1368,15 +1371,15 @@ LPCWordRead(unsigned long ulBase, unsigned long ulOffset)
//*****************************************************************************
//
-//! Writes a byte to the LPC channel pool.
+//! Writes a word to the LPC channel pool.
//!
//! \param ulBase specifies the LPC module base address.
//! \param ulOffset specifies the offset from the beginning of the LPC channel
//! pool.
-//! \param ulData specifies the byte to write.
+//! \param ulData specifies the word to write.
//!
-//! Ths function may be called to write a half-word to the channel pool. The
-//! \e ulOffset specified must be half-word aligned.
+//! This function writes a word to the channel pool. The \e ulOffset
+//! specified must be word aligned.
//!
//! \return None
//
@@ -1406,8 +1409,8 @@ LPCWordWrite(unsigned long ulBase, unsigned long ulOffset,
//! \param ulBase specifies the LPC module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be enabled.
//!
-//! Enables the indicated COMx interrupt sources to trigger the COMx interrupt
-//! in the primary LPC interrupt registers.
+//! This function enables the indicated COMx interrupt sources to trigger the
+//! COMx interrupt in the primary LPC interrupt registers.
//!
//! \return None.
//
@@ -1435,8 +1438,8 @@ LPCCOMxIntEnable(unsigned long ulBase, unsigned long ulIntFlags)
//! \param ulBase specifies the LPC module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be disabled.
//!
-//! Disables the indicated COMx interrupt sources from triggering the COMx
-//! interrupt in the primary LPC interrupt registers.
+//! This function disables the indicated COMx interrupt sources from triggering
+//! the COMx interrupt in the primary LPC interrupt registers.
//!
//! \return None.
//
@@ -1500,8 +1503,8 @@ LPCCOMxIntStatus(unsigned long ulBase, tBoolean bMasked)
//! \param ulBase specifies the LPC module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
//!
-//! The specified COMx interrupt sources are cleared so that they no longer
-//! assert.
+//! This function clears the specified COMx interrupt sources so that they no
+//! longer assert.
//!
//! \return None.
//
diff --git a/bsp/lm4f232/Libraries/driverlib/lpc.h b/bsp/lm4f232/Libraries/driverlib/lpc.h
index 8fd9c96b09..ec67c6578c 100644
--- a/bsp/lm4f232/Libraries/driverlib/lpc.h
+++ b/bsp/lm4f232/Libraries/driverlib/lpc.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/mpu.c b/bsp/lm4f232/Libraries/driverlib/mpu.c
index 1bef83f5d9..a0bc0c404e 100644
--- a/bsp/lm4f232/Libraries/driverlib/mpu.c
+++ b/bsp/lm4f232/Libraries/driverlib/mpu.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -42,13 +42,13 @@
//!
//! \param ulMPUConfig is the logical OR of the possible configurations.
//!
-//! This function enables the Cortex-M3 memory protection unit. It also
+//! This function enables the Cortex-M memory protection unit. It also
//! configures the default behavior when in privileged mode and while handling
//! a hard fault or NMI. Prior to enabling the MPU, at least one region must
//! be set by calling MPURegionSet() or else by enabling the default region for
//! privileged mode by passing the \b MPU_CONFIG_PRIV_DEFAULT flag to
-//! MPUEnable(). Once the MPU is enabled, a memory management fault are
-//! generated for any memory access violations.
+//! MPUEnable(). Once the MPU is enabled, a memory management fault is
+//! generated for memory access violations.
//!
//! The \e ulMPUConfig parameter should be the logical OR of any of the
//! following:
@@ -62,8 +62,8 @@
//! disabled while in one of these exception handlers and the default
//! memory map is applied.
//! - \b MPU_CONFIG_NONE chooses none of the above options. In this case,
-//! no default memory map is provided in privileged mode, and the MPU will
-//! not be enabled in the fault handlers.
+//! no default memory map is provided in privileged mode, and the MPU isl
+//! not enabled in the fault handlers.
//!
//! \return None.
//
@@ -88,7 +88,7 @@ MPUEnable(unsigned long ulMPUConfig)
//
//! Disables the MPU for use.
//!
-//! This function disables the Cortex-M3 memory protection unit. When the
+//! This function disables the Cortex-M memory protection unit. When the
//! MPU is disabled, the default memory map is used and memory management
//! faults are not generated.
//!
@@ -108,9 +108,8 @@ MPUDisable(void)
//
//! Gets the count of regions supported by the MPU.
//!
-//! This function is used to get the number of regions that are supported by
-//! the MPU. This is the total number that are supported, including regions
-//! that are already programmed.
+//! This function is used to get the total number of regions that are supported
+//! by the MPU, including regions that are already programmed.
//!
//! \return The number of memory protection regions that are available
//! for programming using MPURegionSet().
@@ -120,7 +119,7 @@ unsigned long
MPURegionCountGet(void)
{
//
- // Read the DREGION field of the MPU type register, and mask off
+ // Read the DREGION field of the MPU type register and mask off
// the bits of interest to get the count of regions.
//
return((HWREG(NVIC_MPU_TYPE) & NVIC_MPU_TYPE_DREGION_M)
@@ -134,9 +133,9 @@ MPURegionCountGet(void)
//! \param ulRegion is the region number to enable.
//!
//! This function is used to enable a memory protection region. The region
-//! should already be set up with the MPURegionSet() function. Once enabled,
-//! the memory protection rules of the region are applied and access violations
-//! will cause a memory management fault.
+//! should already be configured with the MPURegionSet() function. Once
+//! enabled, the memory protection rules of the region are applied and access
+//! violations cause a memory management fault.
//!
//! \return None.
//
@@ -167,7 +166,7 @@ MPURegionEnable(unsigned long ulRegion)
//! \param ulRegion is the region number to disable.
//!
//! This function is used to disable a previously enabled memory protection
-//! region. The region will remain configured if it is not overwritten with
+//! region. The region remains configured if it is not overwritten with
//! another call to MPURegionSet(), and can be enabled again by calling
//! MPURegionEnable().
//!
@@ -203,16 +202,16 @@ MPURegionDisable(unsigned long ulRegion)
//! \param ulFlags is a set of flags to define the attributes of the region.
//!
//! This function sets up the protection rules for a region. The region has
-//! a base address and a set of attributes including the size, which must
-//! be a power of 2. The base address parameter, \e ulAddr, must be aligned
-//! according to the size.
+//! a base address and a set of attributes including the size. The base
+//! address parameter, \e ulAddr, must be aligned according to the size, and
+//! the size must be a power of 2.
//!
//! The \e ulFlags parameter is the logical OR of all of the attributes
//! of the region. It is a combination of choices for region size,
//! execute permission, read/write permissions, disabled sub-regions,
//! and a flag to determine if the region is enabled.
//!
-//! The size flag determines the size of a region, and must be one of the
+//! The size flag determines the size of a region and must be one of the
//! following:
//!
//! - \b MPU_RGN_SIZE_32B
@@ -262,8 +261,8 @@ MPURegionDisable(unsigned long ulRegion)
//!
//! The region is automatically divided into 8 equally-sized sub-regions by
//! the MPU. Sub-regions can only be used in regions of size 256 bytes
-//! or larger. Any of these 8 sub-regions can be disabled. This allows
-//! for creation of ``holes'' in a region which can be left open, or overlaid
+//! or larger. Any of these 8 sub-regions can be disabled, allowing for
+//! creation of ``holes'' in a region which can be left open, or overlaid
//! by another region with different attributes. Any of the 8 sub-regions
//! can be disabled with a logical OR of any of the following flags:
//!
@@ -292,7 +291,7 @@ MPURegionDisable(unsigned long ulRegion)
//! MPU_SUB_RGN_DISABLE_2 | MPU_RGN_ENABLE)
//!
//!
-//! \note This function will write to multiple registers and is not protected
+//! \note This function writes to multiple registers and is not protected
//! from interrupts. It is possible that an interrupt which accesses a
//! region may occur while that region is in the process of being changed.
//! The safest way to handle this is to disable a region before changing it.
@@ -382,8 +381,9 @@ MPURegionGet(unsigned long ulRegion, unsigned long *pulAddr,
//! \param pfnHandler is a pointer to the function to be called when the
//! memory management fault occurs.
//!
-//! This sets and enables the handler to be called when the MPU generates
-//! a memory management fault due to a protection region access violation.
+//! This function sets and enables the handler to be called when the MPU
+//! generates a memory management fault due to a protection region access
+//! violation.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -414,7 +414,7 @@ MPUIntRegister(void (*pfnHandler)(void))
//
//! Unregisters an interrupt handler for the memory management fault.
//!
-//! This function will disable and clear the handler to be called when a
+//! This function disables and clears the handler to be called when a
//! memory management fault occurs.
//!
//! \sa IntRegister() for important information about registering interrupt
diff --git a/bsp/lm4f232/Libraries/driverlib/mpu.h b/bsp/lm4f232/Libraries/driverlib/mpu.h
index 8b8bbbca66..655228da60 100644
--- a/bsp/lm4f232/Libraries/driverlib/mpu.h
+++ b/bsp/lm4f232/Libraries/driverlib/mpu.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/peci.c b/bsp/lm4f232/Libraries/driverlib/peci.c
index a6d3c88b0c..e07cfc54af 100644
--- a/bsp/lm4f232/Libraries/driverlib/peci.c
+++ b/bsp/lm4f232/Libraries/driverlib/peci.c
@@ -19,7 +19,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -99,7 +99,7 @@ PECIDomainValid(unsigned long ulDomain)
//! host/domain combination can be configured/enabled with a call to
//! PECIDomainEnable().
//!
-//! The peripheral clock is the same as the processor clock. This is the value
+//! The peripheral clock is the same as the processor clock. This value is
//! returned by SysCtlClockGet(), or it can be explicitly hard coded if it is
//! constant and known (to save the code/execution overhead of a call to
//! SysCtlClockGet()).
@@ -185,7 +185,7 @@ PECIConfigSet(unsigned long ulBase, unsigned long ulPECIClk,
//! rates being used; they may not be the same as the requested rates, due to
//! rounding in the calculations.
//!
-//! The peripheral clock is the same as the processor clock. This is the value
+//! The peripheral clock is the same as the processor clock. This value is
//! returned by SysCtlClockGet(), or it can be explicitly hard coded if it is
//! constant and known (to save the code/execution overhead of a call to
//! SysCtlClockGet()).
@@ -295,8 +295,8 @@ PECIBypassDisable(unsigned long ulBase)
//!
//! This function configures the specified PECI domain for temperature
//! monitoring operations. The values for \e ulHigh and \e ulLow can be
-//! specified as a value relative to the maximum temperature allowed, or it
-//! can be specified as an absolute temperature (if an offset was programmed
+//! specified as values relative to the maximum temperature allowed, or they
+//! can be specified as absolute temperatures if an offset was programmed
//! in the PECIConfigSet() function.
//!
//! The \e ulDomain parameter can be one of the following values:
@@ -339,8 +339,8 @@ PECIDomainConfigSet(unsigned long ulBase, unsigned long ulDomain,
//!
//! This function configures the specified PECI domain for temperature
//! monitoring operations. The values for \e ulHigh and \e ulLow can be
-//! specified as a value relative to the maximum temperature allowed, or it
-//! can be specified as an absolute temperature (if an offset was programmed
+//! specified as values relative to the maximum temperature allowed, or they
+//! can be specified as absolute temperatures if an offset was programmed
//! in the PECIConfigSet() function.
//!
//! The \e ulDomain parameter can be one of the following values:
@@ -574,11 +574,11 @@ PECIDomainMaxReadClear(unsigned long ulBase, unsigned long ulDomain)
//! \param pfnHandler is a pointer to the function to be called when the
//! PECI interrupt occurs.
//!
-//! This sets the handler to be called when an PECI interrupt occurs. This
-//! will enable the global interrupt in the interrupt controller; specific
-//! PECI interrupts must be enabled via PECIIntEnable(). If necessary, it is
-//! the interrupt handler's responsibility to clear the interrupt source via
-//! PECIIntClear().
+//! This function registers the handler to be called when an PECI interrupt
+//! occurs. This function enables the global interrupt in the interrupt
+//! controller; specific PECI interrupts must be enabled via PECIIntEnable().
+//! If necessary, it is the interrupt handler's responsibility to clear the
+//! interrupt source via PECIIntClear().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -612,9 +612,9 @@ PECIIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
//!
//! \param ulBase specifies the PECI module base address.
//!
-//! This function will clear the handler to be called when a PECI interrupt
-//! occurs. This will also mask off the interrupt in the interrupt controller
-//! so that the interrupt handler no longer is called.
+//! This function unregisters the handler to be called when a PECI interrupt
+//! occurs. This function also masks off the interrupt in the interrupt
+//! controller so that the interrupt handler no longer is called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -649,9 +649,9 @@ PECIIntUnregister(unsigned long ulBase)
//! \param ulIntFlags is a bit mask of the interrupt sources to be enabled.
//! \param ulIntMode is the mode for the PECI domain interrupts.
//!
-//! Enables the indicated PECI interrupt sources. Only the sources that are
-//! enabled can be reflected to the processor interrupt; disabled sources have
-//! no effect on the processor.
+//! This function enables the indicated PECI interrupt sources. Only the
+//! sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! The \e ulIntFlags parameter can be any of the following values:
//! \b PECI_READ, \b PECI_ERR, \b PECI_AC, \b PECI_M0D0, \b PECI_M0D1,
@@ -692,8 +692,8 @@ PECIIntEnable(unsigned long ulBase, unsigned long ulIntFlags,
//
// Set/Enable the bit/bit-fields based on the value in the flags and mode
- // parameter. The flags parameter will alter the bits in the lower half
- // of the mask, while the mode will alter the bit fields in the upper
+ // parameter. The flags parameter alters the bits in the lower half
+ // of the mask, while the mode alters the bit fields in the upper
// half of the mask.
//
ulTemp |= (0x0000FFFF & ulIntFlags);
@@ -708,9 +708,9 @@ PECIIntEnable(unsigned long ulBase, unsigned long ulIntFlags,
//! \param ulBase specifies the PECI module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be disabled.
//!
-//! Disables the indicated PECI interrupt sources. Only the sources that are
-//! enabled can be reflected to the processor interrupt; disabled sources have
-//! no effect on the processor.
+//! This function disables the indicated PECI interrupt sources. Only the
+//! sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! The \e ulIntFlags parameter can be any of the following values:
//! \b PECI_READ, \b PECI_ERR, \b PECI_AC, \b PECI_M0D0, \b PECI_M0D1,
@@ -785,12 +785,12 @@ PECIIntStatus(unsigned long ulBase, tBoolean bMasked)
//! \param ulBase specifies the PECI module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
//!
-//! The specified PECI interrupt sources are cleared so that they no longer
-//! assert. This function must be called in the interrupt handler to keep the
-//! interrupts from being recognized again immediately upon exit. The
-//! \e ulIntFlags parameter can consist of any combination of the \b PECI_READ,
-//! \b PECI_ERR, \b PECI_AC, \b PECI_M0D0, \b PECI_M0D1, \b PECI_M1D0, or
-//! \b PECI_M1D1 values.
+//! This function clears the specified PECI interrupt sources so that they no
+//! longer assert. This function must be called in the interrupt handler to
+//! keep the interrupts from being recognized again immediately upon exit.
+//! The \e ulIntFlags parameter can consist of any combination of the
+//! \b PECI_READ, \b PECI_ERR, \b PECI_AC, \b PECI_M0D0, \b PECI_M0D1,
+//! \b PECI_M1D0, or \b PECI_M1D1 values.
//!
//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
diff --git a/bsp/lm4f232/Libraries/driverlib/peci.h b/bsp/lm4f232/Libraries/driverlib/peci.h
index c81223184c..e1b0b9016b 100644
--- a/bsp/lm4f232/Libraries/driverlib/peci.h
+++ b/bsp/lm4f232/Libraries/driverlib/peci.h
@@ -19,7 +19,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/pin_map.h b/bsp/lm4f232/Libraries/driverlib/pin_map.h
index 60bf360def..51c4a2e342 100644
--- a/bsp/lm4f232/Libraries/driverlib/pin_map.h
+++ b/bsp/lm4f232/Libraries/driverlib/pin_map.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/pwm.c b/bsp/lm4f232/Libraries/driverlib/pwm.c
index e527200662..c6432735d1 100644
--- a/bsp/lm4f232/Libraries/driverlib/pwm.c
+++ b/bsp/lm4f232/Libraries/driverlib/pwm.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -105,8 +105,8 @@ PWMOutValid(unsigned long ulPWMOut)
//! Configures a PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator to configure. Must be one of
-//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator to configure. This parameter must be one
+//! of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param ulConfig is the configuration for the PWM generator.
//!
//! This function is used to set the mode of operation for a PWM generator.
@@ -115,31 +115,31 @@ PWMOutValid(unsigned long ulPWMOut)
//! state.
//!
//! A PWM generator can count in two different modes: count down mode or count
-//! up/down mode. In count down mode, it will count from a value down to zero,
-//! and then reset to the preset value. This will produce left-aligned PWM
-//! signals (that is the rising edge of the two PWM signals produced by the
-//! generator will occur at the same time). In count up/down mode, it will
-//! count up from zero to the preset value, count back down to zero, and then
-//! repeat the process. This will produce center-aligned PWM signals (that is,
+//! up/down mode. In count down mode, it counts from a value down to zero,
+//! and then resets to the preset value, producing left-aligned PWM
+//! signals (that is, the rising edge of the two PWM signals produced by the
+//! generator occur at the same time). In count up/down mode, it counts up
+//! from zero to the preset value, counts back down to zero, and then repeats
+//! the process, producing center-aligned PWM signals (that is,
//! the middle of the high/low period of the PWM signals produced by the
-//! generator will occur at the same time).
+//! generator occurs at the same time).
//!
//! When the PWM generator parameters (period and pulse width) are modified,
-//! their affect on the output PWM signals can be delayed. In synchronous
+//! their effect on the output PWM signals can be delayed. In synchronous
//! mode, the parameter updates are not applied until a synchronization event
-//! occurs. This allows multiple parameters to be modified and take affect
-//! simultaneously, instead of one at a time. Additionally, parameters to
-//! multiple PWM generators in synchronous mode can be updated simultaneously,
-//! allowing them to be treated as if they were a unified generator. In
-//! non-synchronous mode, the parameter updates are not delayed until a
-//! synchronization event. In either mode, the parameter updates only occur
-//! when the counter is at zero to help prevent oddly formed PWM signals during
-//! the update (that is, a PWM pulse that is too short or too long).
+//! occurs. This mode allows multiple parameters to be modified and take
+//! effect simultaneously, instead of one at a time. Additionally, parameters
+//! to multiple PWM generators in synchronous mode can be updated
+//! simultaneously, allowing them to be treated as if they were a unified
+//! generator. In non-synchronous mode, the parameter updates are not delayed
+//! until a synchronization event. In either mode, the parameter updates only
+//! occur when the counter is at zero to help prevent oddly formed PWM signals
+//! during the update (that is, a PWM pulse that is too short or too long).
//!
//! The PWM generator can either pause or continue running when the processor
-//! is stopped via the debugger. If configured to pause, it will continue to
-//! count until it reaches zero, at which point it will pause until the
-//! processor is restarted. If configured to continue running, it will keep
+//! is stopped via the debugger. If configured to pause, it continues to
+//! count until it reaches zero, at which point it pauses until the
+//! processor is restarted. If configured to continue running, it keeps
//! counting as if nothing had happened.
//!
//! The \e ulConfig parameter contains the desired configuration. It is the
@@ -165,14 +165,14 @@ PWMOutValid(unsigned long ulPWMOut)
//! whether extended fault source selection support is enabled or not
//!
//! Setting \b PWM_GEN_MODE_FAULT_MINPER allows an application to set the
-//! minimum duration of a PWM fault signal. Faults will be signaled for at
+//! minimum duration of a PWM fault signal. Faults are signaled for at
//! least this time even if the external fault pin deasserts earlier. Care
-//! should be taken when using this mode since during the fault signal period,
-//! the fault interrupt from the PWM generator will remain asserted. The fault
-//! interrupt handler may, therefore, reenter immediately if it exits prior to
-//! expiration of the fault timer.
+//! should be taken when using this mode because during the fault signal
+//! period, the fault interrupt from the PWM generator remains asserted. The
+//! fault interrupt handler may, therefore, reenter immediately if it exits
+//! prior to expiration of the fault timer.
//!
-//! \note Changes to the counter mode will affect the period of the PWM signals
+//! \note Changes to the counter mode affect the period of the PWM signals
//! produced. PWMGenPeriodSet() and PWMPulseWidthSet() should be called after
//! any changes to the counter mode of a generator.
//!
@@ -238,11 +238,11 @@ PWMGenConfigure(unsigned long ulBase, unsigned long ulGen,
//*****************************************************************************
//
-//! Set the period of a PWM generator.
+//! Sets the period of a PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator to be modified. Must be one of
-//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator to be modified. This parameter must be
+//! one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param ulPeriod specifies the period of PWM generator output, measured
//! in clock ticks.
//!
@@ -251,7 +251,7 @@ PWMGenConfigure(unsigned long ulBase, unsigned long ulGen,
//! ticks between pulses on the generator block zero signal.
//!
//! \note Any subsequent calls made to this function before an update occurs
-//! will cause the previous values to be overwritten.
+//! cause the previous values to be overwritten.
//!
//! \return None.
//
@@ -299,7 +299,7 @@ PWMGenPeriodSet(unsigned long ulBase, unsigned long ulGen,
//! Gets the period of a PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator to query. Must be one of
+//! \param ulGen is the PWM generator to query. This parameter must be one of
//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//!
//! This function gets the period of the specified PWM generator block. The
@@ -352,8 +352,8 @@ PWMGenPeriodGet(unsigned long ulBase, unsigned long ulGen)
//! Enables the timer/counter for a PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator to be enabled. Must be one of
-//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator to be enabled. This parameter must be
+//! one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//!
//! This function allows the PWM clock to drive the timer/counter for the
//! specified generator block.
@@ -381,8 +381,8 @@ PWMGenEnable(unsigned long ulBase, unsigned long ulGen)
//! Disables the timer/counter for a PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator to be disabled. Must be one of
-//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator to be disabled. This parameter must be
+//! one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//!
//! This function blocks the PWM clock from driving the timer/counter for the
//! specified generator block.
@@ -410,16 +410,16 @@ PWMGenDisable(unsigned long ulBase, unsigned long ulGen)
//! Sets the pulse width for the specified PWM output.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulPWMOut is the PWM output to modify. Must be one of \b PWM_OUT_0,
-//! \b PWM_OUT_1, \b PWM_OUT_2, \b PWM_OUT_3, \b PWM_OUT_4, \b PWM_OUT_5,
-//! \b PWM_OUT_6, or \b PWM_OUT_7.
+//! \param ulPWMOut is the PWM output to modify. This parameter must be one
+//! of \b PWM_OUT_0, \b PWM_OUT_1, \b PWM_OUT_2, \b PWM_OUT_3, \b PWM_OUT_4,
+//! \b PWM_OUT_5, \b PWM_OUT_6, or \b PWM_OUT_7.
//! \param ulWidth specifies the width of the positive portion of the pulse.
//!
//! This function sets the pulse width for the specified PWM output, where the
//! pulse width is defined as the number of PWM clock ticks.
//!
//! \note Any subsequent calls made to this function before an update occurs
-//! will cause the previous values to be overwritten.
+//! cause the previous values to be overwritten.
//!
//! \return None.
//
@@ -482,9 +482,9 @@ PWMPulseWidthSet(unsigned long ulBase, unsigned long ulPWMOut,
//! Gets the pulse width of a PWM output.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulPWMOut is the PWM output to query. Must be one of \b PWM_OUT_0,
-//! \b PWM_OUT_1, \b PWM_OUT_2, \b PWM_OUT_3, \b PWM_OUT_4, \b PWM_OUT_5,
-//! \b PWM_OUT_6, or \b PWM_OUT_7.
+//! \param ulPWMOut is the PWM output to query. This parameter must be one of
+//! \b PWM_OUT_0, \b PWM_OUT_1, \b PWM_OUT_2, \b PWM_OUT_3, \b PWM_OUT_4,
+//! \b PWM_OUT_5, \b PWM_OUT_6, or \b PWM_OUT_7.
//!
//! This function gets the currently programmed pulse width for the specified
//! PWM output. If the update of the comparator for the specified output has
@@ -542,11 +542,11 @@ PWMPulseWidthGet(unsigned long ulBase, unsigned long ulPWMOut)
//*****************************************************************************
//
-//! Enables the PWM dead band output, and sets the dead band delays.
+//! Enables the PWM dead band output and sets the dead band delays.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator to modify. Must be one of
-//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator to modify. This parameter must be one
+//! of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param usRise specifies the width of delay from the rising edge.
//! \param usFall specifies the width of delay from the falling edge.
//!
@@ -557,7 +557,7 @@ PWMPulseWidthGet(unsigned long ulBase, unsigned long ulPWMOut)
//!
//! \return None.
//
-//*****************************************************************************
+//****************************************************************************
void
PWMDeadBandEnable(unsigned long ulBase, unsigned long ulGen,
unsigned short usRise, unsigned short usFall)
@@ -592,7 +592,7 @@ PWMDeadBandEnable(unsigned long ulBase, unsigned long ulGen,
//! Disables the PWM dead band output.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator to modify. Must be one of
+//! \param ulGen is the PWM generator to modify. This parameter must be one of
//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//!
//! This function disables the dead band mode for the specified PWM generator.
@@ -622,9 +622,9 @@ PWMDeadBandDisable(unsigned long ulBase, unsigned long ulGen)
//! Synchronizes all pending updates.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGenBits are the PWM generator blocks to be updated. Must be the
-//! logical OR of any of \b PWM_GEN_0_BIT, \b PWM_GEN_1_BIT,
-//! \b PWM_GEN_2_BIT, or \b PWM_GEN_3_BIT.
+//! \param ulGenBits are the PWM generator blocks to be updated. This
+//! parameter must be the logical OR of any of \b PWM_GEN_0_BIT,
+//! \b PWM_GEN_1_BIT, \b PWM_GEN_2_BIT, or \b PWM_GEN_3_BIT.
//!
//! For the selected PWM generators, this function causes all queued updates to
//! the period or pulse width to be applied the next time the corresponding
@@ -654,9 +654,9 @@ PWMSyncUpdate(unsigned long ulBase, unsigned long ulGenBits)
//! Synchronizes the counters in one or multiple PWM generator blocks.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGenBits are the PWM generator blocks to be synchronized. Must be
-//! the logical OR of any of \b PWM_GEN_0_BIT, \b PWM_GEN_1_BIT,
-//! \b PWM_GEN_2_BIT, or \b PWM_GEN_3_BIT.
+//! \param ulGenBits are the PWM generator blocks to be synchronized. This
+//! parameter must be the logical OR of any of \b PWM_GEN_0_BIT,
+//! \b PWM_GEN_1_BIT, \b PWM_GEN_2_BIT, or \b PWM_GEN_3_BIT.
//!
//! For the selected PWM module, this function synchronizes the time base
//! of the generator blocks by causing the specified generator counters to be
@@ -687,17 +687,17 @@ PWMSyncTimeBase(unsigned long ulBase, unsigned long ulGenBits)
//! Enables or disables PWM outputs.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulPWMOutBits are the PWM outputs to be modified. Must be the
-//! logical OR of any of \b PWM_OUT_0_BIT, \b PWM_OUT_1_BIT, \b PWM_OUT_2_BIT,
-//! \b PWM_OUT_3_BIT, \b PWM_OUT_4_BIT, \b PWM_OUT_5_BIT, \b PWM_OUT_6_BIT,
-//! or \b PWM_OUT_7_BIT.
+//! \param ulPWMOutBits are the PWM outputs to be modified. This parameter
+//! must be the logical OR of any of \b PWM_OUT_0_BIT, \b PWM_OUT_1_BIT,
+//! \b PWM_OUT_2_BIT, \b PWM_OUT_3_BIT, \b PWM_OUT_4_BIT, \b PWM_OUT_5_BIT,
+//! \b PWM_OUT_6_BIT, or \b PWM_OUT_7_BIT.
//! \param bEnable determines if the signal is enabled or disabled.
//!
-//! This function is used to enable or disable the selected PWM outputs. The
+//! This function enables or disables the selected PWM outputs. The
//! outputs are selected using the parameter \e ulPWMOutBits. The parameter
//! \e bEnable determines the state of the selected outputs. If \e bEnable is
//! \b true, then the selected PWM outputs are enabled, or placed in the active
-//! state. If \e bEnable is \b false, then the selected outputs are disabled,
+//! state. If \e bEnable is \b false, then the selected outputs are disabled
//! or placed in the inactive state.
//!
//! \return None.
@@ -716,7 +716,7 @@ PWMOutputState(unsigned long ulBase, unsigned long ulPWMOutBits,
PWM_OUT_6_BIT | PWM_OUT_7_BIT)));
//
- // Read the module's ENABLE output control register, and set or clear the
+ // Read the module's ENABLE output control register and set or clear the
// requested bits.
//
if(bEnable == true)
@@ -734,18 +734,18 @@ PWMOutputState(unsigned long ulBase, unsigned long ulPWMOutBits,
//! Selects the inversion mode for PWM outputs.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulPWMOutBits are the PWM outputs to be modified. Must be the
-//! logical OR of any of \b PWM_OUT_0_BIT, \b PWM_OUT_1_BIT, \b PWM_OUT_2_BIT,
-//! \b PWM_OUT_3_BIT, \b PWM_OUT_4_BIT, \b PWM_OUT_5_BIT, \b PWM_OUT_6_BIT, or
-//! \b PWM_OUT_7_BIT.
+//! \param ulPWMOutBits are the PWM outputs to be modified. This parameter
+//! must be the logical OR of any of \b PWM_OUT_0_BIT, \b PWM_OUT_1_BIT,
+//! \b PWM_OUT_2_BIT, \b PWM_OUT_3_BIT, \b PWM_OUT_4_BIT, \b PWM_OUT_5_BIT,
+//! \b PWM_OUT_6_BIT, or \b PWM_OUT_7_BIT.
//! \param bInvert determines if the signal is inverted or passed through.
//!
//! This function is used to select the inversion mode for the selected PWM
//! outputs. The outputs are selected using the parameter \e ulPWMOutBits.
//! The parameter \e bInvert determines the inversion mode for the selected
-//! outputs. If \e bInvert is \b true, this function will cause the specified
-//! PWM output signals to be inverted, or made active low. If \e bInvert is
-//! \b false, the specified outputs are passed through as is, or be made active
+//! outputs. If \e bInvert is \b true, this function causes the specified
+//! PWM output signals to be inverted or made active low. If \e bInvert is
+//! \b false, the specified outputs are passed through as is or made active
//! high.
//!
//! \return None.
@@ -764,7 +764,7 @@ PWMOutputInvert(unsigned long ulBase, unsigned long ulPWMOutBits,
PWM_OUT_6_BIT | PWM_OUT_7_BIT)));
//
- // Read the module's INVERT output control register, and set or clear the
+ // Read the module's INVERT output control register and set or clear the
// requested bits.
//
if(bInvert == true)
@@ -783,10 +783,10 @@ PWMOutputInvert(unsigned long ulBase, unsigned long ulPWMOutBits,
//! condition.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulPWMOutBits are the PWM outputs to be modified. Must be the
-//! logical OR of any of \b PWM_OUT_0_BIT, \b PWM_OUT_1_BIT, \b PWM_OUT_2_BIT,
-//! \b PWM_OUT_3_BIT, \b PWM_OUT_4_BIT, \b PWM_OUT_5_BIT, \b PWM_OUT_6_BIT, or
-//! \b PWM_OUT_7_BIT.
+//! \param ulPWMOutBits are the PWM outputs to be modified. This parameter
+//! must be the logical OR of any of \b PWM_OUT_0_BIT, \b PWM_OUT_1_BIT,
+//! \b PWM_OUT_2_BIT, \b PWM_OUT_3_BIT, \b PWM_OUT_4_BIT, \b PWM_OUT_5_BIT,
+//! \b PWM_OUT_6_BIT, or \b PWM_OUT_7_BIT.
//! \param bDriveHigh determines if the signal is driven high or low during an
//! active fault condition.
//!
@@ -820,7 +820,7 @@ PWMOutputFaultLevel(unsigned long ulBase, unsigned long ulPWMOutBits,
PWM_OUT_6_BIT | PWM_OUT_7_BIT)));
//
- // Read the module's FAULT output control register, and set or clear the
+ // Read the module's FAULT output control register and set or clear the
// requested bits.
//
if(bDriveHigh == true)
@@ -838,10 +838,10 @@ PWMOutputFaultLevel(unsigned long ulBase, unsigned long ulPWMOutBits,
//! Specifies the state of PWM outputs in response to a fault condition.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulPWMOutBits are the PWM outputs to be modified. Must be the
-//! logical OR of any of \b PWM_OUT_0_BIT, \b PWM_OUT_1_BIT, \b PWM_OUT_2_BIT,
-//! \b PWM_OUT_3_BIT, \b PWM_OUT_4_BIT, \b PWM_OUT_5_BIT, \b PWM_OUT_6_BIT, or
-//! \b PWM_OUT_7_BIT.
+//! \param ulPWMOutBits are the PWM outputs to be modified. This parameter
+//! must be the logical OR of any of \b PWM_OUT_0_BIT, \b PWM_OUT_1_BIT,
+//! \b PWM_OUT_2_BIT, \b PWM_OUT_3_BIT, \b PWM_OUT_4_BIT, \b PWM_OUT_5_BIT,
+//! \b PWM_OUT_6_BIT, or \b PWM_OUT_7_BIT.
//! \param bFaultSuppress determines if the signal is suppressed or passed
//! through during an active fault condition.
//!
@@ -873,7 +873,7 @@ PWMOutputFault(unsigned long ulBase, unsigned long ulPWMOutBits,
PWM_OUT_6_BIT | PWM_OUT_7_BIT)));
//
- // Read the module's FAULT output control register, and set or clear the
+ // Read the module's FAULT output control register and set or clear the
// requested bits.
//
if(bFaultSuppress == true)
@@ -891,10 +891,10 @@ PWMOutputFault(unsigned long ulBase, unsigned long ulPWMOutBits,
//! Gets the PWM generator interrupt number.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator in question. Must be one of
-//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator in question. This parameter must be one
+//! of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//!
-//! This function will return the interrupt number of the corresponding PWM
+//! This function returns the interrupt number of the corresponding PWM
//! generator.
//!
//! \return Returns the interrupt number.
@@ -987,14 +987,14 @@ PWMGenIntGet(unsigned long ulBase, unsigned long ulGen)
//! Registers an interrupt handler for the specified PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator in question. Must be one of
-//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator in question. This parameter must be one
+//! of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param pfnIntHandler is a pointer to the function to be called when the PWM
//! generator interrupt occurs.
//!
-//! This function will ensure that the interrupt handler specified by
+//! This function ensures that the interrupt handler specified by
//! \e pfnIntHandler is called when an interrupt is detected for the specified
-//! PWM generator block. This function will also enable the corresponding
+//! PWM generator block. This function also enables the corresponding
//! PWM generator interrupt in the interrupt controller; individual generator
//! interrupts and interrupt sources must be enabled with PWMIntEnable() and
//! PWMGenIntTrigEnable().
@@ -1038,11 +1038,11 @@ PWMGenIntRegister(unsigned long ulBase, unsigned long ulGen,
//! Removes an interrupt handler for the specified PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator in question. Must be one of
-//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator in question. This parameter must be one
+//! of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//!
-//! This function will unregister the interrupt handler for the specified
-//! PWM generator block. This function will also disable the corresponding
+//! This function unregisters the interrupt handler for the specified
+//! PWM generator block. This function also disables the corresponding
//! PWM generator interrupt in the interrupt controller; individual generator
//! interrupts and interrupt sources must be disabled with PWMIntDisable() and
//! PWMGenIntTrigDisable().
@@ -1086,7 +1086,7 @@ PWMGenIntUnregister(unsigned long ulBase, unsigned long ulGen)
//!
//! \param ulBase is the base address of the PWM module.
//!
-//! This function will return the fault interrupt number of the corresponding
+//! This function returns the fault interrupt number of the corresponding
//! PWM module.
//!
//! \return Returns the interrupt number.
@@ -1110,9 +1110,9 @@ PWMFaultIntGet(unsigned long ulBase)
//! \param pfnIntHandler is a pointer to the function to be called when the PWM
//! fault interrupt occurs.
//!
-//! This function will ensure that the interrupt handler specified by
+//! This function ensures that the interrupt handler specified by
//! \e pfnIntHandler is called when a fault interrupt is detected for the
-//! selected PWM module. This function will also enable the PWM fault
+//! selected PWM module. This function also enables the PWM fault
//! interrupt in the NVIC; the PWM fault interrupt must also be enabled at the
//! module level using PWMIntEnable().
//!
@@ -1154,8 +1154,8 @@ PWMFaultIntRegister(unsigned long ulBase, void (*pfnIntHandler)(void))
//!
//! \param ulBase is the base address of the PWM module.
//!
-//! This function will remove the interrupt handler for a PWM fault interrupt
-//! from the selected PWM module. This function will also disable the PWM
+//! This function removes the interrupt handler for a PWM fault interrupt
+//! from the selected PWM module. This function also disables the PWM
//! fault interrupt in the NVIC; the PWM fault interrupt must also be disabled
//! at the module level using PWMIntDisable().
//!
@@ -1197,12 +1197,13 @@ PWMFaultIntUnregister(unsigned long ulBase)
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator to have interrupts and triggers enabled.
-//! Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! This parameter must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or
+//! \b PWM_GEN_3.
//! \param ulIntTrig specifies the interrupts and triggers to be enabled.
//!
-//! Unmasks the specified interrupt(s) and trigger(s) by setting the
-//! specified bits of the interrupt/trigger enable register for the specified
-//! PWM generator. The \e ulIntTrig parameter is the logical OR of
+//! This function unmasks the specified interrupt(s) and trigger(s) by setting
+//! the specified bits of the interrupt/trigger enable register for the
+//! specified PWM generator. The \e ulIntTrig parameter is the logical OR of
//! \b PWM_INT_CNT_ZERO, \b PWM_INT_CNT_LOAD, \b PWM_INT_CNT_AU,
//! \b PWM_INT_CNT_AD, \b PWM_INT_CNT_BU, \b PWM_INT_CNT_BD,
//! \b PWM_TR_CNT_ZERO, \b PWM_TR_CNT_LOAD, \b PWM_TR_CNT_AU, \b PWM_TR_CNT_AD,
@@ -1238,12 +1239,13 @@ PWMGenIntTrigEnable(unsigned long ulBase, unsigned long ulGen,
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator to have interrupts and triggers disabled.
-//! Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! This parameter must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or
+//! \b PWM_GEN_3.
//! \param ulIntTrig specifies the interrupts and triggers to be disabled.
//!
-//! Masks the specified interrupt(s) and trigger(s) by clearing the
-//! specified bits of the interrupt/trigger enable register for the specified
-//! PWM generator. The \e ulIntTrig parameter is the logical OR of
+//! This function masks the specified interrupt(s) and trigger(s) by clearing
+//! the specified bits of the interrupt/trigger enable register for the
+//! specified PWM generator. The \e ulIntTrig parameter is the logical OR of
//! \b PWM_INT_CNT_ZERO, \b PWM_INT_CNT_LOAD, \b PWM_INT_CNT_AU,
//! \b PWM_INT_CNT_AD, \b PWM_INT_CNT_BU, \b PWM_INT_CNT_BD,
//! \b PWM_TR_CNT_ZERO, \b PWM_TR_CNT_LOAD, \b PWM_TR_CNT_AU, \b PWM_TR_CNT_AD,
@@ -1278,16 +1280,16 @@ PWMGenIntTrigDisable(unsigned long ulBase, unsigned long ulGen,
//! Gets interrupt status for the specified PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator to query. Must be one of \b PWM_GEN_0,
-//! \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator to query. This parameter must be one of
+//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param bMasked specifies whether masked or raw interrupt status is
//! returned.
//!
//! If \e bMasked is set as \b true, then the masked interrupt status is
//! returned; otherwise, the raw interrupt status is returned.
//!
-//! \return Returns the contents of the interrupt status register, or the
-//! contents of the raw interrupt status register, for the specified
+//! \return Returns the contents of the interrupt status register or the
+//! contents of the raw interrupt status register for the specified
//! PWM generator.
//
//*****************************************************************************
@@ -1324,17 +1326,17 @@ PWMGenIntStatus(unsigned long ulBase, unsigned long ulGen, tBoolean bMasked)
//! Clears the specified interrupt(s) for the specified PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator to query. Must be one of \b PWM_GEN_0,
-//! \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator to query. This parameter must be one of
+//! \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param ulInts specifies the interrupts to be cleared.
//!
-//! Clears the specified interrupt(s) by writing a 1 to the specified bits
-//! of the interrupt status register for the specified PWM generator. The
-//! \e ulInts parameter is the logical OR of \b PWM_INT_CNT_ZERO,
-//! \b PWM_INT_CNT_LOAD, \b PWM_INT_CNT_AU, \b PWM_INT_CNT_AD,
-//! \b PWM_INT_CNT_BU, or \b PWM_INT_CNT_BD.
+//! This funciton clears the specified interrupt(s) by writing a 1 to the
+//! specified bits of the interrupt status register for the specified PWM
+//! generator. The \e ulInts parameter is the logical OR of
+//! \b PWM_INT_CNT_ZERO, \b PWM_INT_CNT_LOAD, \b PWM_INT_CNT_AU,
+//! \b PWM_INT_CNT_AD, \b PWM_INT_CNT_BU, or \b PWM_INT_CNT_BD.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -1370,13 +1372,13 @@ PWMGenIntClear(unsigned long ulBase, unsigned long ulGen, unsigned long ulInts)
//! Enables generator and fault interrupts for a PWM module.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGenFault contains the interrupts to be enabled. Must be a logical
-//! OR of any of \b PWM_INT_GEN_0, \b PWM_INT_GEN_1, \b PWM_INT_GEN_2,
-//! \b PWM_INT_GEN_3, \b PWM_INT_FAULT0, \b PWM_INT_FAULT1, \b PWM_INT_FAULT2,
-//! or \b PWM_INT_FAULT3.
+//! \param ulGenFault contains the interrupts to be enabled. This parameter
+//! must be a logical OR of any of \b PWM_INT_GEN_0, \b PWM_INT_GEN_1,
+//! \b PWM_INT_GEN_2, \b PWM_INT_GEN_3, \b PWM_INT_FAULT0, \b PWM_INT_FAULT1,
+//! \b PWM_INT_FAULT2, or \b PWM_INT_FAULT3.
//!
-//! Unmasks the specified interrupt(s) by setting the specified bits of
-//! the interrupt enable register for the selected PWM module.
+//! This function unmasks the specified interrupt(s) by setting the specified
+//! bits of the interrupt enable register for the selected PWM module.
//!
//! \return None.
//
@@ -1393,7 +1395,7 @@ PWMIntEnable(unsigned long ulBase, unsigned long ulGenFault)
PWM_INT_FAULT2 | PWM_INT_FAULT3)) == 0);
//
- // Read the module's interrupt enable register, and enable interrupts
+ // Read the module's interrupt enable register and enable interrupts
// for the specified PWM generators.
//
HWREG(ulBase + PWM_O_INTEN) |= ulGenFault;
@@ -1404,13 +1406,13 @@ PWMIntEnable(unsigned long ulBase, unsigned long ulGenFault)
//! Disables generator and fault interrupts for a PWM module.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGenFault contains the interrupts to be disabled. Must be a
-//! logical OR of any of \b PWM_INT_GEN_0, \b PWM_INT_GEN_1, \b PWM_INT_GEN_2,
-//! \b PWM_INT_GEN_3, \b PWM_INT_FAULT0, \b PWM_INT_FAULT1, \b PWM_INT_FAULT2,
-//! or \b PWM_INT_FAULT3.
+//! \param ulGenFault contains the interrupts to be disabled. This parameter
+//! must be a logical OR of any of \b PWM_INT_GEN_0, \b PWM_INT_GEN_1,
+//! \b PWM_INT_GEN_2, \b PWM_INT_GEN_3, \b PWM_INT_FAULT0, \b PWM_INT_FAULT1,
+//! \b PWM_INT_FAULT2, or \b PWM_INT_FAULT3.
//!
-//! Masks the specified interrupt(s) by clearing the specified bits of
-//! the interrupt enable register for the selected PWM module.
+//! This function masks the specified interrupt(s) by clearing the specified
+//! bits of the interrupt enable register for the selected PWM module.
//!
//! \return None.
//
@@ -1427,7 +1429,7 @@ PWMIntDisable(unsigned long ulBase, unsigned long ulGenFault)
PWM_INT_FAULT2 | PWM_INT_FAULT3)) == 0);
//
- // Read the module's interrupt enable register, and disable interrupts
+ // Read the module's interrupt enable register and disable interrupts
// for the specified PWM generators.
//
HWREG(ulBase + PWM_O_INTEN) &= ~(ulGenFault);
@@ -1439,15 +1441,15 @@ PWMIntDisable(unsigned long ulBase, unsigned long ulGenFault)
//!
//! \param ulBase is the base address of the PWM module.
//!
-//! Clears the fault interrupt by writing to the appropriate bit of the
-//! interrupt status register for the selected PWM module.
+//! This function clears the fault interrupt by writing to the appropriate bit
+//! of the interrupt status register for the selected PWM module.
//!
//! This function clears only the FAULT0 interrupt and is retained for
//! backwards compatibility. It is recommended that PWMFaultIntClearExt() be
-//! used instead since it supports all fault interrupts supported on devices
+//! used instead because it supports all fault interrupts supported on devices
//! with and without extended PWM fault handling support.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -1518,10 +1520,10 @@ PWMIntStatus(unsigned long ulBase, tBoolean bMasked)
//! \param ulBase is the base address of the PWM module.
//! \param ulFaultInts specifies the fault interrupts to clear.
//!
-//! Clears one or more fault interrupts by writing to the appropriate bit of
-//! the PWM interrupt status register. The parameter \e ulFaultInts must be
-//! the logical OR of any of \b PWM_INT_FAULT0, \b PWM_INT_FAULT1,
-//! \b PWM_INT_FAULT2, or \b PWM_INT_FAULT3.
+//! This function clears one or more fault interrupts by writing to the
+//! appropriate bit of the PWM interrupt status register. The parameter
+//! \e ulFaultInts must be the logical OR of any of \b PWM_INT_FAULT0,
+//! \b PWM_INT_FAULT1, \b PWM_INT_FAULT2, or \b PWM_INT_FAULT3.
//!
//! When running on a device supporting extended PWM fault handling, the fault
//! interrupts are derived by performing a logical OR of each of the configured
@@ -1531,7 +1533,7 @@ PWMIntStatus(unsigned long ulBase, tBoolean bMasked)
//! generators. On a device without extended PWM fault handling, the interrupt
//! is directly related to the state of the single FAULT pin.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -1565,17 +1567,18 @@ PWMFaultIntClearExt(unsigned long ulBase, unsigned long ulFaultInts)
//! PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator whose fault configuration is being set.
-//! Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator for which fault configuration is being
+//! set. This function must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2,
+//! or \b PWM_GEN_3.
//! \param ulMinFaultPeriod is the minimum fault active period expressed in
//! PWM clock cycles.
//! \param ulFaultSenses indicates which sense of each FAULT input should be
//! considered the ``asserted'' state. Valid values are logical OR
//! combinations of \b PWM_FAULTn_SENSE_HIGH and \b PWM_FAULTn_SENSE_LOW.
//!
-//! This function sets the minimum fault period for a given generator along
-//! with the sense of each of the 4 possible fault inputs. The minimum fault
-//! period is expressed in PWM clock cycles and takes effect only if
+//! This function configures the minimum fault period for a given generator
+//! along with the sense of each of the 4 possible fault inputs. The minimum
+//! fault period is expressed in PWM clock cycles and takes effect only if
//! PWMGenConfigure() is called with flag \b PWM_GEN_MODE_FAULT_PER set in the
//! \e ulConfig parameter. When a fault input is asserted, the minimum fault
//! period timer ensures that it remains asserted for at least the number of
@@ -1620,10 +1623,12 @@ PWMGenFaultConfigure(unsigned long ulBase, unsigned long ulGen,
//! Configures the set of fault triggers for a given PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator whose fault triggers are being set. Must
-//! be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator for which fault triggers are being set.
+//! This parameter must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or
+//! \b PWM_GEN_3.
//! \param ulGroup indicates the subset of possible faults that are to be
-//! configured. This must be \b PWM_FAULT_GROUP_0 or \b PWM_FAULT_GROUP_1.
+//! configured. This parameter must be \b PWM_FAULT_GROUP_0 or
+//! \b PWM_FAULT_GROUP_1.
//! \param ulFaultTriggers defines the set of inputs that are to contribute
//! towards generation of the fault signal to the given PWM generator. For
//! \b PWM_FAULT_GROUP_0, this is the logical OR of \b PWM_FAULT_FAULT0,
@@ -1641,9 +1646,9 @@ PWMGenFaultConfigure(unsigned long ulBase, unsigned long ulGen,
//! must be called to configure the fault triggers.
//!
//! The fault signal to the PWM generator is generated by ORing together each
-//! of the signals whose inputs are specified in the \e ulFaultTriggers
-//! parameter after having adjusted the sense of each FAULTn input based on the
-//! configuration previously set using a call to PWMGenFaultConfigure().
+//! of the signals specified in the \e ulFaultTriggers parameter after having
+//! adjusted the sense of each FAULTn input based on the configuration
+//! previously set using a call to PWMGenFaultConfigure().
//!
//! \note This function is only available on devices supporting extended PWM
//! fault handling.
@@ -1691,15 +1696,15 @@ PWMGenFaultTriggerSet(unsigned long ulBase, unsigned long ulGen,
//! generator.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator whose fault triggers are being queried.
-//! Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
+//! \param ulGen is the PWM generator for which fault triggers are being
+//! queried. This parameter must be one of \b PWM_GEN_0, \b PWM_GEN_1,
+//! \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param ulGroup indicates the subset of faults that are being queried. This
-//! must be \b PWM_FAULT_GROUP_0 or \b PWM_FAULT_GROUP_1.
+//! parameter must be \b PWM_FAULT_GROUP_0 or \b PWM_FAULT_GROUP_1.
//!
//! This function allows an application to query the current set of inputs that
-//! contribute towards the generation of a fault condition to a given PWM
-//! generator.
-//!
+//! contribute to the generation of a fault condition to a given PWM generator.
+//!
//! \note This function is only available on devices supporting extended PWM
//! fault handling.
//!
@@ -1741,17 +1746,17 @@ PWMGenFaultTriggerGet(unsigned long ulBase, unsigned long ulGen,
//! Returns the current state of the fault triggers for a given PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator whose fault trigger states are being
-//! queried. Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or
-//! \b PWM_GEN_3.
+//! \param ulGen is the PWM generator for which fault trigger states are being
+//! queried. This parameter must be one of \b PWM_GEN_0, \b PWM_GEN_1,
+//! \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param ulGroup indicates the subset of faults that are being queried. This
-//! must be \b PWM_FAULT_GROUP_0 or \b PWM_FAULT_GROUP_1.
+//! parameter must be \b PWM_FAULT_GROUP_0 or \b PWM_FAULT_GROUP_1.
//!
//! This function allows an application to query the current state of each of
//! the fault trigger inputs to a given PWM generator. The current state of
//! each fault trigger input is returned unless PWMGenConfigure() has
//! previously been called with flag \b PWM_GEN_MODE_LATCH_FAULT in the
-//! \e ulConfig parameter in which case the returned status is the latched
+//! \e ulConfig parameter, in which case the returned status is the latched
//! fault trigger status.
//!
//! If latched faults are configured, the application must call
@@ -1799,17 +1804,18 @@ PWMGenFaultStatus(unsigned long ulBase, unsigned long ulGen,
//! Clears one or more latched fault triggers for a given PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
-//! \param ulGen is the PWM generator whose fault trigger states are being
-//! queried. Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or
-//! \b PWM_GEN_3.
+//! \param ulGen is the PWM generator for which fault trigger states are being
+//! queried. This parameter must be one of \b PWM_GEN_0, \b PWM_GEN_1,
+//! \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param ulGroup indicates the subset of faults that are being queried. This
-//! must be \b PWM_FAULT_GROUP_0 or \b PWM_FAULT_GROUP_1.
+//! parameter must be \b PWM_FAULT_GROUP_0 or \b PWM_FAULT_GROUP_1.
//! \param ulFaultTriggers is the set of fault triggers which are to be
//! cleared.
//!
//! This function allows an application to clear the fault triggers for a given
-//! PWM generator. This is only required if PWMGenConfigure() has previously
-//! been called with flag \b PWM_GEN_MODE_LATCH_FAULT in parameter \e ulConfig.
+//! PWM generator. This function is only required if PWMGenConfigure() has
+//! previously been called with flag \b PWM_GEN_MODE_LATCH_FAULT in parameter
+//! \e ulConfig.
//!
//! \note This function is only available on devices supporting extended PWM
//! fault handling.
diff --git a/bsp/lm4f232/Libraries/driverlib/pwm.h b/bsp/lm4f232/Libraries/driverlib/pwm.h
index e45af7d377..520adbc072 100644
--- a/bsp/lm4f232/Libraries/driverlib/pwm.h
+++ b/bsp/lm4f232/Libraries/driverlib/pwm.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/qei.c b/bsp/lm4f232/Libraries/driverlib/qei.c
index a24780f576..4c701a88a9 100644
--- a/bsp/lm4f232/Libraries/driverlib/qei.c
+++ b/bsp/lm4f232/Libraries/driverlib/qei.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -43,8 +43,8 @@
//!
//! \param ulBase is the base address of the quadrature encoder module.
//!
-//! This will enable operation of the quadrature encoder module. It must be
-//! configured before it is enabled.
+//! This function enables operation of the quadrature encoder module. The
+//! module must be configured before it is enabled.
//!
//! \sa QEIConfigure()
//!
@@ -71,7 +71,7 @@ QEIEnable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the quadrature encoder module.
//!
-//! This will disable operation of the quadrature encoder module.
+//! This function disables operation of the quadrature encoder module.
//!
//! \return None.
//
@@ -99,22 +99,22 @@ QEIDisable(unsigned long ulBase)
//! for a description of this parameter.
//! \param ulMaxPosition specifies the maximum position value.
//!
-//! This will configure the operation of the quadrature encoder. The
+//! This function configures the operation of the quadrature encoder. The
//! \e ulConfig parameter provides the configuration of the encoder and is the
//! logical OR of several values:
//!
-//! - \b QEI_CONFIG_CAPTURE_A or \b QEI_CONFIG_CAPTURE_A_B to specify if edges
+//! - \b QEI_CONFIG_CAPTURE_A or \b QEI_CONFIG_CAPTURE_A_B specify if edges
//! on channel A or on both channels A and B should be counted by the
//! position integrator and velocity accumulator.
-//! - \b QEI_CONFIG_NO_RESET or \b QEI_CONFIG_RESET_IDX to specify if the
+//! - \b QEI_CONFIG_NO_RESET or \b QEI_CONFIG_RESET_IDX specify if the
//! position integrator should be reset when the index pulse is detected.
-//! - \b QEI_CONFIG_QUADRATURE or \b QEI_CONFIG_CLOCK_DIR to specify if
+//! - \b QEI_CONFIG_QUADRATURE or \b QEI_CONFIG_CLOCK_DIR specify if
//! quadrature signals are being provided on ChA and ChB, or if a direction
//! signal and a clock are being provided instead.
//! - \b QEI_CONFIG_NO_SWAP or \b QEI_CONFIG_SWAP to specify if the signals
//! provided on ChA and ChB should be swapped before being processed.
//!
-//! \e ulMaxPosition is the maximum value of the position integrator, and is
+//! \e ulMaxPosition is the maximum value of the position integrator and is
//! the value used to reset the position capture when in index reset mode and
//! moving in the reverse (negative) direction.
//!
@@ -150,11 +150,11 @@ QEIConfigure(unsigned long ulBase, unsigned long ulConfig,
//!
//! \param ulBase is the base address of the quadrature encoder module.
//!
-//! This returns the current position of the encoder. Depending upon the
-//! configuration of the encoder, and the incident of an index pulse, this
+//! This function returns the current position of the encoder. Depending upon
+//! the configuration of the encoder, and the incident of an index pulse, this
//! value may or may not contain the expected data (that is, if in reset on
//! index mode, if an index pulse has not been encountered, the position
-//! counter will not be aligned with the index pulse yet).
+//! counter is not yet aligned with the index pulse).
//!
//! \return The current position of the encoder.
//
@@ -180,8 +180,8 @@ QEIPositionGet(unsigned long ulBase)
//! \param ulBase is the base address of the quadrature encoder module.
//! \param ulPosition is the new position for the encoder.
//!
-//! This sets the current position of the encoder; the encoder position will
-//! then be measured relative to this value.
+//! This function sets the current position of the encoder; the encoder
+//! position is then measured relative to this value.
//!
//! \return None.
//
@@ -206,9 +206,10 @@ QEIPositionSet(unsigned long ulBase, unsigned long ulPosition)
//!
//! \param ulBase is the base address of the quadrature encoder module.
//!
-//! This returns the current direction of rotation. In this case, current
-//! means the most recently detected direction of the encoder; it may not be
-//! presently moving but this is the direction it last moved before it stopped.
+//! This function returns the current direction of rotation. In this case,
+//! current means the most recently detected direction of the encoder; it may
+//! not be presently moving but this is the direction it last moved before it
+//! stopped.
//!
//! \return Returns 1 if moving in the forward direction or -1 if moving in the
//! reverse direction.
@@ -234,9 +235,9 @@ QEIDirectionGet(unsigned long ulBase)
//!
//! \param ulBase is the base address of the quadrature encoder module.
//!
-//! This returns the error indicator for the quadrature encoder. It is an
-//! error for both of the signals of the quadrature input to change at the same
-//! time.
+//! This function returns the error indicator for the quadrature encoder. It
+//! is an error for both of the signals of the quadrature input to change at
+//! the same time.
//!
//! \return Returns \b true if an error has occurred and \b false otherwise.
//
@@ -261,9 +262,9 @@ QEIErrorGet(unsigned long ulBase)
//!
//! \param ulBase is the base address of the quadrature encoder module.
//!
-//! This will enable operation of the velocity capture in the quadrature
-//! encoder module. It must be configured before it is enabled. Velocity
-//! capture will not occur if the quadrature encoder is not enabled.
+//! This function enables operation of the velocity capture in the quadrature
+//! encoder module. The module must be configured before velocity capture is
+//! enabled.
//!
//! \sa QEIVelocityConfigure() and QEIEnable()
//!
@@ -290,7 +291,7 @@ QEIVelocityEnable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the quadrature encoder module.
//!
-//! This will disable operation of the velocity capture in the quadrature
+//! This function disables operation of the velocity capture in the quadrature
//! encoder module.
//!
//! \return None.
@@ -322,8 +323,8 @@ QEIVelocityDisable(unsigned long ulBase)
//! \param ulPeriod specifies the number of clock ticks over which to measure
//! the velocity; must be non-zero.
//!
-//! This will configure the operation of the velocity capture portion of the
-//! quadrature encoder. The position increment signal is predivided as
+//! This function configures the operation of the velocity capture portion of
+//! the quadrature encoder. The position increment signal is predivided as
//! specified by \e ulPreDiv before being accumulated by the velocity capture.
//! The divided signal is accumulated over \e ulPeriod system clock before
//! being saved and resetting the accumulator.
@@ -360,10 +361,10 @@ QEIVelocityConfigure(unsigned long ulBase, unsigned long ulPreDiv,
//!
//! \param ulBase is the base address of the quadrature encoder module.
//!
-//! This returns the current speed of the encoder. The value returned is the
-//! number of pulses detected in the specified time period; this number can be
-//! multiplied by the number of time periods per second and divided by the
-//! number of pulses per revolution to obtain the number of revolutions per
+//! This function returns the current speed of the encoder. The value returned
+//! is the number of pulses detected in the specified time period; this number
+//! can be multiplied by the number of time periods per second and divided by
+//! the number of pulses per revolution to obtain the number of revolutions per
//! second.
//!
//! \return Returns the number of pulses captured in the given time period.
@@ -391,11 +392,11 @@ QEIVelocityGet(unsigned long ulBase)
//! \param pfnHandler is a pointer to the function to be called when the
//! quadrature encoder interrupt occurs.
//!
-//! This sets the handler to be called when a quadrature encoder interrupt
-//! occurs. This will enable the global interrupt in the interrupt controller;
-//! specific quadrature encoder interrupts must be enabled via QEIIntEnable().
-//! It is the interrupt handler's responsibility to clear the interrupt source
-//! via QEIIntClear().
+//! This function registers the handler to be called when a quadrature encoder
+//! interrupt occurs. This function enables the global interrupt in the
+//! interrupt controller; specific quadrature encoder interrupts must be
+//! enabled via QEIIntEnable(). It is the interrupt handler's responsibility to
+//! clear the interrupt source via QEIIntClear().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -435,9 +436,9 @@ QEIIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
//!
//! \param ulBase is the base address of the quadrature encoder module.
//!
-//! This function will clear the handler to be called when a quadrature encoder
-//! interrupt occurs. This will also mask off the interrupt in the interrupt
-//! controller so that the interrupt handler no longer is called.
+//! This function unregisters the handler to be called when a quadrature
+//! encoder interrupt occurs. This function also masks off the interrupt in
+//! the interrupt controller so that the interrupt handler no longer is called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -480,9 +481,9 @@ QEIIntUnregister(unsigned long ulBase)
//! Can be any of the \b QEI_INTERROR, \b QEI_INTDIR, \b QEI_INTTIMER, or
//! \b QEI_INTINDEX values.
//!
-//! Enables the indicated quadrature encoder interrupt sources. Only the
-//! sources that are enabled can be reflected to the processor interrupt;
-//! disabled sources have no effect on the processor.
+//! This function enables the indicated quadrature encoder interrupt sources.
+//! Only the sources that are enabled can be reflected to the processor
+//! interrupt; disabled sources have no effect on the processor.
//!
//! \return None.
//
@@ -507,12 +508,12 @@ QEIIntEnable(unsigned long ulBase, unsigned long ulIntFlags)
//!
//! \param ulBase is the base address of the quadrature encoder module.
//! \param ulIntFlags is a bit mask of the interrupt sources to be disabled.
-//! Can be any of the \b QEI_INTERROR, \b QEI_INTDIR, \b QEI_INTTIMER, or
-//! \b QEI_INTINDEX values.
+//! This parameter can be any of the \b QEI_INTERROR, \b QEI_INTDIR,
+//! \b QEI_INTTIMER, or \b QEI_INTINDEX values.
//!
-//! Disables the indicated quadrature encoder interrupt sources. Only the
-//! sources that are enabled can be reflected to the processor interrupt;
-//! disabled sources have no effect on the processor.
+//! This function disables the indicated quadrature encoder interrupt sources.
+//! Only the sources that are enabled can be reflected to the processor
+//! interrupt; disabled sources have no effect on the processor.
//!
//! \return None.
//
@@ -539,9 +540,9 @@ QEIIntDisable(unsigned long ulBase, unsigned long ulIntFlags)
//! \param bMasked is false if the raw interrupt status is required and true if
//! the masked interrupt status is required.
//!
-//! This returns the interrupt status for the quadrature encoder module.
-//! Either the raw interrupt status or the status of interrupts that are
-//! allowed to reflect to the processor can be returned.
+//! This function returns the interrupt status for the quadrature encoder
+//! module. Either the raw interrupt status or the status of interrupts that
+//! are allowed to reflect to the processor can be returned.
//!
//! \return Returns the current interrupt status, enumerated as a bit field of
//! \b QEI_INTERROR, \b QEI_INTDIR, \b QEI_INTTIMER, and \b QEI_INTINDEX.
@@ -575,14 +576,15 @@ QEIIntStatus(unsigned long ulBase, tBoolean bMasked)
//!
//! \param ulBase is the base address of the quadrature encoder module.
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
-//! Can be any of the \b QEI_INTERROR, \b QEI_INTDIR, \b QEI_INTTIMER, or
-//! \b QEI_INTINDEX values.
+//! This parameter can be any of the \b QEI_INTERROR, \b QEI_INTDIR,
+//! \b QEI_INTTIMER, or \b QEI_INTINDEX values.
//!
//! The specified quadrature encoder interrupt sources are cleared, so that
-//! they no longer assert. This must be done in the interrupt handler to keep
-//! it from being called again immediately upon exit.
+//! they no longer assert. This function must be called in the interrupt
+//! handler to keep the interrupt from being triggered again immediately upon
+//! exit.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
diff --git a/bsp/lm4f232/Libraries/driverlib/qei.h b/bsp/lm4f232/Libraries/driverlib/qei.h
index 78a6c02d67..30c0858a51 100644
--- a/bsp/lm4f232/Libraries/driverlib/qei.h
+++ b/bsp/lm4f232/Libraries/driverlib/qei.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/readme.txt b/bsp/lm4f232/Libraries/driverlib/readme.txt
index ac63debee5..7c6f97ea54 100644
--- a/bsp/lm4f232/Libraries/driverlib/readme.txt
+++ b/bsp/lm4f232/Libraries/driverlib/readme.txt
@@ -18,4 +18,4 @@ A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, FOR ANY REASON WHATSOEVER.
-This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+This is part of revision 8264 of the Stellaris Peripheral Driver Library.
diff --git a/bsp/lm4f232/Libraries/driverlib/rom.h b/bsp/lm4f232/Libraries/driverlib/rom.h
index d5ba474130..0f1a029eef 100644
--- a/bsp/lm4f232/Libraries/driverlib/rom.h
+++ b/bsp/lm4f232/Libraries/driverlib/rom.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/rom_map.h b/bsp/lm4f232/Libraries/driverlib/rom_map.h
index 8d729a681e..f2c88ec67f 100644
--- a/bsp/lm4f232/Libraries/driverlib/rom_map.h
+++ b/bsp/lm4f232/Libraries/driverlib/rom_map.h
@@ -19,7 +19,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/ssi.c b/bsp/lm4f232/Libraries/driverlib/ssi.c
index ec650b5e88..d46b29b474 100644
--- a/bsp/lm4f232/Libraries/driverlib/ssi.c
+++ b/bsp/lm4f232/Libraries/driverlib/ssi.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -53,7 +53,7 @@ static const unsigned long g_ppulSSIIntMap[][2] =
//*****************************************************************************
//
//! \internal
-//! Checks a SSI base address.
+//! Checks an SSI base address.
//!
//! \param ulBase specifies the SSI module base address.
//!
@@ -81,7 +81,7 @@ SSIBaseValid(unsigned long ulBase)
//!
//! Given a SSI base address, returns the corresponding interrupt number.
//!
-//! \return Returns a SSI interrupt number, or -1 if \e ulBase is invalid.
+//! \return Returns an SSI interrupt number, or -1 if \e ulBase is invalid.
//
//*****************************************************************************
static long
@@ -132,7 +132,7 @@ SSIIntNumberGet(unsigned long ulBase)
//! \e ulProtocol parameter can be one of the following values:
//! \b SSI_FRF_MOTO_MODE_0, \b SSI_FRF_MOTO_MODE_1, \b SSI_FRF_MOTO_MODE_2,
//! \b SSI_FRF_MOTO_MODE_3, \b SSI_FRF_TI, or \b SSI_FRF_NMW. The Motorola
-//! frame formats imply the following polarity and phase configurations:
+//! frame formats encode the following polarity and phase configurations:
//!
//!
//! Polarity Phase Mode
@@ -143,23 +143,24 @@ SSIIntNumberGet(unsigned long ulBase)
//!
//!
//! The \e ulMode parameter defines the operating mode of the SSI module. The
-//! SSI module can operate as a master or slave; if a slave, the SSI can be
-//! configured to disable output on its serial output line. The \e ulMode
+//! SSI module can operate as a master or slave; if it is a slave, the SSI can
+//! be configured to disable output on its serial output line. The \e ulMode
//! parameter can be one of the following values: \b SSI_MODE_MASTER,
//! \b SSI_MODE_SLAVE, or \b SSI_MODE_SLAVE_OD.
//!
//! The \e ulBitRate parameter defines the bit rate for the SSI. This bit rate
//! must satisfy the following clock ratio criteria:
//!
-//! - FSSI >= 2 * bit rate (master mode)
-//! - FSSI >= 12 * bit rate (slave modes)
+//! - FSSI >= 2 * bit rate (master mode); this speed cannot exceed 25 MHz.
+//! - FSSI >= 12 * bit rate or 6 * bit rate (slave modes), depending on the
+//! capability of the specific microcontroller
//!
//! where FSSI is the frequency of the clock supplied to the SSI module.
//!
-//! The \e ulDataWidth parameter defines the width of the data transfers, and
+//! The \e ulDataWidth parameter defines the width of the data transfers and
//! can be a value between 4 and 16, inclusive.
//!
-//! The peripheral clock is the same as the processor clock. This is the value
+//! The peripheral clock is the same as the processor clock. This value is
//! returned by SysCtlClockGet(), or it can be explicitly hard coded if it is
//! constant and known (to save the code/execution overhead of a call to
//! SysCtlClockGet()).
@@ -288,11 +289,11 @@ SSIDisable(unsigned long ulBase)
//! \param pfnHandler is a pointer to the function to be called when the
//! synchronous serial interface interrupt occurs.
//!
-//! This sets the handler to be called when an SSI interrupt
-//! occurs. This will enable the global interrupt in the interrupt controller;
-//! specific SSI interrupts must be enabled via SSIIntEnable(). If necessary,
-//! it is the interrupt handler's responsibility to clear the interrupt source
-//! via SSIIntClear().
+//! This function registers the handler to be called when an SSI interrupt
+//! occurs. This function enables the global interrupt in the interrupt
+//! controller; specific SSI interrupts must be enabled via SSIIntEnable(). If
+//! necessary, it is the interrupt handler's responsibility to clear the
+//! interrupt source via SSIIntClear().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -332,8 +333,8 @@ SSIIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
//!
//! \param ulBase specifies the SSI module base address.
//!
-//! This function will clear the handler to be called when a SSI
-//! interrupt occurs. This will also mask off the interrupt in the interrupt
+//! This function clears the handler to be called when an SSI interrupt
+//! occurs. This function also masks off the interrupt in the interrupt
//! controller so that the interrupt handler no longer is called.
//!
//! \sa IntRegister() for important information about registering interrupt
@@ -375,10 +376,11 @@ SSIIntUnregister(unsigned long ulBase)
//! \param ulBase specifies the SSI module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be enabled.
//!
-//! Enables the indicated SSI interrupt sources. Only the sources that are
-//! enabled can be reflected to the processor interrupt; disabled sources have
-//! no effect on the processor. The \e ulIntFlags parameter can be any of the
-//! \b SSI_TXFF, \b SSI_RXFF, \b SSI_RXTO, or \b SSI_RXOR values.
+//! This function enables the indicated SSI interrupt sources. Only the
+//! sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor. The \e ulIntFlags
+//! parameter can be any of the \b SSI_TXFF, \b SSI_RXFF, \b SSI_RXTO, or
+//! \b SSI_RXOR values.
//!
//! \return None.
//
@@ -404,9 +406,9 @@ SSIIntEnable(unsigned long ulBase, unsigned long ulIntFlags)
//! \param ulBase specifies the SSI module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be disabled.
//!
-//! Disables the indicated SSI interrupt sources. The \e ulIntFlags parameter
-//! can be any of the \b SSI_TXFF, \b SSI_RXFF, \b SSI_RXTO, or \b SSI_RXOR
-//! values.
+//! This function disables the indicated SSI interrupt sources. The
+//! \e ulIntFlags parameter can be any of the \b SSI_TXFF, \b SSI_RXFF,
+//! \b SSI_RXTO, or \b SSI_RXOR values.
//!
//! \return None.
//
@@ -470,13 +472,13 @@ SSIIntStatus(unsigned long ulBase, tBoolean bMasked)
//! \param ulBase specifies the SSI module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
//!
-//! The specified SSI interrupt sources are cleared so that they no longer
-//! assert. This function must be called in the interrupt handler to keep the
-//! interrupts from being recognized again immediately upon exit. The
+//! This function clears the specified SSI interrupt sources so that they no
+//! longer assert. This function must be called in the interrupt handler to
+//! keep the interrupts from being triggered again immediately upon exit. The
//! \e ulIntFlags parameter can consist of either or both the \b SSI_RXTO and
//! \b SSI_RXOR values.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -687,7 +689,7 @@ SSIDataGetNonBlocking(unsigned long ulBase, unsigned long *pulData)
//! \param ulBase is the base address of the SSI port.
//! \param ulDMAFlags is a bit mask of the DMA features to enable.
//!
-//! The specified SSI DMA features are enabled. The SSI can be
+//! This function enables the specified SSI DMA features. The SSI can be
//! configured to use DMA for transmit and/or receive data transfers.
//! The \e ulDMAFlags parameter is the logical OR of any of the following
//! values:
@@ -752,10 +754,10 @@ SSIDMADisable(unsigned long ulBase, unsigned long ulDMAFlags)
//!
//! \param ulBase is the base address of the SSI port.
//!
-//! Allows the caller to determine whether all transmitted bytes have cleared
-//! the transmitter hardware. If \b false is returned, then the transmit FIFO
-//! is empty and all bits of the last transmitted word have left the hardware
-//! shift register.
+//! This function allows the caller to determine whether all transmitted bytes
+//! have cleared the transmitter hardware. If \b false is returned, then the
+//! transmit FIFO is empty and all bits of the last transmitted word have left
+//! the hardware shift register.
//!
//! \return Returns \b true if the SSI is transmitting or \b false if all
//! transmissions are complete.
@@ -786,7 +788,7 @@ SSIBusy(unsigned long ulBase)
//! The possible clock source are the system clock (\b SSI_CLOCK_SYSTEM) or
//! the precision internal oscillator (\b SSI_CLOCK_PIOSC).
//!
-//! Changing the baud clock source will change the data rate generated by the
+//! Changing the baud clock source changes the data rate generated by the
//! SSI. Therefore, the data rate should be reconfigured after any change to
//! the SSI clock source.
//!
diff --git a/bsp/lm4f232/Libraries/driverlib/ssi.h b/bsp/lm4f232/Libraries/driverlib/ssi.h
index ac4f3aef3f..b0cfd1ec5b 100644
--- a/bsp/lm4f232/Libraries/driverlib/ssi.h
+++ b/bsp/lm4f232/Libraries/driverlib/ssi.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/sysctl.c b/bsp/lm4f232/Libraries/driverlib/sysctl.c
index 9da020b674..43755758e4 100644
--- a/bsp/lm4f232/Libraries/driverlib/sysctl.c
+++ b/bsp/lm4f232/Libraries/driverlib/sysctl.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -268,7 +268,7 @@ SysCtlPeripheralValid(unsigned long ulPeripheral)
//*****************************************************************************
//
// A map of old peripheral defines to new peripheral defines. Note that the
-// new peripheral defines will not work on old parts.
+// new peripheral defines will not work on parts that precede Blizzard class.
//
//*****************************************************************************
static const unsigned long g_ppulPeripheralMap[][2] =
@@ -389,10 +389,10 @@ SysCtlFlashSizeGet(void)
//!
//! \param ulPin is the pin in question.
//!
-//! Determines if a particular pin is present in the device. The PWM, analog
-//! comparators, ADC, and timers have a varying number of pins across members
-//! of the Stellaris family; this will determine which are present on this
-//! device.
+//! This function determines if a particular pin is present in the device. The
+//! PWM, analog comparators, ADC, and timers have a varying number of pins
+//! across members of the Stellaris family; this function determines which pins
+//! are present on this device.
//!
//! The \e ulPin argument must be only one of the following values:
//! \b SYSCTL_PIN_PWM0, \b SYSCTL_PIN_PWM1, \b SYSCTL_PIN_PWM2,
@@ -468,9 +468,9 @@ SysCtlPinPresent(unsigned long ulPin)
//!
//! \param ulPeripheral is the peripheral in question.
//!
-//! Determines if a particular peripheral is present in the device. Each
-//! member of the Stellaris family has a different peripheral set; this will
-//! determine which are present on this device.
+//! This function determines if a particular peripheral is present in the
+//! device. Each member of the Stellaris family has a different peripheral
+//! set; this function determines which peripherals are present on this device.
//!
//! The \e ulPeripheral parameter must be only one of the following values:
//! \b SYSCTL_PERIPH_ADC0, \b SYSCTL_PERIPH_ADC1, \b SYSCTL_PERIPH_CAN0,
@@ -526,7 +526,7 @@ SysCtlPeripheralPresent(unsigned long ulPeripheral)
else if(ulPeripheral == SYSCTL_PERIPH_USB0)
{
//
- // USB is a special case since the DC bit is missing for USB0.
+ // USB is a special case because the DC bit is missing for USB0.
//
if(HWREG(SYSCTL_DC6) & SYSCTL_DC6_USB0_M)
{
@@ -554,10 +554,10 @@ SysCtlPeripheralPresent(unsigned long ulPeripheral)
//!
//! \param ulPeripheral is the peripheral in question.
//!
-//! Determines if a particular peripheral is ready to be accessed. The
-//! peripheral may be in a non-ready state if it is not enabled, is being held
-//! in reset, or is in the process of becoming ready after be enabled or taken
-//! out of reset.
+//! This function determines if a particular peripheral is ready to be
+//! accessed. The peripheral may be in a non-ready state if it is not enabled,
+//! is being held in reset, or is in the process of becoming ready after being
+//! enabled or taken out of reset.
//!
//! The \e ulPeripheral paramter must be only one of the following values:
//! \b SYSCTL_PERIPH_ADC0, \b SYSCTL_PERIPH_ADC1, \b SYSCTL_PERIPH_CAN0,
@@ -586,7 +586,7 @@ SysCtlPeripheralPresent(unsigned long ulPeripheral)
//! \b SYSCTL_PERIPH_WTIMER4, or \b SYSCTL_PERIPH_WTIMER5.
//!
//! \note The ability to check for a peripheral being ready varies based on the
-//! Stellaris part in use. Please consult the datasheet for the part you are
+//! Stellaris part in use. Please consult the data sheet for the part you are
//! using to determine if this feature is available.
//!
//! \return Returns \b true if the specified peripheral is ready and \b false
@@ -620,8 +620,8 @@ SysCtlPeripheralReady(unsigned long ulPeripheral)
//!
//! \param ulPeripheral is the peripheral to be powered on.
//!
-//! This function turns on the power to a peripheral. It will continue to
-//! receive power even when its clock is not enabled.
+//! This function turns on the power to a peripheral. The peripheral continues
+//! to receive power even when its clock is not enabled.
//!
//! The \e ulPeripheral paramter must be only one of the following values:
//! \b SYSCTL_PERIPH_ADC0, \b SYSCTL_PERIPH_ADC1, \b SYSCTL_PERIPH_CAN0,
@@ -650,7 +650,7 @@ SysCtlPeripheralReady(unsigned long ulPeripheral)
//! \b SYSCTL_PERIPH_WTIMER4, or \b SYSCTL_PERIPH_WTIMER5.
//!
//! \note The ability to power off a peripheral varies based on the Stellaris
-//! part in use. Please consult the datasheet for the part you are using to
+//! part in use. Please consult the data sheet for the part you are using to
//! determine if this feature is available.
//!
//! \return None.
@@ -684,8 +684,8 @@ SysCtlPeripheralPowerOn(unsigned long ulPeripheral)
//! \param ulPeripheral is the peripheral to be powered off.
//!
//! This function allows the power to a peripheral to be turned off. The
-//! peripheral will continue to receive power when its clock is enabled, but
-//! the power will be removed when its clock is disabled.
+//! peripheral continues to receive power when its clock is enabled, but
+//! the power is removed when its clock is disabled.
//!
//! The \e ulPeripheral paramter must be only one of the following values:
//! \b SYSCTL_PERIPH_ADC0, \b SYSCTL_PERIPH_ADC1, \b SYSCTL_PERIPH_CAN0,
@@ -714,7 +714,7 @@ SysCtlPeripheralPowerOn(unsigned long ulPeripheral)
//! \b SYSCTL_PERIPH_WTIMER4, or \b SYSCTL_PERIPH_WTIMER5.
//!
//! \note The ability to power off a peripheral varies based on the Stellaris
-//! part in use. Please consult the datasheet for the part you are using to
+//! part in use. Please consult the data sheet for the part you are using to
//! determine if this feature is available.
//!
//! \return None.
@@ -793,7 +793,7 @@ SysCtlPeripheralReset(unsigned long ulPeripheral)
//
// See if the peripheral index is 15, indicating a peripheral that is
- // accessed via the SSYCTL_SRperiph registers.
+ // accessed via the SYSCTL_SRperiph registers.
//
if((ulPeripheral & 0xf0000000) == 0xf0000000)
{
@@ -845,7 +845,7 @@ SysCtlPeripheralReset(unsigned long ulPeripheral)
//!
//! \param ulPeripheral is the peripheral to enable.
//!
-//! Peripherals are enabled with this function. At power-up, all peripherals
+//! This function enables peripherals. At power-up, all peripherals
//! are disabled; they must be enabled in order to operate or respond to
//! register reads/writes.
//!
@@ -877,7 +877,7 @@ SysCtlPeripheralReset(unsigned long ulPeripheral)
//!
//! \note It takes five clock cycles after the write to enable a peripheral
//! before the the peripheral is actually enabled. During this time, attempts
-//! to access the peripheral will result in a bus fault. Care should be taken
+//! to access the peripheral result in a bus fault. Care should be taken
//! to ensure that the peripheral is not accessed during this brief time
//! period.
//!
@@ -920,8 +920,8 @@ SysCtlPeripheralEnable(unsigned long ulPeripheral)
//!
//! \param ulPeripheral is the peripheral to disable.
//!
-//! Peripherals are disabled with this function. Once disabled, they will not
-//! operate or respond to register reads/writes.
+//! This function disables peripherals are disabled with this function. Once
+//! disabled, they do not operate or respond to register reads/writes.
//!
//! The \e ulPeripheral parameter must be only one of the following values:
//! \b SYSCTL_PERIPH_ADC0, \b SYSCTL_PERIPH_ADC1, \b SYSCTL_PERIPH_CAN0,
@@ -989,9 +989,9 @@ SysCtlPeripheralDisable(unsigned long ulPeripheral)
//! \param ulPeripheral is the peripheral to enable in sleep mode.
//!
//! This function allows a peripheral to continue operating when the processor
-//! goes into sleep mode. Since the clocking configuration of the device does
-//! not change, any peripheral can safely continue operating while the
-//! processor is in sleep mode, and can therefore wake the processor from sleep
+//! goes into sleep mode. Because the clocking configuration of the device
+//! does not change, any peripheral can safely continue operating while the
+//! processor is in sleep mode and can therefore wake the processor from sleep
//! mode.
//!
//! Sleep mode clocking of peripherals must be enabled via
@@ -1066,7 +1066,7 @@ SysCtlPeripheralSleepEnable(unsigned long ulPeripheral)
//! This function causes a peripheral to stop operating when the processor goes
//! into sleep mode. Disabling peripherals while in sleep mode helps to lower
//! the current draw of the device. If enabled (via SysCtlPeripheralEnable()),
-//! the peripheral will automatically resume operation when the processor
+//! the peripheral automatically resumes operation when the processor
//! leaves sleep mode, maintaining its entire state from before sleep mode was
//! entered.
//!
@@ -1140,11 +1140,11 @@ SysCtlPeripheralSleepDisable(unsigned long ulPeripheral)
//! \param ulPeripheral is the peripheral to enable in deep-sleep mode.
//!
//! This function allows a peripheral to continue operating when the processor
-//! goes into deep-sleep mode. Since the clocking configuration of the device
-//! may change, not all peripherals can safely continue operating while the
-//! processor is in sleep mode. Those that must run at a particular frequency
-//! (such as a UART) will not work as expected if the clock changes. It is the
-//! responsibility of the caller to make sensible choices.
+//! goes into deep-sleep mode. Because the clocking configuration of the
+//! device may change, not all peripherals can safely continue operating while
+//! the processor is in sleep mode. Those that must run at a particular
+//! frequency (such as a UART) do not work as expected if the clock changes.
+//! It is the responsibility of the caller to make sensible choices.
//!
//! Deep-sleep mode clocking of peripherals must be enabled via
//! SysCtlPeripheralClockGating(); if disabled, the peripheral deep-sleep mode
@@ -1221,7 +1221,7 @@ SysCtlPeripheralDeepSleepEnable(unsigned long ulPeripheral)
//! to lower the current draw of the device, and can keep peripherals that
//! require a particular clock frequency from operating when the clock changes
//! as a result of entering deep-sleep mode. If enabled (via
-//! SysCtlPeripheralEnable()), the peripheral will automatically resume
+//! SysCtlPeripheralEnable()), the peripheral automatically resumes
//! operation when the processor leaves deep-sleep mode, maintaining its entire
//! state from before deep-sleep mode was entered.
//!
@@ -1298,10 +1298,10 @@ SysCtlPeripheralDeepSleepDisable(unsigned long ulPeripheral)
//!
//! This function controls how peripherals are clocked when the processor goes
//! into sleep or deep-sleep mode. By default, the peripherals are clocked the
-//! same as in run mode; if peripheral clock gating is enabled they are clocked
-//! according to the configuration set by SysCtlPeripheralSleepEnable(),
-//! SysCtlPeripheralSleepDisable(), SysCtlPeripheralDeepSleepEnable(), and
-//! SysCtlPeripheralDeepSleepDisable().
+//! same as in run mode; if peripheral clock gating is enabled, they are
+//! clocked according to the configuration set by
+//! SysCtlPeripheralSleepEnable(), SysCtlPeripheralSleepDisable(),
+//! SysCtlPeripheralDeepSleepEnable(), and SysCtlPeripheralDeepSleepDisable().
//!
//! \return None.
//
@@ -1329,20 +1329,24 @@ SysCtlPeripheralClockGating(tBoolean bEnable)
//! \param pfnHandler is a pointer to the function to be called when the system
//! control interrupt occurs.
//!
-//! This sets the handler to be called when a system control interrupt occurs.
-//! This will enable the global interrupt in the interrupt controller; specific
-//! system control interrupts must be enabled via SysCtlIntEnable(). It is the
-//! interrupt handler's responsibility to clear the interrupt source via
-//! SysCtlIntClear().
+//! This function registers the handler to be called when a system control
+//! interrupt occurs. This function enables the global interrupt in the
+//! interrupt controller; specific system control interrupts must be enabled
+//! via SysCtlIntEnable(). It is the interrupt handler's responsibility to
+//! clear the interrupt source via SysCtlIntClear().
//!
//! System control can generate interrupts when the PLL achieves lock, if the
//! internal LDO current limit is exceeded, if the internal oscillator fails,
//! if the main oscillator fails, if the internal LDO output voltage droops too
-//! much, if the external voltage droops too much, or if the PLL fails.
+//! much, if the external voltage droops too much, or if the PLL fails.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
//!
+//! \note The events that cause system control interrupts vary based on the
+//! Stellaris part in use. Please consult the data sheet for the part you are
+//! using to determine which interrupt sources are available.
+//!
//! \return None.
//
//*****************************************************************************
@@ -1364,9 +1368,9 @@ SysCtlIntRegister(void (*pfnHandler)(void))
//
//! Unregisters the interrupt handler for the system control interrupt.
//!
-//! This function will clear the handler to be called when a system control
-//! interrupt occurs. This will also mask off the interrupt in the interrupt
-//! controller so that the interrupt handler no longer is called.
+//! This function unregisters the handler to be called when a system control
+//! interrupt occurs. This function also masks off the interrupt in the
+//! interrupt controller so that the interrupt handler no longer is called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -1397,9 +1401,13 @@ SysCtlIntUnregister(void)
//! \b SYSCTL_INT_IOSC_FAIL, \b SYSCTL_INT_MOSC_FAIL, \b SYSCTL_INT_POR,
//! \b SYSCTL_INT_BOR, and/or \b SYSCTL_INT_PLL_FAIL.
//!
-//! Enables the indicated system control interrupt sources. Only the sources
-//! that are enabled can be reflected to the processor interrupt; disabled
-//! sources have no effect on the processor.
+//! This function enables the indicated system control interrupt sources. Only
+//! the sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
+//!
+//! \note The interrupt sources vary based on the Stellaris part in use.
+//! Please consult the data sheet for the part you are using to determine
+//! which interrupt sources are available.
//!
//! \return None.
//
@@ -1422,9 +1430,13 @@ SysCtlIntEnable(unsigned long ulInts)
//! \b SYSCTL_INT_IOSC_FAIL, \b SYSCTL_INT_MOSC_FAIL, \b SYSCTL_INT_POR,
//! \b SYSCTL_INT_BOR, and/or \b SYSCTL_INT_PLL_FAIL.
//!
-//! Disables the indicated system control interrupt sources. Only the sources
-//! that are enabled can be reflected to the processor interrupt; disabled
-//! sources have no effect on the processor.
+//! This function disables the indicated system control interrupt sources.
+//! Only the sources that are enabled can be reflected to the processor
+//! interrupt; disabled sources have no effect on the processor.
+//!
+//! \note The interrupt sources vary based on the Stellaris part in use.
+//! Please consult the data sheet for the part you are using to determine
+//! which interrupt sources are available.
//!
//! \return None.
//
@@ -1448,10 +1460,10 @@ SysCtlIntDisable(unsigned long ulInts)
//! \b SYSCTL_INT_BOR, and/or \b SYSCTL_INT_PLL_FAIL.
//!
//! The specified system control interrupt sources are cleared, so that they no
-//! longer assert. This must be done in the interrupt handler to keep it from
-//! being called again immediately upon exit.
+//! longer assert. This function must be called in the interrupt handler to
+//! keep it from being called again immediately upon exit.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -1460,6 +1472,10 @@ SysCtlIntDisable(unsigned long ulInts)
//! being immediately reentered (because the interrupt controller still sees
//! the interrupt source asserted).
//!
+//! \note The interrupt sources vary based on the Stellaris part in use.
+//! Please consult the data sheet for the part you are using to determine
+//! which interrupt sources are available.
+//!
//! \return None.
//
//*****************************************************************************
@@ -1479,14 +1495,18 @@ SysCtlIntClear(unsigned long ulInts)
//! \param bMasked is false if the raw interrupt status is required and true if
//! the masked interrupt status is required.
//!
-//! This returns the interrupt status for the system controller. Either the
-//! raw interrupt status or the status of interrupts that are allowed to
-//! reflect to the processor can be returned.
+//! This function returns the interrupt status for the system controller.
+//! Either the raw interrupt status or the status of interrupts that are
+//! allowed to reflect to the processor can be returned.
//!
//! \return The current interrupt status, enumerated as a bit field of
//! \b SYSCTL_INT_PLL_LOCK, \b SYSCTL_INT_CUR_LIMIT, \b SYSCTL_INT_IOSC_FAIL,
//! \b SYSCTL_INT_MOSC_FAIL, \b SYSCTL_INT_POR, \b SYSCTL_INT_BOR, and
//! \b SYSCTL_INT_PLL_FAIL.
+//!
+//! \note The interrupt sources vary based on the Stellaris part in use.
+//! Please consult the data sheet for the part you are using to determine
+//! which interrupt sources are available.
//
//*****************************************************************************
unsigned long
@@ -1606,10 +1626,10 @@ SysCtlLDOConfigSet(unsigned long ulConfig)
//
//! Resets the device.
//!
-//! This function will perform a software reset of the entire device. The
-//! processor and all peripherals are reset and all device registers will
-//! return to their default values (with the exception of the reset cause
-//! register, which will maintain its current value but have the software reset
+//! This function performs a software reset of the entire device. The
+//! processor and all peripherals are reset and all device registers are
+//! returned to their default values (with the exception of the reset cause
+//! register, which maintains its current value but has the software reset
//! bit set as well).
//!
//! \return This function does not return.
@@ -1619,8 +1639,8 @@ void
SysCtlReset(void)
{
//
- // Perform a software reset request. This will cause the device to reset,
- // no further code is executed.
+ // Perform a software reset request. This request causes the device to
+ // reset, no further code is executed.
//
HWREG(NVIC_APINT) = NVIC_APINT_VECTKEY | NVIC_APINT_SYSRESETREQ;
@@ -1637,7 +1657,7 @@ SysCtlReset(void)
//
//! Puts the processor into sleep mode.
//!
-//! This function places the processor into sleep mode; it will not return
+//! This function places the processor into sleep mode; it does not return
//! until the processor returns to run mode. The peripherals that are enabled
//! via SysCtlPeripheralSleepEnable() continue to operate and can wake up the
//! processor (if automatic clock gating is enabled with
@@ -1660,7 +1680,7 @@ SysCtlSleep(void)
//
//! Puts the processor into deep-sleep mode.
//!
-//! This function places the processor into deep-sleep mode; it will not return
+//! This function places the processor into deep-sleep mode; it does not return
//! until the processor returns to run mode. The peripherals that are enabled
//! via SysCtlPeripheralDeepSleepEnable() continue to operate and can wake up
//! the processor (if automatic clock gating is enabled with
@@ -1693,8 +1713,9 @@ SysCtlDeepSleep(void)
//
//! Gets the reason for a reset.
//!
-//! This function will return the reason(s) for a reset. Since the reset
-//! reasons are sticky until either cleared by software or an external reset,
+//! This function returns the reason(s) for a reset. Because the reset
+//! reasons are sticky until either cleared by software or an external reset
+//! (for Sandstorm-class devices) or a power-on reset (for all other classes),
//! multiple reset reasons may be returned if multiple resets have occurred.
//! The reset reason is a logical OR of \b SYSCTL_CAUSE_LDO,
//! \b SYSCTL_CAUSE_SW, \b SYSCTL_CAUSE_WDOG, \b SYSCTL_CAUSE_BOR,
@@ -1755,6 +1776,10 @@ SysCtlResetCauseClear(unsigned long ulCauses)
//! When it detects a brown-out condition, it can either reset the device or
//! generate a processor interrupt.
//!
+//! \note The availability of the resample feature is only available on
+//! Sandstorm-class devices. Please consult the datasheet for the part you
+//! are using to determine whether this feature is available.
+//!
//! \return None.
//
//*****************************************************************************
@@ -1848,11 +1873,9 @@ SysCtlDelay(unsigned long ulCount)
//! the OSC0/OSC1 pins, allowing power consumption to be reduced.
//!
//! \note The availability of MOSC control varies based on the Stellaris part
-//! in use. Please consult the datasheet for the part you are using to
-//! determine whether this support is available.
-//!
-//! \note The capability of MOSC control varies based on the Stellaris part in
-//! use.
+//! in use. Please consult the data sheet for the part you are using to
+//! determine whether this support is available. In addition, the capability
+//! of MOSC control varies based on the Stellaris part in use.
//!
//! \return None.
//
@@ -1877,9 +1900,9 @@ SysCtlMOSCConfigSet(unsigned long ulConfig)
//! \e ulType is one of:
//!
//! - \b SYSCTL_PIOSC_CAL_AUTO to perform automatic calibration using the
-//! 32 kHz clock from the hibernate module as a reference. This is only
-//! possible on parts that have a hibernate module and then only if it is
-//! enabled and the hibernate module's RTC is also enabled.
+//! 32-kHz clock from the hibernate module as a reference. This type is
+//! only possible on parts that have a hibernate module, and then only if
+//! it is enabled and the hibernate module's RTC is also enabled.
//!
//! - \b SYSCTL_PIOSC_CAL_FACT to reset the PIOSC calibration to the factory
//! provided calibration.
@@ -1887,8 +1910,8 @@ SysCtlMOSCConfigSet(unsigned long ulConfig)
//! - \b SYSCTL_PIOSC_CAL_USER to set the PIOSC calibration to a user-supplied
//! value. The value to be used is ORed into the lower 7-bits of this value,
//! with 0x40 being the ``nominal'' value (in other words, if everything were
-//! perfect, this would provide exactly 16 MHz). Values larger than 0x40
-//! will slow down PIOSC, and values smaller than 0x40 will speed up PIOSC.
+//! perfect, 0x40 provides exactly 16 MHz). Values larger than 0x40
+//! slow down PIOSC, and values smaller than 0x40 speed up PIOSC.
//!
//! \return None.
//
@@ -1954,7 +1977,9 @@ SysCtlPIOSCCalibrate(unsigned long ulType)
//! The system clock divider is chosen with one of the following values:
//! \b SYSCTL_SYSDIV_1, \b SYSCTL_SYSDIV_2, \b SYSCTL_SYSDIV_3, ...
//! \b SYSCTL_SYSDIV_64. Only \b SYSCTL_SYSDIV_1 through \b SYSCTL_SYSDIV_16
-//! are valid on Sandstorm-class devices.
+//! are valid on Sandstorm-class devices. Half-dividers, such as
+//! \b SYSCTL_SYSDIV_2_5 and \b SYSCTL_SYSDIV_3_5. are available on Tempest-,
+//! Firestorm-, and Blizzard-class devices.
//!
//! The use of the PLL is chosen with either \b SYSCTL_USE_PLL or
//! \b SYSCTL_USE_OSC.
@@ -1967,10 +1992,16 @@ SysCtlPIOSCCalibrate(unsigned long ulType)
//! \b SYSCTL_XTAL_6_14MHZ, \b SYSCTL_XTAL_7_37MHZ, \b SYSCTL_XTAL_8MHZ,
//! \b SYSCTL_XTAL_8_19MHZ, \b SYSCTL_XTAL_10MHZ, \b SYSCTL_XTAL_12MHZ,
//! \b SYSCTL_XTAL_12_2MHZ, \b SYSCTL_XTAL_13_5MHZ, \b SYSCTL_XTAL_14_3MHZ,
-//! \b SYSCTL_XTAL_16MHZ, or \b SYSCTL_XTAL_16_3MHZ. Values below
-//! \b SYSCTL_XTAL_3_57MHZ are not valid when the PLL is in operation. On
-//! Sandstorm- and Fury-class devices, values above \b SYSCTL_XTAL_8_19MHZ are
-//! not valid.
+//! \b SYSCTL_XTAL_16MHZ, \b SYSCTL_XTAL_16_3MHZ, \b SYSCTL_XTAL_18MHZ,
+//! \b SYSCTL_XTAL_20MHZ, \b SYSCTL_XTAL_24MHZ, or \b SYSCTL_XTAL_25MHz.
+//! Values below \b SYSCTL_XTAL_3_57MHZ are not valid when the PLL is in
+//! operation on Sandstorm-, Fury-, Dustdevil-, Tempest-, and Firestorm-class.
+//! devices. Values below \b SYSCTL_XTAL_5MHZ are not valid when the PLL is in
+//! operation on Blizzard-class devices. Values below \b SYSCTL_XTAL_4MHZ
+//! are never valid on Blizzard-class devices. On Sandstorm- and Fury-class
+//! devices, values above \b SYSCTL_XTAL_8_19MHZ are not valid. On Dustdevil-,
+//! Tempest-, and Firestorm-class devices, values above \b SYSCTL_XTAL_16_3MHZ
+//! are not valid.
//!
//! The oscillator source is chosen with one of the following values:
//! \b SYSCTL_OSC_MAIN, \b SYSCTL_OSC_INT, \b SYSCTL_OSC_INT4,
@@ -1993,10 +2024,10 @@ SysCtlPIOSCCalibrate(unsigned long ulType)
//! crystal with one of the \b SYSCTL_XTAL_xxx values.
//!
//! \note If selecting the PLL as the system clock source (that is, via
-//! \b SYSCTL_USE_PLL), this function will poll the PLL lock interrupt to
+//! \b SYSCTL_USE_PLL), this function polls the PLL lock interrupt to
//! determine when the PLL has locked. If an interrupt handler for the
//! system control interrupt is in place, and it responds to and clears the
-//! PLL lock interrupt, this function will delay until its timeout has occurred
+//! PLL lock interrupt, this function delays until its timeout has occurred
//! instead of completing as soon as PLL lock is achieved.
//!
//! \return None.
@@ -2014,7 +2045,7 @@ SysCtlClockSet(unsigned long ulConfig)
if(CLASS_IS_SANDSTORM && (ulConfig & SYSCTL_RCC2_USERCC2))
{
//
- // Return without changing the clocking since the requested
+ // Return without changing the clocking because the requested
// configuration can not be achieved.
//
return;
@@ -2022,8 +2053,8 @@ SysCtlClockSet(unsigned long ulConfig)
//
// Get the current value of the RCC and RCC2 registers. If using a
- // Sandstorm-class device, the RCC2 register will read back as zero and the
- // writes to it from within this function is ignored.
+ // Sandstorm-class device, the RCC2 register reads back as zero and the
+ // writes to it from within this function are ignored.
//
ulRCC = HWREG(SYSCTL_RCC);
ulRCC2 = HWREG(SYSCTL_RCC2);
@@ -2086,7 +2117,7 @@ SysCtlClockSet(unsigned long ulConfig)
}
//
- // Set the new crystal value and oscillator source. Since the OSCSRC2
+ // Set the new crystal value and oscillator source. Because the OSCSRC2
// field in RCC2 overlaps the XTAL field in RCC, the OSCSRC field has a
// special encoding within ulConfig to avoid the overlap.
//
@@ -2137,7 +2168,7 @@ SysCtlClockSet(unsigned long ulConfig)
//
// Set the requested system divider and disable the appropriate
- // oscillators. This will not get written immediately.
+ // oscillators. This value is not written immediately.
//
ulRCC &= ~(SYSCTL_RCC_SYSDIV_M | SYSCTL_RCC_USESYSDIV |
SYSCTL_RCC_IOSCDIS | SYSCTL_RCC_MOSCDIS);
@@ -2195,14 +2226,15 @@ SysCtlClockSet(unsigned long ulConfig)
//
//! Gets the processor clock rate.
//!
-//! This function determines the clock rate of the processor clock. This is
-//! also the clock rate of all the peripheral modules (with the exception of
-//! PWM, which has its own clock divider).
+//! This function determines the clock rate of the processor clock, which is
+//! also the clock rate of the peripheral modules (with the exception of
+//! PWM, which has its own clock divider; other peripherals may have different
+//! clocking, see the device data sheet for details).
//!
-//! \note This will not return accurate results if SysCtlClockSet() has not
+//! \note This cannot return accurate results if SysCtlClockSet() has not
//! been called to configure the clocking of the device, or if the device is
//! directly clocked from a crystal (or a clock source) that is not one of the
-//! supported crystal frequencies. In the later case, this function should be
+//! supported crystal frequencies. In the latter case, this function should be
//! modified to directly return the correct system clock rate.
//!
//! \return The processor clock rate.
@@ -2216,8 +2248,8 @@ SysCtlClockGet(void)
//
// Read RCC and RCC2. For Sandstorm-class devices (which do not have
- // RCC2), the RCC2 read will return 0, which indicates that RCC2 is
- // disabled (since the SYSCTL_RCC2_USERCC2 bit is clear).
+ // RCC2), the RCC2 read returns 0, indicating that RCC2 is
+ // disabled (because the SYSCTL_RCC2_USERCC2 bit is clear).
//
ulRCC = HWREG(SYSCTL_RCC);
ulRCC2 = HWREG(SYSCTL_RCC2);
@@ -2261,7 +2293,7 @@ SysCtlClockGet(void)
{
//
// The internal oscillator on a rev A2 Fury-class device and a
- // rev A0 Dustdevil-class device is 12 MHz +/- 30%.
+ // Dustdevil-class device is 12 MHz +/- 30%.
//
ulClk = 12000000;
}
@@ -2296,7 +2328,7 @@ SysCtlClockGet(void)
{
//
// The internal oscillator on a rev A2 Fury-class device and a
- // rev A0 Dustdevil-class device is 12 MHz +/- 30%.
+ // Dustdevil-class device is 12 MHz +/- 30%.
//
ulClk = 12000000 / 4;
}
@@ -2311,19 +2343,19 @@ SysCtlClockGet(void)
}
//
- // The internal 30 KHz oscillator is the source clock.
+ // The internal 30-KHz oscillator is the source clock.
//
case SYSCTL_RCC_OSCSRC_30:
{
//
- // The internal 30 KHz oscillator has an accuracy of +/- 30%.
+ // The internal 30-KHz oscillator has an accuracy of +/- 30%.
//
ulClk = 30000;
break;
}
//
- // The 4.19 MHz clock from the hibernate module is the clock source.
+ // The 4.194304-MHz clock from the hibernate module is the clock source.
//
case SYSCTL_RCC2_OSCSRC2_419:
{
@@ -2332,7 +2364,7 @@ SysCtlClockGet(void)
}
//
- // The 32 KHz clock from the hibernate module is the source clock.
+ // The 32.768-KHz clock from the hibernate module is the source clock.
//
case SYSCTL_RCC2_OSCSRC2_32:
{
@@ -2363,7 +2395,7 @@ SysCtlClockGet(void)
{
//
// Read the two PLL frequency registers. The formula for a
- // Garnet-class device is "(xtal * m) / ((q + 1) * (n + 1))".
+ // Blizzard-class device is "(xtal * m) / ((q + 1) * (n + 1))".
//
ulPLL = HWREG(SYSCTL_PLLFREQ0);
ulPLL1 = HWREG(SYSCTL_PLLFREQ1);
@@ -2443,7 +2475,7 @@ SysCtlClockGet(void)
//
// Force the system divider to be enabled. It is always used when
- // using the PLL, but in some cases it will not read as being enabled.
+ // using the PLL, but in some cases it does not read as being enabled.
//
ulRCC |= SYSCTL_RCC_USESYSDIV;
}
@@ -2541,8 +2573,8 @@ SysCtlDeepSleepClockSet(unsigned long ulConfig)
//! \b SYSCTL_PWMDIV_8, \b SYSCTL_PWMDIV_16, \b SYSCTL_PWMDIV_32, or
//! \b SYSCTL_PWMDIV_64.
//!
-//! This function sets the rate of the clock provided to the PWM module as a
-//! ratio of the processor clock. This clock is used by the PWM module to
+//! This function configures the rate of the clock provided to the PWM module
+//! as a ratio of the processor clock. This clock is used by the PWM module to
//! generate PWM signals; its rate forms the basis for all PWM signals.
//!
//! \note The clocking of the PWM is dependent upon the system clock rate as
@@ -2628,10 +2660,10 @@ SysCtlPWMClockGet(void)
//! \b SYSCTL_ADCSPEED_1MSPS, \b SYSCTL_ADCSPEED_500KSPS,
//! \b SYSCTL_ADCSPEED_250KSPS, or \b SYSCTL_ADCSPEED_125KSPS.
//!
-//! This function sets the rate at which the ADC samples are captured by the
-//! ADC block. The sampling speed may be limited by the hardware, so the
+//! This function configures the rate at which the ADC samples are captured by
+//! the ADC block. The sampling speed may be limited by the hardware, so the
//! sample rate may end up being slower than requested. SysCtlADCSpeedGet()
-//! will return the actual speed in use.
+//! returns the actual speed in use.
//!
//! \return None.
//
@@ -2653,7 +2685,7 @@ SysCtlADCSpeedSet(unsigned long ulSpeed)
ASSERT(HWREG(SYSCTL_DC1) & SYSCTL_DC1_ADC0);
//
- // Set the ADC speed in run, sleep, and deep-sleep mode.
+ // Set the ADC speed in run and sleep mode.
//
HWREG(SYSCTL_RCGC0) = ((HWREG(SYSCTL_RCGC0) & ~(SYSCTL_RCGC0_ADCSPD_M)) |
ulSpeed);
@@ -2701,7 +2733,7 @@ SysCtlADCSpeedGet(void)
//! Sandstorm-class devices.
//!
//! \note Both oscillators (main and internal) must be enabled for this
-//! verification timer to operate as the main oscillator will verify the
+//! verification timer to operate as the main oscillator verifies the
//! internal oscillator.
//!
//! \return None.
@@ -2739,7 +2771,7 @@ SysCtlIOSCVerificationSet(tBoolean bEnable)
//! Sandstorm-class devices.
//!
//! \note Both oscillators (main and internal) must be enabled for this
-//! verification timer to operate as the internal oscillator will verify the
+//! verification timer to operate as the internal oscillator verifies the
//! main oscillator.
//!
//! \return None.
@@ -2840,7 +2872,7 @@ SysCtlClkVerificationClear(void)
//! The \e ulGPIOPeripheral argument must be only one of the following values:
//! \b SYSCTL_PERIPH_GPIOA, \b SYSCTL_PERIPH_GPIOB, \b SYSCTL_PERIPH_GPIOC,
//! \b SYSCTL_PERIPH_GPIOD, \b SYSCTL_PERIPH_GPIOE, \b SYSCTL_PERIPH_GPIOF,
-//! \b SYSCTL_PERIPH_GPIOG, or \b SYSCTL_PERIPH_GPIOH.
+//! \b SYSCTL_PERIPH_GPIOG, \b SYSCTL_PERIPH_GPIOH, or \b SYSCTL_PERIPH_GPIOJ.
//!
//! \return None.
//
@@ -2875,12 +2907,12 @@ SysCtlGPIOAHBEnable(unsigned long ulGPIOPeripheral)
//!
//! This function disables the specified GPIO peripheral for access from the
//! Advanced Host Bus (AHB). Once disabled, the GPIO peripheral is accessed
-//! from the legacy Advanced Peripheral Bus (AHB).
+//! from the legacy Advanced Peripheral Bus (APB).
//!
//! The \b ulGPIOPeripheral argument must be only one of the following values:
//! \b SYSCTL_PERIPH_GPIOA, \b SYSCTL_PERIPH_GPIOB, \b SYSCTL_PERIPH_GPIOC,
//! \b SYSCTL_PERIPH_GPIOD, \b SYSCTL_PERIPH_GPIOE, \b SYSCTL_PERIPH_GPIOF,
-//! \b SYSCTL_PERIPH_GPIOG, or \b SYSCTL_PERIPH_GPIOH.
+//! \b SYSCTL_PERIPH_GPIOG, \b SYSCTL_PERIPH_GPIOH, or \b SYSCTL_PERIPH_GPIOJ.
//!
//! \return None.
//
@@ -2911,7 +2943,7 @@ SysCtlGPIOAHBDisable(unsigned long ulGPIOPeripheral)
//
//! Powers up the USB PLL.
//!
-//! This function will enable the USB controller's PLL which is used by it's
+//! This function enables the USB controller's PLL, which is used by it's
//! physical layer. This call is necessary before connecting to any external
//! devices.
//!
@@ -2931,9 +2963,9 @@ SysCtlUSBPLLEnable(void)
//
//! Powers down the USB PLL.
//!
-//! This function will disable the USB controller's PLL which is used by it's
+//! This function disables the USB controller's PLL, which is used by it's
//! physical layer. The USB registers are still accessible, but the physical
-//! layer will no longer function.
+//! layer no longer functions.
//!
//! \return None.
//
@@ -2942,7 +2974,7 @@ void
SysCtlUSBPLLDisable(void)
{
//
- // Turn of USB PLL.
+ // Turn off the USB PLL.
//
HWREG(SYSCTL_RCC2) |= SYSCTL_RCC2_USBPWRDN;
}
@@ -2951,20 +2983,20 @@ SysCtlUSBPLLDisable(void)
//
//! Sets the MCLK frequency provided to the I2S module.
//!
-//! \param ulInputClock is the input clock to the MCLK divider. If this is
-//! zero, the value is computed from the current PLL configuration.
-//! \param ulMClk is the desired MCLK frequency. If this is zero, MCLK output
-//! is disabled.
+//! \param ulInputClock is the input clock to the MCLK divider. If this value
+//! is zero, the value is computed from the current PLL configuration.
+//! \param ulMClk is the desired MCLK frequency. If this value is zero, MCLK
+//! output is disabled.
//!
-//! This function sets the dividers to provide MCLK to the I2S module. A MCLK
-//! divider is chosen that produces the MCLK frequency that is the closest
+//! This function confgiures the dividers to provide MCLK to the I2S module. A
+//! MCLK divider is chosen that produces the MCLK frequency that is the closest
//! possible to the requested frequency, which may be above or below the
//! requested frequency.
//!
//! The actual MCLK frequency is returned. It is the responsibility of the
//! application to determine if the selected MCLK is acceptable; in general the
//! human ear can not discern the frequency difference if it is within 0.3% of
-//! the desired frequency (though there is a very small percentage of the
+//! the desired frequency (although there is a very small percentage of the
//! population that can discern lower frequency deviations).
//!
//! \return Returns the actual MCLK frequency.
diff --git a/bsp/lm4f232/Libraries/driverlib/sysctl.h b/bsp/lm4f232/Libraries/driverlib/sysctl.h
index 7ccf713bca..a718c67b25 100644
--- a/bsp/lm4f232/Libraries/driverlib/sysctl.h
+++ b/bsp/lm4f232/Libraries/driverlib/sysctl.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/sysexc.c b/bsp/lm4f232/Libraries/driverlib/sysexc.c
index 70bb7eebd1..c3129e4c53 100644
--- a/bsp/lm4f232/Libraries/driverlib/sysexc.c
+++ b/bsp/lm4f232/Libraries/driverlib/sysexc.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -42,10 +42,10 @@
//! exception interrupt occurs.
//!
//! This function places the address of the system exception interrupt handler
-//! into the interrupt vector table in SRAM. It also enables the global
-//! interrupt in the interrupt controller; specific system exception interrupts
-//! must be enabled via SysExcIntEnable(). It is the interrupt handler's
-//! responsibility to clear the interrupt source.
+//! into the interrupt vector table in SRAM. This function also enables the
+//! global interrupt in the interrupt controller; specific system exception
+//! interrupts must be enabled via SysExcIntEnable(). It is the interrupt
+//! handler's responsibility to clear the interrupt source.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -72,8 +72,9 @@ SysExcIntRegister(void (*pfnHandler)(void))
//! Unregisters the system exception interrupt handler.
//!
//! This function removes the system exception interrupt handler from the
-//! vector table in SRAM. It also masks off the system exception interrupt in
-//! the interrupt controller so that the interrupt handler is no longer called.
+//! vector table in SRAM. This function also masks off the system exception
+//! interrupt in the interrupt controller so that the interrupt handler is no
+//! longer called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -197,9 +198,10 @@ SysExcIntStatus(tBoolean bMasked)
//!
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
//!
-//! The specified system exception interrupt sources are cleared, so that they
-//! no longer assert. This function must be called in the interrupt handler to
-//! keep the interrupt from being recognized again immediately upon exit.
+//! This function clears the specified system exception interrupt sources, so
+//! that they no longer assert. This function must be called in the interrupt
+//! handler to keep the interrupt from being recognized again immediately upon
+//! exit.
//!
//! The \e ulIntFlags parameter is the logical OR of any of the following:
//!
diff --git a/bsp/lm4f232/Libraries/driverlib/sysexc.h b/bsp/lm4f232/Libraries/driverlib/sysexc.h
index f31f8eee9a..78088cb05a 100644
--- a/bsp/lm4f232/Libraries/driverlib/sysexc.h
+++ b/bsp/lm4f232/Libraries/driverlib/sysexc.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/systick.c b/bsp/lm4f232/Libraries/driverlib/systick.c
index c8a581d80a..1fb10993c9 100644
--- a/bsp/lm4f232/Libraries/driverlib/systick.c
+++ b/bsp/lm4f232/Libraries/driverlib/systick.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -40,15 +40,15 @@
//
//! Enables the SysTick counter.
//!
-//! This will start the SysTick counter. If an interrupt handler has been
+//! This function starts the SysTick counter. If an interrupt handler has been
//! registered, it is called when the SysTick counter rolls over.
//!
-//! \note Calling this function will cause the SysTick counter to (re)commence
+//! \note Calling this function causes the SysTick counter to (re)commence
//! counting from its current value. The counter is not automatically reloaded
//! with the period as specified in a previous call to SysTickPeriodSet(). If
//! an immediate reload is required, the \b NVIC_ST_CURRENT register must be
-//! written to force this. Any write to this register clears the SysTick
-//! counter to 0 and will cause a reload with the supplied period on the next
+//! written to force the reload. Any write to this register clears the SysTick
+//! counter to 0 and causes a reload with the supplied period on the next
//! clock.
//!
//! \return None.
@@ -67,8 +67,8 @@ SysTickEnable(void)
//
//! Disables the SysTick counter.
//!
-//! This will stop the SysTick counter. If an interrupt handler has been
-//! registered, it will no longer be called until SysTick is restarted.
+//! This function stops the SysTick counter. If an interrupt handler has been
+//! registered, it is not called until SysTick is restarted.
//!
//! \return None.
//
@@ -89,7 +89,8 @@ SysTickDisable(void)
//! \param pfnHandler is a pointer to the function to be called when the
//! SysTick interrupt occurs.
//!
-//! This sets the handler to be called when a SysTick interrupt occurs.
+//! This function registers the handler to be called when a SysTick interrupt
+//! occurs.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -115,7 +116,7 @@ SysTickIntRegister(void (*pfnHandler)(void))
//
//! Unregisters the interrupt handler for the SysTick interrupt.
//!
-//! This function will clear the handler to be called when a SysTick interrupt
+//! This function unregisters the handler to be called when a SysTick interrupt
//! occurs.
//!
//! \sa IntRegister() for important information about registering interrupt
@@ -142,12 +143,12 @@ SysTickIntUnregister(void)
//
//! Enables the SysTick interrupt.
//!
-//! This function will enable the SysTick interrupt, allowing it to be
+//! This function enables the SysTick interrupt, allowing it to be
//! reflected to the processor.
//!
-//! \note The SysTick interrupt handler does not need to clear the SysTick
-//! interrupt source as this is done automatically by NVIC when the interrupt
-//! handler is called.
+//! \note The SysTick interrupt handler is not required to clear the SysTick
+//! interrupt source because it is cleared automatically by the NVIC when the
+//! interrupt handler is called.
//!
//! \return None.
//
@@ -165,7 +166,7 @@ SysTickIntEnable(void)
//
//! Disables the SysTick interrupt.
//!
-//! This function will disable the SysTick interrupt, preventing it from being
+//! This function disables the SysTick interrupt, preventing it from being
//! reflected to the processor.
//!
//! \return None.
@@ -185,16 +186,16 @@ SysTickIntDisable(void)
//! Sets the period of the SysTick counter.
//!
//! \param ulPeriod is the number of clock ticks in each period of the SysTick
-//! counter; must be between 1 and 16,777,216, inclusive.
+//! counter and must be between 1 and 16,777,216, inclusive.
//!
-//! This function sets the rate at which the SysTick counter wraps; this
+//! This function sets the rate at which the SysTick counter wraps, which
//! equates to the number of processor clocks between interrupts.
//!
//! \note Calling this function does not cause the SysTick counter to reload
//! immediately. If an immediate reload is required, the \b NVIC_ST_CURRENT
//! register must be written. Any write to this register clears the SysTick
-//! counter to 0 and will cause a reload with the \e ulPeriod supplied here on
-//! the next clock after the SysTick is enabled.
+//! counter to 0 and causes a reload with the \e ulPeriod supplied here on
+//! the next clock after SysTick is enabled.
//!
//! \return None.
//
@@ -217,7 +218,7 @@ SysTickPeriodSet(unsigned long ulPeriod)
//
//! Gets the period of the SysTick counter.
//!
-//! This function returns the rate at which the SysTick counter wraps; this
+//! This function returns the rate at which the SysTick counter wraps, which
//! equates to the number of processor clocks between interrupts.
//!
//! \return Returns the period of the SysTick counter.
@@ -236,8 +237,8 @@ SysTickPeriodGet(void)
//
//! Gets the current value of the SysTick counter.
//!
-//! This function returns the current value of the SysTick counter; this will
-//! be a value between the period - 1 and zero, inclusive.
+//! This function returns the current value of the SysTick counter, which is
+//! a value between the period - 1 and zero, inclusive.
//!
//! \return Returns the current value of the SysTick counter.
//
diff --git a/bsp/lm4f232/Libraries/driverlib/systick.h b/bsp/lm4f232/Libraries/driverlib/systick.h
index c9d0d5fe9e..fc33f25eef 100644
--- a/bsp/lm4f232/Libraries/driverlib/systick.h
+++ b/bsp/lm4f232/Libraries/driverlib/systick.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/timer.c b/bsp/lm4f232/Libraries/driverlib/timer.c
index 5a8cac15ea..ae255e058b 100644
--- a/bsp/lm4f232/Libraries/driverlib/timer.c
+++ b/bsp/lm4f232/Libraries/driverlib/timer.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -91,7 +91,8 @@ TimerBaseValid(unsigned long ulBase)
//!
//! \param ulBase is the base address of the timer module.
//!
-//! Given a timer base address, returns the corresponding interrupt number.
+//! Given a timer base address, this function returns the corresponding
+//! interrupt number.
//!
//! \return Returns a timer interrupt number, or -1 if \e ulBase is invalid.
//
@@ -194,7 +195,7 @@ TimerDisable(unsigned long ulBase, unsigned long ulTimer)
//! \param ulConfig is the configuration for the timer.
//!
//! This function configures the operating mode of the timer(s). The timer
-//! module is disabled before being configured, and is left in the disabled
+//! module is disabled before being configured and is left in the disabled
//! state. There are two types of timers; a 16/32-bit variety and a 32/64-bit
//! variety. The 16/32-bit variety is comprised of two 16-bit timers that can
//! operate independently or be concatenated to form a 32-bit timer.
@@ -298,8 +299,8 @@ TimerConfigure(unsigned long ulBase, unsigned long ulConfig)
//! \b TIMER_B, or \b TIMER_BOTH.
//! \param bInvert specifies the output level.
//!
-//! This function sets the PWM output level for the specified timer. If the
-//! \e bInvert parameter is \b true, then the timer's output is made active
+//! This function configures the PWM output level for the specified timer. If
+//! the \e bInvert parameter is \b true, then the timer's output is made active
//! low; otherwise, it is made active high.
//!
//! \return None.
@@ -327,15 +328,15 @@ TimerControlLevel(unsigned long ulBase, unsigned long ulTimer,
//*****************************************************************************
//
-//! Enables or disables the trigger output.
+//! Enables or disables the ADC trigger output.
//!
//! \param ulBase is the base address of the timer module.
//! \param ulTimer specifies the timer to adjust; must be one of \b TIMER_A,
//! \b TIMER_B, or \b TIMER_BOTH.
-//! \param bEnable specifies the desired trigger state.
+//! \param bEnable specifies the desired ADC trigger state.
//!
-//! This function controls the trigger output for the specified timer. If the
-//! \e bEnable parameter is \b true, then the timer's output trigger is
+//! This function controls the ADC trigger output for the specified timer. If
+//! the \e bEnable parameter is \b true, then the timer's ADC output trigger is
//! enabled; otherwise it is disabled.
//!
//! \return None.
@@ -354,6 +355,7 @@ TimerControlTrigger(unsigned long ulBase, unsigned long ulTimer,
//
// Set the trigger output as requested.
+ // Set the ADC trigger output as requested.
//
ulTimer &= TIMER_CTL_TAOTE | TIMER_CTL_TBOTE;
HWREG(ulBase + TIMER_O_CTL) = (bEnable ?
@@ -372,8 +374,8 @@ TimerControlTrigger(unsigned long ulBase, unsigned long ulTimer,
//! \b TIMER_EVENT_POS_EDGE, \b TIMER_EVENT_NEG_EDGE, or
//! \b TIMER_EVENT_BOTH_EDGES.
//!
-//! This function sets the signal edge(s) that triggers the timer when in
-//! capture mode.
+//! This function configures the signal edge(s) that triggers the timer when
+//! in capture mode.
//!
//! \return None.
//
@@ -448,7 +450,8 @@ TimerControlStall(unsigned long ulBase, unsigned long ulTimer,
//! count to its timeout in order for this timer to start counting. Refer to
//! the part's data sheet for a description of the trigger chain.
//!
-//! \note This functionality is not available on all parts.
+//! \note This functionality is not available on all parts. This function
+//! should not be used for Timer 0A or Wide Timer 0A.
//!
//! \return None.
//
@@ -557,9 +560,11 @@ TimerRTCDisable(unsigned long ulBase)
//! (inclusive) for 16/32-bit timers and between 0 and 65535 (inclusive) for
//! 32/64-bit timers.
//!
-//! This function sets the value of the input clock prescaler. The prescaler
-//! is only operational when in half-width mode and is used to extend the range
-//! of the half-width timer modes.
+//! This function configures the value of the input clock prescaler. The
+//! prescaler is only operational when in half-width mode and is used to extend
+//! the range of the half-width timer modes. The prescaler provides the least
+//! significant bits when counting down in periodic and one-shot modes; in all
+//! other modes, the prescaler provides the most significant bits.
//!
//! \note The availability of the prescaler varies with the Stellaris part and
//! timer mode in use. Please consult the datasheet for the part you are using
@@ -607,7 +612,9 @@ TimerPrescaleSet(unsigned long ulBase, unsigned long ulTimer,
//!
//! This function gets the value of the input clock prescaler. The prescaler
//! is only operational when in half-width mode and is used to extend the range
-//! of the half-width timer modes.
+//! of the half-width timer modes. The prescaler provides the least significant
+//! bits when counting down in periodic and one-shot modes; in all other modes,
+//! the prescaler provides the most significant bits.
//!
//! \note The availability of the prescaler varies with the Stellaris part and
//! timer mode in use. Please consult the datasheet for the part you are using
@@ -644,9 +651,12 @@ TimerPrescaleGet(unsigned long ulBase, unsigned long ulTimer)
//! and 255 (inclusive) for 16/32-bit timers and between 0 and 65535
//! (inclusive) for 32/64-bit timers.
//!
-//! This function sets the value of the input clock prescaler match value.
-//! When in a half-width mode that uses the counter match and the prescaler,
-//! the prescale match effectively extends the range of the match.
+//! This function configures the value of the input clock prescaler match
+//! value. When in a half-width mode that uses the counter match and the
+//! prescaler, the prescale match effectively extends the range of the match.
+//! The prescaler provides the least significant bits when counting down in
+//! periodic and one-shot modes; in all other modes, the prescaler provides the
+//! most significant bits.
//!
//! \note The availability of the prescaler match varies with the Stellaris
//! part and timer mode in use. Please consult the datasheet for the part you
@@ -694,7 +704,10 @@ TimerPrescaleMatchSet(unsigned long ulBase, unsigned long ulTimer,
//!
//! This function gets the value of the input clock prescaler match value.
//! When in a half-width mode that uses the counter match and prescaler, the
-//! prescale match effectively extends the range of the match.
+//! prescale match effectively extends the range of the match. The prescaler
+//! provides the least significant bits when counting down in periodic and
+//! one-shot modes; in all other modes, the prescaler provides the most
+//! significant bits.
//!
//! \note The availability of the prescaler match varies with the Stellaris
//! part and timer mode in use. Please consult the datasheet for the part you
@@ -730,11 +743,11 @@ TimerPrescaleMatchGet(unsigned long ulBase, unsigned long ulTimer)
//! timer is configured for full-width operation.
//! \param ulValue is the load value.
//!
-//! This function sets the timer load value; if the timer is running then the
-//! value is immediately loaded into the timer.
+//! This function configures the timer load value; if the timer is running then
+//! the value is immediately loaded into the timer.
//!
//! \note This function can be used for both full- and half-width modes of
-//! 16/32-bit timers, and for half-width modes of 32/64-bit timers. Use
+//! 16/32-bit timers and for half-width modes of 32/64-bit timers. Use
//! TimerLoadSet64() for full-width modes of 32/64-bit timers.
//!
//! \return None.
@@ -781,7 +794,7 @@ TimerLoadSet(unsigned long ulBase, unsigned long ulTimer,
//! specified timer.
//!
//! \note This function can be used for both full- and half-width modes of
-//! 16/32-bit timers, and for half-width modes of 32/64-bit timers. Use
+//! 16/32-bit timers and for half-width modes of 32/64-bit timers. Use
//! TimerLoadGet64() for full-width modes of 32/64-bit timers.
//!
//! \return Returns the load value for the timer.
@@ -810,8 +823,8 @@ TimerLoadGet(unsigned long ulBase, unsigned long ulTimer)
//! \param ulBase is the base address of the timer module.
//! \param ullValue is the load value.
//!
-//! This function sets the timer load value for a 64-bit timer; if the timer is
-//! running then the value is immediately loaded into the timer.
+//! This function configures the timer load value for a 64-bit timer; if the
+//! timer is running, then the value is immediately loaded into the timer.
//!
//! \return None.
//
@@ -888,7 +901,7 @@ TimerLoadGet64(unsigned long ulBase)
//! This function reads the current value of the specified timer.
//!
//! \note This function can be used for both full- and half-width modes of
-//! 16/32-bit timers, and for half-width modes of 32/64-bit timers. Use
+//! 16/32-bit timers and for half-width modes of 32/64-bit timers. Use
//! TimerValueGet64() for full-width modes of 32/64-bit timers.
//!
//! \return Returns the current value of the timer.
@@ -962,12 +975,14 @@ TimerValueGet64(unsigned long ulBase)
//! timer is configured for full-width operation.
//! \param ulValue is the match value.
//!
-//! This function sets the match value for a timer. This value is used in
-//! capture count mode to determine when to interrupt the processor and in PWM
-//! mode to determine the duty cycle of the output signal.
+//! This function configures the match value for a timer. This value is used
+//! in capture count mode to determine when to interrupt the processor and in
+//! PWM mode to determine the duty cycle of the output signal. On some
+//! Stellaris devices, match interrupts can also be generated in periodic and
+//! one-shot modes.
//!
//! \note This function can be used for both full- and half-width modes of
-//! 16/32-bit timers, and for half-width modes of 32/64-bit timers. Use
+//! 16/32-bit timers and for half-width modes of 32/64-bit timers. Use
//! TimerMatchSet64() for full-width modes of 32/64-bit timers.
//!
//! \return None.
@@ -1013,7 +1028,7 @@ TimerMatchSet(unsigned long ulBase, unsigned long ulTimer,
//! This function gets the match value for the specified timer.
//!
//! \note This function can be used for both full- and half-width modes of
-//! 16/32-bit timers, and for half-width modes of 32/64-bit timers. Use
+//! 16/32-bit timers and for half-width modes of 32/64-bit timers. Use
//! TimerMatchGet64() for full-width modes of 32/64-bit timers.
//!
//! \return Returns the match value for the timer.
@@ -1042,9 +1057,9 @@ TimerMatchGet(unsigned long ulBase, unsigned long ulTimer)
//! \param ulBase is the base address of the timer module.
//! \param ullValue is the match value.
//!
-//! This function sets the match value for a timer. This value is used in
-//! capture count mode to determine when to interrupt the processor and in PWM
-//! mode to determine the duty cycle of the output signal.
+//! This function configures the match value for a timer. This value is used
+//! in capture count mode to determine when to interrupt the processor and in
+//! PWM mode to determine the duty cycle of the output signal.
//!
//! \return None.
//
@@ -1118,11 +1133,11 @@ TimerMatchGet64(unsigned long ulBase)
//! \param pfnHandler is a pointer to the function to be called when the timer
//! interrupt occurs.
//!
-//! This function sets the handler to be called when a timer interrupt occurs.
-//! In addition, this function enables the global interrupt in the interrupt
-//! controller; specific timer interrupts must be enabled via TimerIntEnable().
-//! It is the interrupt handler's responsibility to clear the interrupt source
-//! via TimerIntClear().
+//! This function registers the handler to be called when a timer interrupt
+//! occurs. In addition, this function enables the global interrupt in the
+//! interrupt controller; specific timer interrupts must be enabled via
+//! TimerIntEnable(). It is the interrupt handler's responsibility to clear the
+//! interrupt source via TimerIntClear().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -1187,9 +1202,9 @@ TimerIntRegister(unsigned long ulBase, unsigned long ulTimer,
//! \param ulTimer specifies the timer(s); must be one of \b TIMER_A,
//! \b TIMER_B, or \b TIMER_BOTH.
//!
-//! This function clears the handler to be called when a timer interrupt
+//! This function unregisters the handler to be called when a timer interrupt
//! occurs. This function also masks off the interrupt in the interrupt
-//! controller so that the interrupt handler no longer is called.
+//! controller so that the interrupt handler is no longer called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
@@ -1252,9 +1267,9 @@ TimerIntUnregister(unsigned long ulBase, unsigned long ulTimer)
//! \param ulBase is the base address of the timer module.
//! \param ulIntFlags is the bit mask of the interrupt sources to be enabled.
//!
-//! Enables the indicated timer interrupt sources. Only the sources that are
-//! enabled can be reflected to the processor interrupt; disabled sources have
-//! no effect on the processor.
+//! This function enables the indicated timer interrupt sources. Only the
+//! sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! The \e ulIntFlags parameter must be the logical OR of any combination of
//! the following:
@@ -1291,9 +1306,9 @@ TimerIntEnable(unsigned long ulBase, unsigned long ulIntFlags)
//! \param ulBase is the base address of the timer module.
//! \param ulIntFlags is the bit mask of the interrupt sources to be disabled.
//!
-//! Disables the indicated timer interrupt sources. Only the sources that are
-//! enabled can be reflected to the processor interrupt; disabled sources have
-//! no effect on the processor.
+//! This function disables the indicated timer interrupt sources. Only the
+//! sources that are enabled can be reflected to the processor interrupt;
+//! disabled sources have no effect on the processor.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to TimerIntEnable().
@@ -1361,7 +1376,7 @@ TimerIntStatus(unsigned long ulBase, tBoolean bMasked)
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to TimerIntEnable().
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -1391,11 +1406,11 @@ TimerIntClear(unsigned long ulBase, unsigned long ulIntFlags)
//
//! Synchronizes the counters in a set of timers.
//!
-//! \param ulBase is the base address of the timer module. This must be the
-//! base address of Timer0 (in other words, \b TIMER0_BASE).
+//! \param ulBase is the base address of the timer module. This parameter must
+//! be the base address of Timer0 (in other words, \b TIMER0_BASE).
//! \param ulTimers is the set of timers to synchronize.
//!
-//! This function will synchronize the counters in a specified set of timers.
+//! This function synchronizes the counters in a specified set of timers.
//! When a timer is running in half-width mode, each half can be included or
//! excluded in the synchronization event. When a timer is running in
//! full-width mode, only the A timer can be synchronized (specifying the B
@@ -1454,9 +1469,9 @@ TimerSynchronize(unsigned long ulBase, unsigned long ulTimers)
//
// \param ulBase is the base address of the timer module.
//
-// The specified timer is disabled, and all its interrupts are disabled,
-// cleared, and unregistered. Then the timer registers are set to their reset
-// value.
+// This function disables the specified timer, and all its interrupts are
+// disabled, cleared, and unregistered. Then the timer registers are set to
+// their reset value.
//
// \return None.
//
@@ -1486,7 +1501,7 @@ TimerQuiesce(unsigned long ulBase)
HWREG(ulBase + TIMER_O_ICR) = 0xFFFFFFFF;
//
- // Unregister the interrupt handler. This also disables interrupts to the
+ // Unregister the interrupt handler, which also disables interrupts to the
// core.
//
TimerIntUnregister(ulBase, TIMER_BOTH);
diff --git a/bsp/lm4f232/Libraries/driverlib/timer.h b/bsp/lm4f232/Libraries/driverlib/timer.h
index f881805eae..c27ac8d18e 100644
--- a/bsp/lm4f232/Libraries/driverlib/timer.h
+++ b/bsp/lm4f232/Libraries/driverlib/timer.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/uart.c b/bsp/lm4f232/Libraries/driverlib/uart.c
index 8f8bb453af..5323cb86d5 100644
--- a/bsp/lm4f232/Libraries/driverlib/uart.c
+++ b/bsp/lm4f232/Libraries/driverlib/uart.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -97,7 +97,8 @@ UARTBaseValid(unsigned long ulBase)
//!
//! \param ulBase is the base address of the UART port.
//!
-//! Given a UART base address, returns the corresponding interrupt number.
+//! Given a UART base address, this function returns the corresponding
+//! interrupt number.
//!
//! \return Returns a UART interrupt number, or -1 if \e ulBase is invalid.
//
@@ -139,12 +140,12 @@ UARTIntNumberGet(unsigned long ulBase)
//! \param ulBase is the base address of the UART port.
//! \param ulParity specifies the type of parity to use.
//!
-//! This function sets the type of parity to use for transmitting and expect
-//! when receiving. The \e ulParity parameter must be one of
+//! This function configures the type of parity to use for transmitting and
+//! expect when receiving. The \e ulParity parameter must be one of
//! \b UART_CONFIG_PAR_NONE, \b UART_CONFIG_PAR_EVEN, \b UART_CONFIG_PAR_ODD,
-//! \b UART_CONFIG_PAR_ONE, or \b UART_CONFIG_PAR_ZERO. The last two allow
-//! direct control of the parity bit; it is always either one or zero based on
-//! the mode.
+//! \b UART_CONFIG_PAR_ONE, or \b UART_CONFIG_PAR_ZERO. The last two
+//! parameters allow direct control of the parity bit; it is always either one
+//! or zero based on the mode.
//!
//! \return None.
//
@@ -211,8 +212,8 @@ UARTParityModeGet(unsigned long ulBase)
//! \b UART_FIFO_RX1_8, \b UART_FIFO_RX2_8, \b UART_FIFO_RX4_8,
//! \b UART_FIFO_RX6_8, or \b UART_FIFO_RX7_8.
//!
-//! This function sets the FIFO level at which transmit and receive interrupts
-//! are generated.
+//! This function configures the FIFO level at which transmit and receive
+//! interrupts are generated.
//!
//! \return None.
//
@@ -403,8 +404,8 @@ UARTConfigSetExpClk(unsigned long ulBase, unsigned long ulUARTClk,
//! \param pulBaud is a pointer to storage for the baud rate.
//! \param pulConfig is a pointer to storage for the data format.
//!
-//! The baud rate and data format for the UART is determined, given an
-//! explicitly provided peripheral clock (hence the ExpClk suffix). The
+//! This function determines the baud rate and data format for the UART, given
+//! an explicitly provided peripheral clock (hence the ExpClk suffix). The
//! returned baud rate is the actual baud rate; it may not be the exact baud
//! rate requested or an ``official'' baud rate. The data format returned in
//! \e pulConfig is enumerated the same as the \e ulConfig parameter of
@@ -471,7 +472,7 @@ UARTConfigGetExpClk(unsigned long ulBase, unsigned long ulUARTClk,
//!
//! \param ulBase is the base address of the UART port.
//!
-//! This function sets the UARTEN, TXE, and RXE bits, and enables the transmit
+//! This function sets the UARTEN, TXE, and RXE bits and enables the transmit
//! and receive FIFOs.
//!
//! \return None.
@@ -567,7 +568,7 @@ UARTFIFOEnable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the UART port.
//!
-//! This functions disables the transmit and receive FIFOs in the UART.
+//! This function disables the transmit and receive FIFOs in the UART.
//!
//! \return None.
//
@@ -594,8 +595,8 @@ UARTFIFODisable(unsigned long ulBase)
//! \param bLowPower indicates if SIR Low Power Mode is to be used.
//!
//! This function enables the SIREN control bit for IrDA mode on the UART. If
-//! the \e bLowPower flag is set, then SIRLP bit will also be set. This
-//! function will only have an effect if the UART has not been enabled
+//! the \e bLowPower flag is set, then SIRLP bit is also set. This
+//! function only has an effect if the UART has not been enabled
//! by a call to UARTEnable(). The call UARTEnableSIR() must be made before
//! a call to UARTConfigSetExpClk() because the UARTConfigSetExpClk() function
//! calls the UARTEnable() function. Another option is to call UARTDisable()
@@ -603,8 +604,8 @@ UARTFIFODisable(unsigned long ulBase)
//! UARTEnable().
//!
//! \note The availability of SIR (IrDA) operation varies with the Stellaris
-//! part and UART in use. Please consult the datasheet for the part you are
-//! using to determine whether this support is available.
+//! part in use. Please consult the datasheet for the part you are using to
+//! determine whether this support is available.
//!
//! \return None.
//
@@ -637,7 +638,7 @@ UARTEnableSIR(unsigned long ulBase, tBoolean bLowPower)
//! \param ulBase is the base address of the UART port.
//!
//! This function clears the SIREN (IrDA) and SIRLP (Low Power) bits. This
-//! function will only have an effect if the UART has not been enabled by a
+//! function only has an effect if the UART has not been enabled by a
//! call to UARTEnable(). The call UARTEnableSIR() must be made before
//! a call to UARTConfigSetExpClk() because the UARTConfigSetExpClk() function
//! calls the UARTEnable() function. Another option is to call UARTDisable()
@@ -645,8 +646,8 @@ UARTEnableSIR(unsigned long ulBase, tBoolean bLowPower)
//! UARTEnable().
//!
//! \note The availability of SIR (IrDA) operation varies with the Stellaris
-//! part and UART in use. Please consult the datasheet for the part you are
-//! using to determine whether this support is available.
+//! part in use. Please consult the datasheet for the part you are using to
+//! determine whether this support is available.
//!
//! \return None.
//
@@ -671,13 +672,13 @@ UARTDisableSIR(unsigned long ulBase)
//!
//! \param ulBase is the base address of the UART port.
//!
-//! This function enables the SMART control bit for ISO7816 smart card mode on
-//! the UART. This call also sets 8 bit word length and even parity as
+//! This function enables the SMART control bit for the ISO7816 smart card mode
+//! on the UART. This call also sets 8-bit word length and even parity as
//! required by ISO7816.
//!
-//! \note The availability of ISO7816 smart card mode varies with the
-//! Stellaris part and UART in use. Please consult the datasheet for the part
-//! you are using to determine whether this support is available.
+//! \note The availability of SIR (IrDA) operation varies with the Stellaris
+//! part in use. Please consult the datasheet for the part you are using to
+//! determine whether this support is available.
//!
//! \return None.
//
@@ -694,9 +695,9 @@ UARTSmartCardEnable(unsigned long ulBase)
ASSERT(UARTBaseValid(ulBase));
//
- // Set 8 bit word length, even parity, 2 stop bits (even though the STP2
- // bit is ignored when in smartcard mode, this lets the caller read back
- // the actual setting in use).
+ // Set 8-bit word length, even parity, 2 stop bits (note that although the
+ // STP2 bit is ignored when in smartcard mode, this code lets the caller
+ // read back the actual setting in use).
//
ulVal = HWREG(ulBase + UART_O_LCRH);
ulVal &= ~(UART_LCRH_SPS | UART_LCRH_EPS | UART_LCRH_PEN |
@@ -716,12 +717,12 @@ UARTSmartCardEnable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the UART port.
//!
-//! This function clears the SMART (ISO7816 smart card) bits in the UART
+//! This function clears the SMART (ISO7816 smart card) bit in the UART
//! control register.
//!
//! \note The availability of ISO7816 smart card mode varies with the
-//! Stellaris part and UART in use. Please consult the datasheet for the part
-//! you are using to determine whether this support is available.
+//! Stellaris part in use. Please consult the datasheet for the part you are
+//! using to determine whether this support is available.
//!
//! \return None.
//
@@ -749,17 +750,17 @@ UARTSmartCardDisable(unsigned long ulBase)
//! \param ulControl is a bit-mapped flag indicating which modem control bits
//! should be set.
//!
-//! This function sets the states of the DTR or RTS modem handshake outputs
-//! from the UART.
+//! This function configures the states of the DTR or RTS modem handshake
+//! outputs from the UART.
//!
//! The \e ulControl parameter is the logical OR of any of the following:
//!
//! - \b UART_OUTPUT_DTR - The Modem Control DTR signal
//! - \b UART_OUTPUT_RTS - The Modem Control RTS signal
//!
-//! \note The availability of hardware modem handshake signals varies with the
-//! Stellaris part and UART in use. Please consult the datasheet for the part
-//! you are using to determine whether this support is available.
+//! \note The availability of ISO7816 smart card mode varies with the
+//! Stellaris part in use. Please consult the datasheet for the part you are
+//! using to determine whether this support is available.
//!
//! \return None.
//
@@ -840,8 +841,8 @@ UARTModemControlClear(unsigned long ulBase, unsigned long ulControl)
//! Stellaris part and UART in use. Please consult the datasheet for the part
//! you are using to determine whether this support is available.
//!
-//! \return Returns the states of the handshake output signals. This is a
-//! logical logical OR combination of values \b UART_OUTPUT_RTS and
+//! \return Returns the states of the handshake output signals. This value is
+//! a logical OR combination of values \b UART_OUTPUT_RTS and
//! \b UART_OUTPUT_DTR where the presence of each flag indicates that the
//! associated signal is asserted.
//
@@ -872,7 +873,7 @@ UARTModemControlGet(unsigned long ulBase)
//! you are using to determine whether this support is available.
//!
//! \return Returns the states of the handshake output signals. This value
-//! is a logical logical OR combination of values \b UART_INPUT_RI,
+//! is a logical OR combination of values \b UART_INPUT_RI,
//! \b UART_INPUT_DCD, \b UART_INPUT_CTS and \b UART_INPUT_DSR where the
//! presence of each flag indicates that the associated signal is asserted.
//
@@ -900,9 +901,9 @@ UARTModemStatusGet(unsigned long ulBase)
//! \b UART_FLOWCONTROL_RX to enable hardware transmit (CTS) and receive (RTS)
//! flow control or \b UART_FLOWCONTROL_NONE to disable hardware flow control.
//!
-//! This function sets the required hardware flow control modes. If \e ulMode
-//! contains flag \b UART_FLOWCONTROL_TX, data is only transmitted if the
-//! incoming CTS signal is asserted. If \e ulMode contains flag
+//! This function configures the required hardware flow control modes. If
+//! \e ulMode contains flag \b UART_FLOWCONTROL_TX, data is only transmitted
+//! if the incoming CTS signal is asserted. If \e ulMode contains flag
//! \b UART_FLOWCONTROL_RX, the RTS output is controlled by the hardware and is
//! asserted only when there is space available in the receive FIFO. If no
//! hardware flow control is required, \b UART_FLOWCONTROL_NONE should be
@@ -945,7 +946,7 @@ UARTFlowControlSet(unsigned long ulBase, unsigned long ulMode)
//! part and UART in use. Please consult the datasheet for the part you are
//! using to determine whether this support is available.
//!
-//! \return Returns the current flow control mode in use. This is a
+//! \return Returns the current flow control mode in use. This value is a
//! logical OR combination of values \b UART_FLOWCONTROL_TX if transmit
//! (CTS) flow control is enabled and \b UART_FLOWCONTROL_RX if receive (RTS)
//! flow control is in use. If hardware flow control is disabled,
@@ -1016,11 +1017,11 @@ UARTTxIntModeSet(unsigned long ulBase, unsigned long ulMode)
//!
//! This function returns the current operating mode for the UART transmit
//! interrupt. The return value is \b UART_TXINT_MODE_EOT if the transmit
-//! interrupt is currently set to be asserted once the transmitter is
+//! interrupt is currently configured to be asserted once the transmitter is
//! completely idle - the transmit FIFO is empty and all bits, including any
//! stop bits, have cleared the transmitter. The return value is
-//! \b UART_TXINT_MODE_FIFO if the interrupt is set to be asserted based upon
-//! the level of the transmit FIFO.
+//! \b UART_TXINT_MODE_FIFO if the interrupt is configured to be asserted based
+//! on the level of the transmit FIFO.
//!
//! \note The availability of end-of-transmission mode varies with the
//! Stellaris part in use. Please consult the datasheet for the part you are
@@ -1188,7 +1189,7 @@ UARTCharGet(unsigned long ulBase)
//!
//! This function writes the character \e ucData to the transmit FIFO for the
//! specified port. This function does not block, so if there is no space
-//! available, then a \b false is returned, and the application must retry the
+//! available, then a \b false is returned and the application must retry the
//! function later.
//!
//! This function replaces the original UARTCharNonBlockingPut() API and
@@ -1305,10 +1306,10 @@ UARTBreakCtl(unsigned long ulBase, tBoolean bBreakState)
//!
//! \param ulBase is the base address of the UART port.
//!
-//! Allows the caller to determine whether all transmitted bytes have cleared
-//! the transmitter hardware. If \b false is returned, the transmit FIFO is
-//! empty and all bits of the last transmitted character, including all stop
-//! bits, have left the hardware shift register.
+//! This function allows the caller to determine whether all transmitted bytes
+//! have cleared the transmitter hardware. If \b false is returned, the
+//! transmit FIFO is empty and all bits of the last transmitted character,
+//! including all stop bits, have left the hardware shift register.
//!
//! \return Returns \b true if the UART is transmitting or \b false if all
//! transmissions are complete.
@@ -1429,7 +1430,7 @@ UARTIntUnregister(unsigned long ulBase)
//!
//! The \e ulIntFlags parameter is the logical OR of any of the following:
//!
-//! - \b UART_INT_9BIT - 9-bit address match interrupt
+//! - \b UART_INT_9BIT - 9-bit Address Match interrupt
//! - \b UART_INT_OE - Overrun Error interrupt
//! - \b UART_INT_BE - Break Error interrupt
//! - \b UART_INT_PE - Parity Error interrupt
@@ -1537,12 +1538,12 @@ UARTIntStatus(unsigned long ulBase, tBoolean bMasked)
//!
//! The specified UART interrupt sources are cleared, so that they no longer
//! assert. This function must be called in the interrupt handler to keep the
-//! interrupt from being recognized again immediately upon exit.
+//! interrupt from being triggered again immediately upon exit.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to UARTIntEnable().
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -1576,7 +1577,7 @@ UARTIntClear(unsigned long ulBase, unsigned long ulIntFlags)
//! \param ulDMAFlags is a bit mask of the DMA features to enable.
//!
//! The specified UART DMA features are enabled. The UART can be
-//! configured to use DMA for transmit or receive, and to disable
+//! configured to use DMA for transmit or receive and to disable
//! receive if an error occurs. The \e ulDMAFlags parameter is the
//! logical OR of any of the following values:
//!
@@ -1645,8 +1646,8 @@ UARTDMADisable(unsigned long ulBase, unsigned long ulDMAFlags)
//! This function returns the current state of each of the 4 receiver error
//! sources. The returned errors are equivalent to the four error bits
//! returned via the previous call to UARTCharGet() or UARTCharGetNonBlocking()
-//! with the exception that the overrun error is set immediately the overrun
-//! occurs rather than when a character is next read.
+//! with the exception that the overrun error is set immediately when the
+//! overrun occurs rather than when a character is next read.
//!
//! \return Returns a logical OR combination of the receiver error flags,
//! \b UART_RXERROR_FRAMING, \b UART_RXERROR_PARITY, \b UART_RXERROR_BREAK
@@ -1690,7 +1691,7 @@ UARTRxErrorClear(unsigned long ulBase)
ASSERT(UARTBaseValid(ulBase));
//
- // Any write to the Error Clear Register will clear all bits which are
+ // Any write to the Error Clear Register clears all bits which are
// currently set.
//
HWREG(ulBase + UART_O_ECR) = 0;
@@ -1707,13 +1708,13 @@ UARTRxErrorClear(unsigned long ulBase)
//! The possible clock source are the system clock (\b UART_CLOCK_SYSTEM) or
//! the precision internal oscillator (\b UART_CLOCK_PIOSC).
//!
-//! Changing the baud clock source will change the baud rate generated by the
+//! Changing the baud clock source changes the baud rate generated by the
//! UART. Therefore, the baud rate should be reconfigured after any change to
//! the baud clock source.
//!
//! \note The ability to specify the UART baud clock source varies with the
-//! Stellaris part and UART in use. Please consult the datasheet for the part
-//! you are using to determine whether this support is available.
+//! Stellaris part in use. Please consult the datasheet for the part you are
+//! using to determine whether this support is available.
//!
//! \return None.
//
@@ -1744,8 +1745,8 @@ UARTClockSourceSet(unsigned long ulBase, unsigned long ulSource)
//! the precision internal oscillator (\b UART_CLOCK_PIOSC).
//!
//! \note The ability to specify the UART baud clock source varies with the
-//! Stellaris part and UART in use. Please consult the datasheet for the part
-//! you are using to determine whether this support is available.
+//! Stellaris part in use. Please consult the datasheet for the part you are
+//! using to determine whether this support is available.
//!
//! \return None.
//
@@ -1772,9 +1773,9 @@ UARTClockSourceGet(unsigned long ulBase)
//!
//! This function enables the 9-bit operational mode of the UART.
//!
-//! \note The availability of 9-bit mode varies with the Stellaris part and
-//! UART in use. Please consult the datasheet for the part you are using to
-//! determine whether this support is available.
+//! \note The availability of 9-bit mode varies with the Stellaris part in use.
+//! Please consult the datasheet for the part you are using to determine
+//! whether this support is available.
//!
//! \return None.
//
@@ -1801,9 +1802,9 @@ UART9BitEnable(unsigned long ulBase)
//!
//! This function disables the 9-bit operational mode of the UART.
//!
-//! \note The availability of 9-bit mode varies with the Stellaris part and
-//! UART in use. Please consult the datasheet for the part you are using to
-//! determine whether this support is available.
+//! \note The availability of 9-bit mode varies with the Stellaris part in use.
+//! Please consult the datasheet for the part you are using to determine
+//! whether this support is available.
//!
//! \return None.
//
@@ -1830,15 +1831,15 @@ UART9BitDisable(unsigned long ulBase)
//! \param ucAddr is the device address.
//! \param ucMask is the device address mask.
//!
-//! This function sets the device address, or range of device addresses, that
-//! respond to requests on the 9-bit UART port. The received address is masked
-//! with the mask and then compared against the given address, allowing either
-//! a single address (if \b ucMask is 0xff) or a set of addresses to be
+//! This function configures the device address or range of device addresses
+//! that respond to requests on the 9-bit UART port. The received address is
+//! masked with the mask and then compared against the given address, allowing
+//! either a single address (if \b ucMask is 0xff) or a set of addresses to be
//! matched.
//!
-//! \note The availability of 9-bit mode varies with the Stellaris part and
-//! UART in use. Please consult the datasheet for the part you are using to
-//! determine whether this support is available.
+//! \note The availability of 9-bit mode varies with the Stellaris part in use.
+//! Please consult the datasheet for the part you are using to determine
+//! whether this support is available.
//!
//! \return None.
//
@@ -1875,9 +1876,9 @@ UART9BitAddrSet(unsigned long ulBase, unsigned char ucAddr,
//! UARTCharGet(), and UARTCharGetNonBlocking()) are used to send and receive
//! data characters in 9-bit mode.
//!
-//! \note The availability of 9-bit mode varies with the Stellaris part and
-//! UART in use. Please consult the datasheet for the part you are using to
-//! determine whether this support is available.
+//! \note The availability of 9-bit mode varies with the Stellaris part in use.
+//! Please consult the datasheet for the part you are using to determine
+//! whether this support is available.
//!
//! \return None.
//
diff --git a/bsp/lm4f232/Libraries/driverlib/uart.h b/bsp/lm4f232/Libraries/driverlib/uart.h
index 13a166ed1a..7a91483769 100644
--- a/bsp/lm4f232/Libraries/driverlib/uart.h
+++ b/bsp/lm4f232/Libraries/driverlib/uart.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/udma.c b/bsp/lm4f232/Libraries/driverlib/udma.c
index 7e699ce509..4124b52312 100644
--- a/bsp/lm4f232/Libraries/driverlib/udma.c
+++ b/bsp/lm4f232/Libraries/driverlib/udma.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -60,7 +60,7 @@ uDMAEnable(void)
//! Disables the uDMA controller for use.
//!
//! This function disables the uDMA controller. Once disabled, the uDMA
-//! controller will not operate until re-enabled with uDMAEnable().
+//! controller cannot operate until re-enabled with uDMAEnable().
//!
//! \return None.
//
@@ -98,8 +98,9 @@ uDMAErrorStatusGet(void)
//
//! Clears the uDMA error interrupt.
//!
-//! This function clears a pending uDMA error interrupt. It should be called
-//! from within the uDMA error interrupt handler to clear the interrupt.
+//! This function clears a pending uDMA error interrupt. This function should
+//! be called from within the uDMA error interrupt handler to clear the
+//! interrupt.
//!
//! \return None.
//
@@ -151,7 +152,7 @@ uDMAChannelEnable(unsigned long ulChannelNum)
//! \param ulChannelNum is the channel number to disable.
//!
//! This function disables a specific uDMA channel. Once disabled, a channel
-//! will not respond to uDMA transfer requests until re-enabled via
+//! cannot respond to uDMA transfer requests until re-enabled via
//! uDMAChannelEnable().
//!
//! \return None.
@@ -178,8 +179,8 @@ uDMAChannelDisable(unsigned long ulChannelNum)
//! \param ulChannelNum is the channel number to check.
//!
//! This function checks to see if a specific uDMA channel is enabled. This
-//! can be used to check the status of a transfer, since the channel will
-//! be automatically disabled at the end of a transfer.
+//! function can be used to check the status of a transfer, as the channel is
+//! automatically disabled at the end of a transfer.
//!
//! \return Returns \b true if the channel is enabled, \b false if disabled.
//
@@ -193,7 +194,7 @@ uDMAChannelIsEnabled(unsigned long ulChannelNum)
ASSERT((ulChannelNum & 0xffff) < 32);
//
- // AND the specified channel bit with the enable register, and return the
+ // AND the specified channel bit with the enable register and return the
// result.
//
return((HWREG(UDMA_ENASET) & (1 << (ulChannelNum & 0x1f))) ? true : false);
@@ -203,16 +204,16 @@ uDMAChannelIsEnabled(unsigned long ulChannelNum)
//
//! Sets the base address for the channel control table.
//!
-//! \param pControlTable is a pointer to the 1024 byte aligned base address
+//! \param pControlTable is a pointer to the 1024-byte-aligned base address
//! of the uDMA channel control table.
//!
-//! This function sets the base address of the channel control table. This
-//! table resides in system memory and holds control information for each uDMA
-//! channel. The table must be aligned on a 1024 byte boundary. The base
-//! address must be set before any of the channel functions can be used.
+//! This function configures the base address of the channel control table.
+//! This table resides in system memory and holds control information for each
+//! uDMA channel. The table must be aligned on a 1024-byte boundary. The base
+//! address must be configured before any of the channel functions can be used.
//!
//! The size of the channel control table depends on the number of uDMA
-//! channels, and which transfer modes are used. Refer to the introductory
+//! channels and the transfer modes that are used. Refer to the introductory
//! text and the microcontroller datasheet for more information about the
//! channel control table.
//!
@@ -250,7 +251,7 @@ void *
uDMAControlBaseGet(void)
{
//
- // Read the current value of the control base register, and return it to
+ // Read the current value of the control base register and return it to
// the caller.
//
return((void *)HWREG(UDMA_CTLBASE));
@@ -271,7 +272,7 @@ void *
uDMAControlAlternateBaseGet(void)
{
//
- // Read the current value of the control base register, and return it to
+ // Read the current value of the control base register and return it to
// the caller.
//
return((void *)HWREG(UDMA_ALTBASE));
@@ -285,9 +286,9 @@ uDMAControlAlternateBaseGet(void)
//! transfer.
//!
//! This function allows software to request a uDMA channel to begin a
-//! transfer. This could be used for performing a memory to memory transfer,
-//! or if for some reason a transfer needs to be initiated by software instead
-//! of the peripheral associated with that channel.
+//! transfer. This function could be used for performing a memory-to-memory
+//! transfer or if for some reason, a transfer needs to be initiated by software
+//! instead of the peripheral associated with that channel.
//!
//! \note If the channel is \b UDMA_CHANNEL_SW and interrupts are used, then
//! the completion is signaled on the uDMA dedicated interrupt. If a
@@ -322,7 +323,7 @@ uDMAChannelRequest(unsigned long ulChannelNum)
//!
//! The \e ulAttr parameter is the logical OR of any of the following:
//!
-//! - \b UDMA_ATTR_USEBURST is used to restrict transfers to use only a burst
+//! - \b UDMA_ATTR_USEBURST is used to restrict transfers to use only burst
//! mode.
//! - \b UDMA_ATTR_ALTSELECT is used to select the alternate control structure
//! for this channel (it is very unlikely that this flag should be used).
@@ -395,7 +396,7 @@ uDMAChannelAttributeEnable(unsigned long ulChannelNum, unsigned long ulAttr)
//!
//! The \e ulAttr parameter is the logical OR of any of the following:
//!
-//! - \b UDMA_ATTR_USEBURST is used to restrict transfers to use only a burst
+//! - \b UDMA_ATTR_USEBURST is used to restrict transfers to use only burst
//! mode.
//! - \b UDMA_ATTR_ALTSELECT is used to select the alternate control structure
//! for this channel.
@@ -468,7 +469,7 @@ uDMAChannelAttributeDisable(unsigned long ulChannelNum, unsigned long ulAttr)
//!
//! \return Returns the logical OR of the attributes of the uDMA channel, which
//! can be any of the following:
-//! - \b UDMA_ATTR_USEBURST is used to restrict transfers to use only a burst
+//! - \b UDMA_ATTR_USEBURST is used to restrict transfers to use only burst
//! mode.
//! - \b UDMA_ATTR_ALTSELECT is used to select the alternate control structure
//! for this channel.
@@ -542,7 +543,7 @@ uDMAChannelAttributeGet(unsigned long ulChannelNum)
//! parameters for the channel.
//!
//! This function is used to set control parameters for a uDMA transfer. These
-//! are typically parameters that are not changed often.
+//! parameters are typically not changed often.
//!
//! The \e ulChannelStructIndex parameter should be the logical OR of the
//! channel number with one of \b UDMA_PRI_SELECT or \b UDMA_ALT_SELECT to
@@ -630,8 +631,8 @@ uDMAChannelControlSet(unsigned long ulChannelStructIndex,
//! \param pvDstAddr is the destination address for the transfer.
//! \param ulTransferSize is the number of data items to transfer.
//!
-//! This function is used to set the parameters for a uDMA transfer. These are
-//! typically parameters that are changed often. The function
+//! This function is used to configure the parameters for a uDMA transfer.
+//! These parameters are typically changed often. The function
//! uDMAChannelControlSet() MUST be called at least once for this channel prior
//! to calling this function.
//!
@@ -644,11 +645,11 @@ uDMAChannelControlSet(unsigned long ulChannelStructIndex,
//! - \b UDMA_MODE_STOP stops the uDMA transfer. The controller sets the mode
//! to this value at the end of a transfer.
//! - \b UDMA_MODE_BASIC to perform a basic transfer based on request.
-//! - \b UDMA_MODE_AUTO to perform a transfer that will always complete once
-//! started even if request is removed.
+//! - \b UDMA_MODE_AUTO to perform a transfer that always completes once
+//! started even if the request is removed.
//! - \b UDMA_MODE_PINGPONG to set up a transfer that switches between the
-//! primary and alternate control structures for the channel. This allows
-//! use of ping-pong buffering for uDMA transfers.
+//! primary and alternate control structures for the channel. This mode
+//! allows use of ping-pong buffering for uDMA transfers.
//! - \b UDMA_MODE_MEM_SCATTER_GATHER to set up a memory scatter-gather
//! transfer.
//! - \b UDMA_MODE_PER_SCATTER_GATHER to set up a peripheral scatter-gather
@@ -656,24 +657,24 @@ uDMAChannelControlSet(unsigned long ulChannelStructIndex,
//!
//! The \e pvSrcAddr and \e pvDstAddr parameters are pointers to the first
//! location of the data to be transferred. These addresses should be aligned
-//! according to the item size. The compiler will take care of this if the
-//! pointers are pointing to storage of the appropriate data type.
+//! according to the item size. The compiler takes care of this alignment if
+//! the pointers are pointing to storage of the appropriate data type.
//!
//! The \e ulTransferSize parameter is the number of data items, not the number
//! of bytes.
//!
-//! The two scatter/gather modes, memory and peripheral, are actually different
+//! The two scatter-gather modes, memory and peripheral, are actually different
//! depending on whether the primary or alternate control structure is
-//! selected. This function will look for the \b UDMA_PRI_SELECT and
-//! \b UDMA_ALT_SELECT flag along with the channel number and will set the
-//! scatter/gather mode as appropriate for the primary or alternate control
+//! selected. This function looks for the \b UDMA_PRI_SELECT and
+//! \b UDMA_ALT_SELECT flag along with the channel number and sets the
+//! scatter-gather mode as appropriate for the primary or alternate control
//! structure.
//!
//! The channel must also be enabled using uDMAChannelEnable() after calling
-//! this function. The transfer will not begin until the channel has been set
-//! up and enabled. Note that the channel is automatically disabled after the
-//! transfer is completed, meaning that uDMAChannelEnable() must be called
-//! again after setting up the next transfer.
+//! this function. The transfer does not begin until the channel has been
+//! configured and enabled. Note that the channel is automatically disabled
+//! after the transfer is completed, meaning that uDMAChannelEnable() must be
+//! called again after setting up the next transfer.
//!
//! \note Great care must be taken to not modify a channel control structure
//! that is in use or else the results are unpredictable, including the
@@ -682,7 +683,7 @@ uDMAChannelControlSet(unsigned long ulChannelStructIndex,
//! disabled, or the uDMAChannelModeGet() returns \b UDMA_MODE_STOP. For
//! PINGPONG or one of the SCATTER_GATHER modes, it is safe to modify the
//! primary or alternate control structure only when the other is being used.
-//! The uDMAChannelModeGet() function will return \b UDMA_MODE_STOP when a
+//! The uDMAChannelModeGet() function returns \b UDMA_MODE_STOP when a
//! channel control structure is inactive and safe to modify.
//!
//! \return None.
@@ -782,7 +783,7 @@ uDMAChannelTransferSet(unsigned long ulChannelStructIndex,
{
//
// There is a special case if this is setting up a scatter-gather
- // transfer. The destination pointer needs to point to the end of
+ // transfer. The destination pointer must point to the end of
// the alternate structure for this channel instead of calculating
// the end of the buffer in the normal way.
//
@@ -827,12 +828,12 @@ uDMAChannelTransferSet(unsigned long ulChannelStructIndex,
//! transfer (else it is memory scatter-gather transfer)
//!
//! This function is used to configure a channel for scatter-gather mode.
-//! The caller must have already set up a task list, and pass a pointer to
+//! The caller must have already set up a task list and must pass a pointer to
//! the start of the task list as the \e pvTaskList parameter. The
//! \e ulTaskCount parameter is the count of tasks in the task list, not the
//! size of the task list. The flag \e bIsPeriphSG should be used to indicate
-//! if the scatter-gather should be configured for a peripheral or memory
-//! scatter-gather operation.
+//! if scatter-gather should be configured for peripheral or memory
+//! operation.
//!
//! \sa uDMATaskStructEntry
//!
@@ -873,15 +874,15 @@ uDMAChannelScatterGatherSet(unsigned long ulChannelNum, unsigned ulTaskCount,
pTaskTable = (tDMAControlTable *)pvTaskList;
//
- // Compute the ending address for the source pointer. This is the last
- // element of the last task in the task table
+ // Compute the ending address for the source pointer. This address is the
+ // last element of the last task in the task table
//
pControlTable[ulChannelNum].pvSrcEndAddr =
&pTaskTable[ulTaskCount - 1].ulSpare;
//
- // Compute the ending address for the destination pointer. This is the end
- // of the alternate structure for this channel.
+ // Compute the ending address for the destination pointer. This address
+ // is the end of the alternate structure for this channel.
//
pControlTable[ulChannelNum].pvDstEndAddr =
&pControlTable[ulChannelNum | UDMA_ALT_SELECT].ulSpare;
@@ -977,9 +978,9 @@ uDMAChannelSizeGet(unsigned long ulChannelStructIndex)
//! \param ulChannelStructIndex is the logical OR of the uDMA channel number
//! with either \b UDMA_PRI_SELECT or \b UDMA_ALT_SELECT.
//!
-//! This function is used to get the transfer mode for the uDMA channel. It
-//! can be used to query the status of a transfer on a channel. When the
-//! transfer is complete the mode is \b UDMA_MODE_STOP.
+//! This function is used to get the transfer mode for the uDMA channel and
+//! to query the status of a transfer on a channel. When the transfer is
+//! complete the mode is \b UDMA_MODE_STOP.
//!
//! \return Returns the transfer mode of the specified channel and control
//! structure, which is one of the following values: \b UDMA_MODE_STOP,
@@ -1036,7 +1037,7 @@ uDMAChannelModeGet(unsigned long ulChannelStructIndex)
//
//! Selects the secondary peripheral for a set of uDMA channels.
//!
-//! \param ulSecPeriphs is the logical or of the uDMA channels for which to use
+//! \param ulSecPeriphs is the logical OR of the uDMA channels for which to use
//! the secondary peripheral, instead of the default peripheral.
//!
//! This function is used to select the secondary peripheral assignment for a
@@ -1095,7 +1096,7 @@ uDMAChannelSelectSecondary(unsigned long ulSecPeriphs)
//
//! Selects the default peripheral for a set of uDMA channels.
//!
-//! \param ulDefPeriphs is the logical or of the uDMA channels for which to use
+//! \param ulDefPeriphs is the logical OR of the uDMA channels for which to use
//! the default peripheral, instead of the secondary peripheral.
//!
//! This function is used to select the default peripheral assignment for a set
@@ -1156,9 +1157,9 @@ uDMAChannelSelectDefault(unsigned long ulDefPeriphs)
//! \param pfnHandler is a pointer to the function to be called when the
//! interrupt is activated.
//!
-//! This sets and enables the handler to be called when the uDMA controller
-//! generates an interrupt. The \e ulIntChannel parameter should be one of the
-//! following:
+//! This function registers and enables the handler to be called when the uDMA
+//! controller generates an interrupt. The \e ulIntChannel parameter should be
+//! one of the following:
//!
//! - \b UDMA_INT_SW to register an interrupt handler to process interrupts
//! from the uDMA software channel (UDMA_CHANNEL_SW)
@@ -1168,8 +1169,8 @@ uDMAChannelSelectDefault(unsigned long ulDefPeriphs)
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
//!
-//! \note The interrupt handler for uDMA is for transfer completion when the
-//! channel UDMA_CHANNEL_SW is used, and for error interrupts. The
+//! \note The interrupt handler for the uDMA is for transfer completion when
+//! the channel UDMA_CHANNEL_SW is used and for error interrupts. The
//! interrupts for each peripheral channel are handled through the individual
//! peripheral interrupt handlers.
//!
@@ -1202,7 +1203,7 @@ uDMAIntRegister(unsigned long ulIntChannel, void (*pfnHandler)(void))
//!
//! \param ulIntChannel identifies which uDMA interrupt to unregister.
//!
-//! This function will disable and clear the handler to be called for the
+//! This function disables and unregisters the handler to be called for the
//! specified uDMA interrupt. The \e ulIntChannel parameter should be one of
//! \b UDMA_INT_SW or \b UDMA_INT_ERR as documented for the function
//! uDMAIntRegister().
@@ -1242,7 +1243,7 @@ uDMAIntUnregister(unsigned long ulIntChannel)
//! your part.
//!
//! \return Returns a 32-bit mask which indicates requesting uDMA channels.
-//! There is a bit for each channel, and a 1 in a bit indicates that channel
+//! There is a bit for each channel and a 1 indicates that the channel
//! is requesting an interrupt. Multiple bits can be set.
//
//*****************************************************************************
@@ -1269,10 +1270,10 @@ uDMAIntStatus(void)
//!
//! \param ulChanMask is a 32-bit mask with one bit for each uDMA channel.
//!
-//! Clears bits in the uDMA interrupt status register according to which bits
-//! are set in \e ulChanMask. There is one bit for each channel. If a a bit is
-//! set in \e ulChanMask, then that corresponding channel's interrupt status is
-//! cleared (if it was set).
+//! This function clears bits in the uDMA interrupt status register according
+//! to which bits are set in \e ulChanMask. There is one bit for each channel.
+//! If a a bit is set in \e ulChanMask, then that corresponding channel's
+//! interrupt status is cleared (if it was set).
//!
//! \note This function is only available on devices that have the DMA Channel
//! Interrupt Status Register (DMACHIS). Please consult the data sheet for
@@ -1303,7 +1304,7 @@ uDMAIntClear(unsigned long ulChanMask)
//! Assigns a peripheral mapping for a uDMA channel.
//!
//! \param ulMapping is a macro specifying the peripheral assignment for
-//! a channel
+//! a channel.
//!
//! This function assigns a peripheral mapping to a uDMA channel. It is
//! used to select which peripheral is used for a uDMA channel. The parameter
diff --git a/bsp/lm4f232/Libraries/driverlib/udma.h b/bsp/lm4f232/Libraries/driverlib/udma.h
index 71c3cf465c..a217ae5048 100644
--- a/bsp/lm4f232/Libraries/driverlib/udma.h
+++ b/bsp/lm4f232/Libraries/driverlib/udma.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/usb.c b/bsp/lm4f232/Libraries/driverlib/usb.c
index 2df9a82057..654948d014 100644
--- a/bsp/lm4f232/Libraries/driverlib/usb.c
+++ b/bsp/lm4f232/Libraries/driverlib/usb.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -85,7 +85,7 @@
// \param ucValue is the value to write to the register.
//
// This function is used to access the indexed registers for each endpoint.
-// The only registers that are indexed are the FIFO configuration registers
+// The only registers that are indexed are the FIFO configuration registers,
// which are not used after configuration.
//
// \return None.
@@ -150,7 +150,7 @@ USBIndexWrite(unsigned long ulBase, unsigned long ulEndpoint,
//
// This function is used internally to access the indexed registers for each
// endpoint. The only registers that are indexed are the FIFO configuration
-// registers which are not used after configuration.
+// registers, which are not used after configuration.
//
// \return The value in the register requested.
//
@@ -215,7 +215,7 @@ USBIndexRead(unsigned long ulBase, unsigned long ulEndpoint,
//!
//! \param ulBase specifies the USB module base address.
//!
-//! When used in host mode, this function will put the USB bus in the suspended
+//! When used in host mode, this function puts the USB bus in the suspended
//! state.
//!
//! \note This function should only be called in host mode.
@@ -246,7 +246,7 @@ USBHostSuspend(unsigned long ulBase)
//! bus.
//!
//! When this function is called with the \e bStart parameter set to \b true,
-//! this function will cause the start of a reset condition on the USB bus.
+//! this function causes the start of a reset condition on the USB bus.
//! The caller should then delay at least 20ms before calling this function
//! again with the \e bStart parameter set to \b false.
//!
@@ -284,17 +284,17 @@ USBHostReset(unsigned long ulBase, tBoolean bStart)
//! \param bStart specifies if the USB controller is entering or leaving the
//! resume signaling state.
//!
-//! When in device mode this function will bring the USB controller out of the
+//! When in device mode, this function brings the USB controller out of the
//! suspend state. This call should first be made with the \e bStart parameter
//! set to \b true to start resume signaling. The device application should
//! then delay at least 10ms but not more than 15ms before calling this
//! function with the \e bStart parameter set to \b false.
//!
-//! When in host mode this function will signal devices to leave the suspend
+//! When in host mode, this function signals devices to leave the suspend
//! state. This call should first be made with the \e bStart parameter set to
//! \b true to start resume signaling. The host application should then delay
//! at least 20ms before calling this function with the \e bStart parameter set
-//! to \b false. This will cause the controller to complete the resume
+//! to \b false. This action causes the controller to complete the resume
//! signaling on the USB bus.
//!
//! \return None.
@@ -327,7 +327,7 @@ USBHostResume(unsigned long ulBase, tBoolean bStart)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function will return the current speed of the USB bus.
+//! This function returns the current speed of the USB bus.
//!
//! \note This function should only be called in host mode.
//!
@@ -371,16 +371,15 @@ USBHostSpeedGet(unsigned long ulBase)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function will read the source of the interrupt for the USB controller.
+//! This function reads the source of the interrupt for the USB controller.
//! There are three groups of interrupt sources, IN Endpoints, OUT Endpoints,
-//! and general status changes. This call will return the current status for
+//! and general status changes. This call returns the current status for
//! all of these interrupts. The bit values returned should be compared
//! against the \b USB_HOST_IN, \b USB_HOST_OUT, \b USB_HOST_EP0,
//! \b USB_DEV_IN, \b USB_DEV_OUT, and \b USB_DEV_EP0 values.
//!
-//! \note This call will clear the source of all of the general status
-//! interrupts.
-//!
+//! \note This call clears the source of all of the general status interrupts.
+//!
//! \note WARNING: This API cannot be used on endpoint numbers greater than
//! endpoint 3 so USBIntStatusControl() or USBIntStatusEndpoint() should be
//! used instead.
@@ -436,7 +435,7 @@ USBIntStatus(unsigned long ulBase)
if(HWREG(USB0_BASE + USB_O_IDVISC) & USB_IDVRIS_ID)
{
//
- // Indicate a id detection was detected.
+ // Indicate an id detection was detected.
//
ulStatus |= USB_INT_MODE_DETECT;
@@ -460,12 +459,12 @@ USBIntStatus(unsigned long ulBase)
//! \param ulBase specifies the USB module base address.
//! \param ulFlags specifies which interrupts to disable.
//!
-//! This function will disable the USB controller from generating the
+//! This function disables the USB controller from generating the
//! interrupts indicated by the \e ulFlags parameter. There are three groups
//! of interrupt sources, IN Endpoints, OUT Endpoints, and general status
//! changes, specified by \b USB_INT_HOST_IN, \b USB_INT_HOST_OUT,
//! \b USB_INT_DEV_IN, \b USB_INT_DEV_OUT, and \b USB_INT_STATUS. If
-//! \b USB_INT_ALL is specified then all interrupts are disabled.
+//! \b USB_INT_ALL is specified, then all interrupts are disabled.
//!
//! \note WARNING: This API cannot be used on endpoint numbers greater than
//! endpoint 3 so USBIntDisableControl() or USBIntDisableEndpoint() should be
@@ -485,7 +484,7 @@ USBIntDisable(unsigned long ulBase, unsigned long ulFlags)
ASSERT((ulFlags & ~(USB_INT_ALL)) == 0);
//
- // If any transmit interrupts were disabled then write the transmit
+ // If any transmit interrupts were disabled, then write the transmit
// interrupt settings out to the hardware.
//
if(ulFlags & (USB_INT_HOST_OUT | USB_INT_DEV_IN | USB_INT_EP0))
@@ -495,8 +494,8 @@ USBIntDisable(unsigned long ulBase, unsigned long ulFlags)
}
//
- // If any receive interrupts were disabled then write the receive interrupt
- // settings out to the hardware.
+ // If any receive interrupts were disabled, then write the receive
+ // interrupt settings out to the hardware.
//
if(ulFlags & (USB_INT_HOST_IN | USB_INT_DEV_OUT))
{
@@ -506,8 +505,8 @@ USBIntDisable(unsigned long ulBase, unsigned long ulFlags)
}
//
- // If any general interrupts were disabled then write the general interrupt
- // settings out to the hardware.
+ // If any general interrupts were disabled, then write the general
+ // interrupt settings out to the hardware.
//
if(ulFlags & USB_INT_STATUS)
{
@@ -540,7 +539,7 @@ USBIntDisable(unsigned long ulBase, unsigned long ulFlags)
//! \param ulBase specifies the USB module base address.
//! \param ulFlags specifies which interrupts to enable.
//!
-//! This function will enable the USB controller's ability to generate the
+//! This function enables the USB controller's ability to generate the
//! interrupts indicated by the \e ulFlags parameter. There are three
//! groups of interrupt sources, IN Endpoints, OUT Endpoints, and
//! general status changes, specified by \b USB_INT_HOST_IN,
@@ -550,9 +549,9 @@ USBIntDisable(unsigned long ulBase, unsigned long ulFlags)
//!
//! \note A call must be made to enable the interrupt in the main interrupt
//! controller to receive interrupts. The USBIntRegister() API performs this
-//! controller level interrupt enable. However if static interrupt handlers
-//! are used then then a call to IntEnable() must be made in order to allow any
-//! USB interrupts to occur.
+//! controller-level interrupt enable. However if static interrupt handlers
+//! are used, then then a call to IntEnable() must be made in order to allow
+//! any USB interrupts to occur.
//!
//! \note WARNING: This API cannot be used on endpoint numbers greater than
//! endpoint 3 so USBIntEnableControl() or USBIntEnableEndpoint() should be
@@ -572,7 +571,7 @@ USBIntEnable(unsigned long ulBase, unsigned long ulFlags)
ASSERT((ulFlags & (~USB_INT_ALL)) == 0);
//
- // If any transmit interrupts were enabled then write the transmit
+ // If any transmit interrupts were enabled, then write the transmit
// interrupt settings out to the hardware.
//
if(ulFlags & (USB_INT_HOST_OUT | USB_INT_DEV_IN | USB_INT_EP0))
@@ -582,8 +581,8 @@ USBIntEnable(unsigned long ulBase, unsigned long ulFlags)
}
//
- // If any receive interrupts were enabled then write the receive interrupt
- // settings out to the hardware.
+ // If any receive interrupts were enabled, then write the receive
+ // interrupt settings out to the hardware.
//
if(ulFlags & (USB_INT_HOST_IN | USB_INT_DEV_OUT))
{
@@ -593,8 +592,8 @@ USBIntEnable(unsigned long ulBase, unsigned long ulFlags)
}
//
- // If any general interrupts were enabled then write the general interrupt
- // settings out to the hardware.
+ // If any general interrupts were enabled, then write the general
+ // interrupt settings out to the hardware.
//
if(ulFlags & USB_INT_STATUS)
{
@@ -627,7 +626,7 @@ USBIntEnable(unsigned long ulBase, unsigned long ulFlags)
//! \param ulBase specifies the USB module base address.
//! \param ulFlags specifies which control interrupts to disable.
//!
-//! This function will disable the control interrupts for the USB controller
+//! This function disables the control interrupts for the USB controller
//! specified by the \e ulBase parameter. The \e ulFlags parameter specifies
//! which control interrupts to disable. The flags passed in the \e ulFlags
//! parameters should be the definitions that start with \b USB_INTCTRL_* and
@@ -678,7 +677,7 @@ USBIntDisableControl(unsigned long ulBase, unsigned long ulFlags)
//! \param ulBase specifies the USB module base address.
//! \param ulFlags specifies which control interrupts to enable.
//!
-//! This function will enable the control interrupts for the USB controller
+//! This function enables the control interrupts for the USB controller
//! specified by the \e ulBase parameter. The \e ulFlags parameter specifies
//! which control interrupts to enable. The flags passed in the \e ulFlags
//! parameters should be the definitions that start with \b USB_INTCTRL_* and
@@ -697,8 +696,8 @@ USBIntEnableControl(unsigned long ulBase, unsigned long ulFlags)
ASSERT((ulFlags & (~USB_INTCTRL_ALL)) == 0);
//
- // If any general interrupts were enabled then write the general interrupt
- // settings out to the hardware.
+ // If any general interrupts were enabled, then write the general
+ // interrupt settings out to the hardware.
//
if(ulFlags & USB_INTCTRL_STATUS)
{
@@ -728,17 +727,17 @@ USBIntEnableControl(unsigned long ulBase, unsigned long ulFlags)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function will read control interrupt status for a USB controller.
-//! This call will return the current status for control interrupts only, the
-//! endpoint interrupt status is retrieved by calling USBIntStatusEndpoint().
-//! The bit values returned should be compared against the \b USB_INTCTRL_*
+//! This function reads control interrupt status for a USB controller. This
+//! call returns the current status for control interrupts only, the endpoint
+//! interrupt status is retrieved by calling USBIntStatusEndpoint(). The bit
+//! values returned should be compared against the \b USB_INTCTRL_*
//! values.
//!
//! The following are the meanings of all \b USB_INCTRL_ flags and the modes
//! for which they are valid. These values apply to any calls to
//! USBIntStatusControl(), USBIntEnableControl(), and USBIntDisableControl().
//! Some of these flags are only valid in the following modes as indicated in
-//! the parenthesis: Host, Device, and OTG.
+//! the parentheses: Host, Device, and OTG.
//!
//! - \b USB_INTCTRL_ALL - A full mask of all control interrupt sources.
//! - \b USB_INTCTRL_VBUS_ERR - A VBUS error has occurred (Host Only).
@@ -758,9 +757,8 @@ USBIntEnableControl(unsigned long ulBase, unsigned long ulFlags)
//! (OTG Only)
//! - \b USB_INTCTRL_POWER_FAULT - Power Fault detected. (Host Only)
//!
-//! \note This call will clear the source of all of the control status
-//! interrupts.
-//!
+//! \note This call clears the source of all of the control status interrupts.
+//!
//! \return Returns the status of the control interrupts for a USB controller.
//
//*****************************************************************************
@@ -799,7 +797,7 @@ USBIntStatusControl(unsigned long ulBase)
if(HWREG(USB0_BASE + USB_O_IDVISC) & USB_IDVRIS_ID)
{
//
- // Indicate a id detection was detected.
+ // Indicate an id detection.
//
ulStatus |= USB_INTCTRL_MODE_DETECT;
@@ -822,9 +820,9 @@ USBIntStatusControl(unsigned long ulBase)
//! \param ulBase specifies the USB module base address.
//! \param ulFlags specifies which endpoint interrupts to disable.
//!
-//! This function will disable endpoint interrupts for the USB controller
-//! specified by the \e ulBase parameter. The \e ulFlags parameter specifies
-//! which endpoint interrupts to disable. The flags passed in the \e ulFlags
+//! This function disables endpoint interrupts for the USB controller specified
+//! by the \e ulBase parameter. The \e ulFlags parameter specifies which
+//! endpoint interrupts to disable. The flags passed in the \e ulFlags
//! parameters should be the definitions that start with \b USB_INTEP_* and not
//! any other \b USB_INT flags.
//!
@@ -840,14 +838,14 @@ USBIntDisableEndpoint(unsigned long ulBase, unsigned long ulFlags)
ASSERT(ulBase == USB0_BASE);
//
- // If any transmit interrupts were disabled then write the transmit
+ // If any transmit interrupts were disabled, then write the transmit
// interrupt settings out to the hardware.
//
HWREGH(ulBase + USB_O_TXIE) &=
~(ulFlags & (USB_INTEP_HOST_OUT | USB_INTEP_DEV_IN | USB_INTEP_0));
//
- // If any receive interrupts were disabled then write the receive interrupt
+ // If any receive interrupts were disabled, then write the receive interrupt
// settings out to the hardware.
//
HWREGH(ulBase + USB_O_RXIE) &=
@@ -862,9 +860,9 @@ USBIntDisableEndpoint(unsigned long ulBase, unsigned long ulFlags)
//! \param ulBase specifies the USB module base address.
//! \param ulFlags specifies which endpoint interrupts to enable.
//!
-//! This function will enable endpoint interrupts for the USB controller
-//! specified by the \e ulBase parameter. The \e ulFlags parameter specifies
-//! which endpoint interrupts to enable. The flags passed in the \e ulFlags
+//! This function enables endpoint interrupts for the USB controller specified
+//! by the \e ulBase parameter. The \e ulFlags parameter specifies which
+//! endpoint interrupts to enable. The flags passed in the \e ulFlags
//! parameters should be the definitions that start with \b USB_INTEP_* and not
//! any other \b USB_INT flags.
//!
@@ -899,15 +897,15 @@ USBIntEnableEndpoint(unsigned long ulBase, unsigned long ulFlags)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function will read endpoint interrupt status for a USB controller.
-//! This call will return the current status for endpoint interrupts only, the
-//! control interrupt status is retrieved by calling USBIntStatusControl().
-//! The bit values returned should be compared against the \b USB_INTEP_*
-//! values. These are grouped into classes for \b USB_INTEP_HOST_* and
+//! This function reads endpoint interrupt status for a USB controller. This
+//! call returns the current status for endpoint interrupts only, the control
+//! interrupt status is retrieved by calling USBIntStatusControl(). The bit
+//! values returned should be compared against the \b USB_INTEP_* values.
+//! These values are grouped into classes for \b USB_INTEP_HOST_* and
//! \b USB_INTEP_DEV_* values to handle both host and device modes with all
//! endpoints.
//!
-//! \note This call will clear the source of all of the endpoint interrupts.
+//! \note This call clears the source of all of the endpoint interrupts.
//!
//! \return Returns the status of the endpoint interrupts for a USB controller.
//
@@ -943,11 +941,11 @@ USBIntStatusEndpoint(unsigned long ulBase)
//! \param pfnHandler is a pointer to the function to be called when a USB
//! interrupt occurs.
//!
-//! This sets the handler to be called when a USB interrupt occurs. This will
-//! also enable the global USB interrupt in the interrupt controller. The
-//! specific desired USB interrupts must be enabled via a separate call to
+//! This function registers the handler to be called when a USB interrupt
+//! occurs and enables the global USB interrupt in the interrupt controller.
+//! The specific desired USB interrupts must be enabled via a separate call to
//! USBIntEnable(). It is the interrupt handler's responsibility to clear the
-//! interrupt sources via a calls to USBIntStatusControl() and
+//! interrupt sources via calls to USBIntStatusControl() and
//! USBIntStatusEndpoint().
//!
//! \sa IntRegister() for important information about registering interrupt
@@ -981,8 +979,8 @@ USBIntRegister(unsigned long ulBase, void(*pfnHandler)(void))
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function unregister the interrupt handler. This function will also
-//! disable the USB interrupt in the interrupt controller.
+//! This function unregisters the interrupt handler. This function also
+//! disables the USB interrupt in the interrupt controller.
//!
//! \sa IntRegister() for important information about registering or
//! unregistering interrupt handlers.
@@ -1016,11 +1014,10 @@ USBIntUnregister(unsigned long ulBase)
//! \param ulBase specifies the USB module base address.
//! \param ulEndpoint is the endpoint to access.
//!
-//! This function will return the status of a given endpoint. If any of these
-//! status bits need to be cleared, then these these values must be cleared by
-//! calling the USBDevEndpointStatusClear() or USBHostEndpointStatusClear()
-//! functions.
-//!
+//! This function returns the status of a given endpoint. If any of these
+//! status bits must be cleared, then the USBDevEndpointStatusClear() or the
+//! USBHostEndpointStatusClear() functions should be called.
+//!
//! The following are the status flags for host mode:
//!
//! - \b USB_HOST_IN_PID_ERROR - PID error on the given endpoint.
@@ -1123,7 +1120,7 @@ USBEndpointStatus(unsigned long ulBase, unsigned long ulEndpoint)
//! \param ulEndpoint is the endpoint to access.
//! \param ulFlags are the status bits that should be cleared.
//!
-//! This function will clear the status of any bits that are passed in the
+//! This function clears the status of any bits that are passed in the
//! \e ulFlags parameter. The \e ulFlags parameter can take the value returned
//! from the USBEndpointStatus() call.
//!
@@ -1172,7 +1169,7 @@ USBHostEndpointStatusClear(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulEndpoint is the endpoint to access.
//! \param ulFlags are the status bits that should be cleared.
//!
-//! This function will clear the status of any bits that are passed in the
+//! This function clears the status of any bits that are passed in the
//! \e ulFlags parameter. The \e ulFlags parameter can take the value returned
//! from the USBEndpointStatus() call.
//!
@@ -1199,8 +1196,8 @@ USBDevEndpointStatusClear(unsigned long ulBase, unsigned long ulEndpoint,
(ulEndpoint == USB_EP_14) || (ulEndpoint == USB_EP_15));
//
- // If this is endpoint 0 then the bits have different meaning and map into
- // the TX memory location.
+ // If this is endpoint 0, then the bits have different meaning and map
+ // into the TX memory location.
//
if(ulEndpoint == USB_EP_0)
{
@@ -1352,13 +1349,13 @@ USBHostEndpointDataToggle(unsigned long ulBase, unsigned long ulEndpoint,
//*****************************************************************************
//
-//! Sets the Data toggle on an endpoint to zero.
+//! Sets the data toggle on an endpoint to zero.
//!
//! \param ulBase specifies the USB module base address.
//! \param ulEndpoint specifies the endpoint to reset the data toggle.
//! \param ulFlags specifies whether to access the IN or OUT endpoint.
//!
-//! This function will cause the controller to clear the data toggle for an
+//! This function causes the USB controller to clear the data toggle for an
//! endpoint. This call is not valid for endpoint zero and can be made with
//! host or device controllers.
//!
@@ -1408,10 +1405,10 @@ USBEndpointDataToggleClear(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulEndpoint specifies the endpoint to stall.
//! \param ulFlags specifies whether to stall the IN or OUT endpoint.
//!
-//! This function will cause to endpoint number passed in to go into a stall
-//! condition. If the \e ulFlags parameter is \b USB_EP_DEV_IN then the stall
+//! This function causes the endpoint number passed in to go into a stall
+//! condition. If the \e ulFlags parameter is \b USB_EP_DEV_IN, then the stall
//! is issued on the IN portion of this endpoint. If the \e ulFlags parameter
-//! is \b USB_EP_DEV_OUT then the stall is issued on the OUT portion of this
+//! is \b USB_EP_DEV_OUT, then the stall is issued on the OUT portion of this
//! endpoint.
//!
//! \note This function should only be called in device mode.
@@ -1475,10 +1472,10 @@ USBDevEndpointStall(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulFlags specifies whether to remove the stall condition from the IN
//! or the OUT portion of this endpoint.
//!
-//! This function will cause the endpoint number passed in to exit the stall
-//! condition. If the \e ulFlags parameter is \b USB_EP_DEV_IN then the stall
+//! This function causes the endpoint number passed in to exit the stall
+//! condition. If the \e ulFlags parameter is \b USB_EP_DEV_IN, then the stall
//! is cleared on the IN portion of this endpoint. If the \e ulFlags parameter
-//! is \b USB_EP_DEV_OUT then the stall is cleared on the OUT portion of this
+//! is \b USB_EP_DEV_OUT, then the stall is cleared on the OUT portion of this
//! endpoint.
//!
//! \note This function should only be called in device mode.
@@ -1550,7 +1547,7 @@ USBDevEndpointStallClear(unsigned long ulBase, unsigned long ulEndpoint,
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function will cause the soft connect feature of the USB controller to
+//! This function causes the soft connect feature of the USB controller to
//! be enabled. Call USBDevDisconnect() to remove the USB device from the bus.
//!
//! \note This function should only be called in device mode.
@@ -1578,7 +1575,7 @@ USBDevConnect(unsigned long ulBase)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function will cause the soft connect feature of the USB controller to
+//! This function causes the soft connect feature of the USB controller to
//! remove the device from the USB bus. A call to USBDevConnect() is needed to
//! reconnect to the bus.
//!
@@ -1608,8 +1605,8 @@ USBDevDisconnect(unsigned long ulBase)
//! \param ulBase specifies the USB module base address.
//! \param ulAddress is the address to use for a device.
//!
-//! This function will set the device address on the USB bus. This address was
-//! likely received via a SET ADDRESS command from the host controller.
+//! This function configures the device address on the USB bus. This address
+//! was likely received via a SET ADDRESS command from the host controller.
//!
//! \note This function should only be called in device mode.
//!
@@ -1636,7 +1633,7 @@ USBDevAddrSet(unsigned long ulBase, unsigned long ulAddress)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function will return the current device address. This address was set
+//! This function returns the current device address. This address was set
//! by a call to USBDevAddrSet().
//!
//! \note This function should only be called in device mode.
@@ -1666,18 +1663,19 @@ USBDevAddrGet(unsigned long ulBase)
//! \param ulEndpoint is the endpoint to access.
//! \param ulMaxPayload is the maximum payload for this endpoint.
//! \param ulNAKPollInterval is the either the NAK timeout limit or the polling
-//! interval depending on the type of endpoint.
+//! interval, depending on the type of endpoint.
//! \param ulTargetEndpoint is the endpoint that the host endpoint is
//! targeting.
//! \param ulFlags are used to configure other endpoint settings.
//!
-//! This function will set the basic configuration for the transmit or receive
+//! This function sets the basic configuration for the transmit or receive
//! portion of an endpoint in host mode. The \e ulFlags parameter determines
//! some of the configuration while the other parameters provide the rest. The
//! \e ulFlags parameter determines whether this is an IN endpoint
-//! (USB_EP_HOST_IN or USB_EP_DEV_IN) or an OUT endpoint (USB_EP_HOST_OUT or
-//! USB_EP_DEV_OUT), whether this is a Full speed endpoint (USB_EP_SPEED_FULL)
-//! or a Low speed endpoint (USB_EP_SPEED_LOW).
+//! (\b USB_EP_HOST_IN or \b USB_EP_DEV_IN) or an OUT endpoint
+//! (\b USB_EP_HOST_OUT or \b USB_EP_DEV_OUT), whether this is a Full speed
+//! endpoint (\b USB_EP_SPEED_FULL) or a Low speed endpoint
+//! (\b USB_EP_SPEED_LOW).
//!
//! The \b USB_EP_MODE_ flags control the type of the endpoint.
//! - \b USB_EP_MODE_CTRL is a control endpoint.
@@ -1693,18 +1691,18 @@ USBDevAddrGet(unsigned long ulBase)
//! isochronous or interrupt endpoint, this value is the polling interval for
//! this endpoint.
//!
-//! For interrupt endpoints the polling interval is simply the number of
+//! For interrupt endpoints, the polling interval is simply the number of
//! frames between polling an interrupt endpoint. For isochronous endpoints
//! this value represents a polling interval of 2 ^ (\e ulNAKPollInterval - 1)
//! frames. When used as a NAK timeout, the \e ulNAKPollInterval value
//! specifies 2 ^ (\e ulNAKPollInterval - 1) frames before issuing a time out.
//! There are two special time out values that can be specified when setting
-//! the \e ulNAKPollInterval value. The first is \b MAX_NAK_LIMIT which is the
-//! maximum value that can be passed in this variable. The other is
-//! \b DISABLE_NAK_LIMIT which indicates that there should be no limit on the
+//! the \e ulNAKPollInterval value. The first is \b MAX_NAK_LIMIT, which is
+//! the maximum value that can be passed in this variable. The other is
+//! \b DISABLE_NAK_LIMIT, which indicates that there should be no limit on the
//! number of NAKs.
//!
-//! The \b USB_EP_DMA_MODE_ flags enables the type of DMA used to access the
+//! The \b USB_EP_DMA_MODE_ flags enable the type of DMA used to access the
//! endpoint's data FIFOs. The choice of the DMA mode depends on how the DMA
//! controller is configured and how it is being used. See the ``Using USB
//! with the uDMA Controller'' section for more information on DMA
@@ -1712,15 +1710,15 @@ USBDevAddrGet(unsigned long ulBase)
//!
//! When configuring the OUT portion of an endpoint, the \b USB_EP_AUTO_SET bit
//! is specified to cause the transmission of data on the USB bus to start
-//! as soon as the number of bytes specified by \e ulMaxPayload have been
+//! as soon as the number of bytes specified by \e ulMaxPayload has been
//! written into the OUT FIFO for this endpoint.
//!
//! When configuring the IN portion of an endpoint, the \b USB_EP_AUTO_REQUEST
//! bit can be specified to trigger the request for more data once the FIFO has
//! been drained enough to fit \e ulMaxPayload bytes. The \b USB_EP_AUTO_CLEAR
//! bit can be used to clear the data packet ready flag automatically once the
-//! data has been read from the FIFO. If this is not used, this flag must be
-//! manually cleared via a call to USBDevEndpointStatusClear() or
+//! data has been read from the FIFO. If this option is not used, this flag
+//! must be manually cleared via a call to USBDevEndpointStatusClear() or
//! USBHostEndpointStatusClear().
//!
//! \note This function should only be called in host mode.
@@ -1942,9 +1940,9 @@ USBHostEndpointConfig(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulMaxPacketSize is the maximum packet size for this endpoint.
//! \param ulFlags are used to configure other endpoint settings.
//!
-//! This function will set the basic configuration for an endpoint in device
-//! mode. Endpoint zero does not have a dynamic configuration, so this
-//! function should not be called for endpoint zero. The \e ulFlags parameter
+//! This function sets the basic configuration for an endpoint in device mode.
+//! Endpoint zero does not have a dynamic configuration, so this function
+//! should not be called for endpoint zero. The \e ulFlags parameter
//! determines some of the configuration while the other parameters provide the
//! rest.
//!
@@ -1955,7 +1953,7 @@ USBHostEndpointConfig(unsigned long ulBase, unsigned long ulEndpoint,
//! - \b USB_EP_MODE_BULK is a bulk endpoint.
//! - \b USB_EP_MODE_INT is an interrupt endpoint.
//!
-//! The \b USB_EP_DMA_MODE_ flags determines the type of DMA access to the
+//! The \b USB_EP_DMA_MODE_ flags determine the type of DMA access to the
//! endpoint data FIFOs. The choice of the DMA mode depends on how the DMA
//! controller is configured and how it is being used. See the ``Using USB
//! with the uDMA Controller'' section for more information on DMA
@@ -1964,7 +1962,7 @@ USBHostEndpointConfig(unsigned long ulBase, unsigned long ulEndpoint,
//! When configuring an IN endpoint, the \b USB_EP_AUTO_SET bit can be
//! specified to cause the automatic transmission of data on the USB bus as
//! soon as \e ulMaxPacketSize bytes of data are written into the FIFO for
-//! this endpoint. This is commonly used with DMA as no interaction is
+//! this endpoint. This option is commonly used with DMA as no interaction is
//! required to start the transmission of data.
//!
//! When configuring an OUT endpoint, the \b USB_EP_AUTO_REQUEST bit is
@@ -1972,9 +1970,9 @@ USBHostEndpointConfig(unsigned long ulBase, unsigned long ulEndpoint,
//! drained enough to receive \e ulMaxPacketSize more bytes of data. Also for
//! OUT endpoints, the \b USB_EP_AUTO_CLEAR bit can be used to clear the data
//! packet ready flag automatically once the data has been read from the FIFO.
-//! If this is not used, this flag must be manually cleared via a call to
-//! USBDevEndpointStatusClear(). Both of these settings can be used to remove
-//! the need for extra calls when using the controller in DMA mode.
+//! If this option is not used, this flag must be manually cleared via a call
+//! to USBDevEndpointStatusClear(). Both of these settings can be used to
+//! remove the need for extra calls when using the controller in DMA mode.
//!
//! \note This function should only be called in device mode.
//!
@@ -2126,7 +2124,7 @@ USBDevEndpointConfigSet(unsigned long ulBase, unsigned long ulEndpoint,
//! \b USB_EP_DEV_IN or \b USB_EP_DEV_OUT to indicate whether the IN or OUT
//! endpoint is to be queried.
//!
-//! This function will return the basic configuration for an endpoint in device
+//! This function returns the basic configuration for an endpoint in device
//! mode. The values returned in \e *pulMaxPacketSize and \e *pulFlags are
//! equivalent to the \e ulMaxPacketSize and \e ulFlags previously passed to
//! USBDevEndpointConfigSet() for this endpoint.
@@ -2216,9 +2214,9 @@ USBDevEndpointConfigGet(unsigned long ulBase, unsigned long ulEndpoint,
//
// The hardware doesn't differentiate between bulk, interrupt
// and control mode for the endpoint so we just set something
- // that isn't isochronous. This ensures that anyone modifying
- // the returned flags in preparation for a call to
- // USBDevEndpointConfigSet will not see an unexpected mode change.
+ // that isn't isochronous. This protocol ensures that anyone
+ // modifying the returned flags in preparation for a call to
+ // USBDevEndpointConfigSet do not see an unexpected mode change.
// If they decode the returned mode, however, they may be in for
// a surprise.
//
@@ -2281,9 +2279,9 @@ USBDevEndpointConfigGet(unsigned long ulBase, unsigned long ulEndpoint,
//
// The hardware doesn't differentiate between bulk, interrupt
// and control mode for the endpoint so we just set something
- // that isn't isochronous. This ensures that anyone modifying
- // the returned flags in preparation for a call to
- // USBDevEndpointConfigSet will not see an unexpected mode change.
+ // that isn't isochronous. This protocol ensures that anyone
+ // modifying the returned flags in preparation for a call to
+ // USBDevEndpointConfigSet do not see an unexpected mode change.
// If they decode the returned mode, however, they may be in for
// a surprise.
//
@@ -2303,24 +2301,24 @@ USBDevEndpointConfigGet(unsigned long ulBase, unsigned long ulEndpoint,
//! USB_FIFO_SZ_ values.
//! \param ulFlags specifies what information to set in the FIFO configuration.
//!
-//! This function will set the starting FIFO RAM address and size of the FIFO
+//! This function configures the starting FIFO RAM address and size of the FIFO
//! for a given endpoint. Endpoint zero does not have a dynamically
-//! configurable FIFO so this function should not be called for endpoint zero.
+//! configurable FIFO, so this function should not be called for endpoint zero.
//! The \e ulFIFOSize parameter should be one of the values in the
-//! \b USB_FIFO_SZ_ values. If the endpoint is going to use double buffering
+//! \b USB_FIFO_SZ_ values. If the endpoint is going to use double buffering,
//! it should use the values with the \b _DB at the end of the value. For
-//! example, use \b USB_FIFO_SZ_16_DB to configure an endpoint to have a 16
-//! byte double buffered FIFO. If a double buffered FIFO is used, then the
+//! example, use \b USB_FIFO_SZ_16_DB to configure an endpoint to have a 16-
+//! byte, double-buffered FIFO. If a double-buffered FIFO is used, then the
//! actual size of the FIFO is twice the size indicated by the \e ulFIFOSize
-//! parameter. This means that the \b USB_FIFO_SZ_16_DB value will use 32
-//! bytes of the USB controller's FIFO memory.
+//! parameter. For example, the \b USB_FIFO_SZ_16_DB value uses 32 bytes of
+//! the USB controller's FIFO memory.
//!
//! The \e ulFIFOAddress value should be a multiple of 8 bytes and directly
//! indicates the starting address in the USB controller's FIFO RAM. For
//! example, a value of 64 indicates that the FIFO should start 64 bytes into
//! the USB controller's FIFO memory. The \e ulFlags value specifies whether
//! the endpoint's OUT or IN FIFO should be configured. If in host mode, use
-//! \b USB_EP_HOST_OUT or \b USB_EP_HOST_IN, and if in device mode use
+//! \b USB_EP_HOST_OUT or \b USB_EP_HOST_IN, and if in device mode, use
//! \b USB_EP_DEV_OUT or \b USB_EP_DEV_IN.
//!
//! \return None.
@@ -2379,12 +2377,12 @@ USBFIFOConfigSet(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulFlags specifies what information to retrieve from the FIFO
//! configuration.
//!
-//! This function will return the starting address and size of the FIFO for a
+//! This function returns the starting address and size of the FIFO for a
//! given endpoint. Endpoint zero does not have a dynamically configurable
-//! FIFO so this function should not be called for endpoint zero. The
+//! FIFO, so this function should not be called for endpoint zero. The
//! \e ulFlags parameter specifies whether the endpoint's OUT or IN FIFO should
//! be read. If in host mode, the \e ulFlags parameter should be
-//! \b USB_EP_HOST_OUT or \b USB_EP_HOST_IN, and if in device mode the
+//! \b USB_EP_HOST_OUT or \b USB_EP_HOST_IN, and if in device mode, the
//! \e ulFlags parameter should be either \b USB_EP_DEV_OUT or
//! \b USB_EP_DEV_IN.
//!
@@ -2446,7 +2444,7 @@ USBFIFOConfigGet(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulFlags specifies which direction and what mode to use when enabling
//! DMA.
//!
-//! This function will enable DMA on a given endpoint and set the mode
+//! This function enables DMA on a given endpoint and configures the mode
//! according to the values in the \e ulFlags parameter. The \e ulFlags
//! parameter should have \b USB_EP_DEV_IN or \b USB_EP_DEV_OUT set.
//!
@@ -2463,7 +2461,7 @@ USBEndpointDMAEnable(unsigned long ulBase, unsigned long ulEndpoint,
if(ulFlags & USB_EP_DEV_IN)
{
//
- // Enable DMA on the transmit end point.
+ // Enable DMA on the transmit endpoint.
//
HWREGB(ulBase + EP_OFFSET(ulEndpoint) + USB_O_TXCSRH1) |=
USB_TXCSRH1_DMAEN;
@@ -2471,7 +2469,7 @@ USBEndpointDMAEnable(unsigned long ulBase, unsigned long ulEndpoint,
else
{
//
- // Enable DMA on the receive end point.
+ // Enable DMA on the receive endpoint.
//
HWREGB(ulBase + EP_OFFSET(ulEndpoint) + USB_O_RXCSRH1) |=
USB_RXCSRH1_DMAEN;
@@ -2486,9 +2484,9 @@ USBEndpointDMAEnable(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulEndpoint is the endpoint to access.
//! \param ulFlags specifies which direction to disable.
//!
-//! This function will disable DMA on a given end point to allow non-DMA
-//! USB transactions to generate interrupts normally. The ulFlags should be
-//! \b USB_EP_DEV_IN or \b USB_EP_DEV_OUT all other bits are ignored.
+//! This function disables DMA on a given endpoint to allow non-DMA USB
+//! transactions to generate interrupts normally. The ulFlags should be
+//! \b USB_EP_DEV_IN or \b USB_EP_DEV_OUT; all other bits are ignored.
//!
//! \return None.
//
@@ -2498,7 +2496,7 @@ USBEndpointDMADisable(unsigned long ulBase, unsigned long ulEndpoint,
unsigned long ulFlags)
{
//
- // If this was a request to disable DMA on the IN portion of the end point
+ // If this was a request to disable DMA on the IN portion of the endpoint
// then handle it.
//
if(ulFlags & USB_EP_DEV_IN)
@@ -2526,13 +2524,13 @@ USBEndpointDMADisable(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulBase specifies the USB module base address.
//! \param ulEndpoint is the endpoint to access.
//!
-//! This function will return the number of bytes of data currently available
-//! in the FIFO for the given receive (OUT) endpoint. It may be used prior to
+//! This function returns the number of bytes of data currently available in
+//! the FIFO for the given receive (OUT) endpoint. It may be used prior to
//! calling USBEndpointDataGet() to determine the size of buffer required to
//! hold the newly-received packet.
//!
-//! \return This call will return the number of bytes available in a given
-//! endpoint FIFO.
+//! \return This call returns the number of bytes available in a given endpoint
+//! FIFO.
//
//*****************************************************************************
unsigned long
@@ -2592,15 +2590,15 @@ USBEndpointDataAvail(unsigned long ulBase, unsigned long ulEndpoint)
//! via the \e pucData parameter. It is set to the amount of data returned in
//! the buffer.
//!
-//! This function will return the data from the FIFO for the given endpoint.
+//! This function returns the data from the FIFO for the given endpoint.
//! The \e pulSize parameter should indicate the size of the buffer passed in
//! the \e pulData parameter. The data in the \e pulSize parameter is changed
//! to match the amount of data returned in the \e pucData parameter. If a
-//! zero byte packet was received this call will not return a error but will
-//! instead just return a zero in the \e pulSize parameter. The only error
+//! zero-byte packet is received, this call does not return an error but
+//! instead just returns a zero in the \e pulSize parameter. The only error
//! case occurs when there is no data packet available.
//!
-//! \return This call will return 0, or -1 if no packet was received.
+//! \return This call returns 0, or -1 if no packet was received.
//
//*****************************************************************************
long
@@ -2695,7 +2693,7 @@ USBEndpointDataGet(unsigned long ulBase, unsigned long ulEndpoint,
//!
//! \param ulBase specifies the USB module base address.
//! \param ulEndpoint is the endpoint to access.
-//! \param bIsLastPacket indicates if this is the last packet.
+//! \param bIsLastPacket indicates if this packet is the last one.
//!
//! This function acknowledges that the data was read from the endpoint's FIFO.
//! The \e bIsLastPacket parameter is set to a \b true value if this is the
@@ -2804,13 +2802,13 @@ USBHostEndpointDataAck(unsigned long ulBase, unsigned long ulEndpoint)
//! data to put into the FIFO.
//! \param ulSize is the amount of data to put into the FIFO.
//!
-//! This function will put the data from the \e pucData parameter into the FIFO
-//! for this endpoint. If a packet is already pending for transmission then
-//! this call will not put any of the data into the FIFO and will return -1.
-//! Care should be taken to not write more data than can fit into the FIFO
+//! This function puts the data from the \e pucData parameter into the FIFO
+//! for this endpoint. If a packet is already pending for transmission, then
+//! this call does not put any of the data into the FIFO and returns -1. Care
+//! should be taken to not write more data than can fit into the FIFO
//! allocated by the call to USBFIFOConfigSet().
//!
-//! \return This call will return 0 on success, or -1 to indicate that the FIFO
+//! \return This call returns 0 on success, or -1 to indicate that the FIFO
//! is in use and cannot be written.
//
//*****************************************************************************
@@ -2881,21 +2879,21 @@ USBEndpointDataPut(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulEndpoint is the endpoint to access.
//! \param ulTransType is set to indicate what type of data is being sent.
//!
-//! This function will start the transfer of data from the FIFO for a given
-//! endpoint. This is necessary if the \b USB_EP_AUTO_SET bit was not enabled
-//! for the endpoint. Setting the \e ulTransType parameter will allow the
-//! appropriate signaling on the USB bus for the type of transaction being
+//! This function starts the transfer of data from the FIFO for a given
+//! endpoint. This function should be called if the \b USB_EP_AUTO_SET bit was
+//! not enabled for the endpoint. Setting the \e ulTransType parameter allows
+//! the appropriate signaling on the USB bus for the type of transaction being
//! requested. The \e ulTransType parameter should be one of the following:
//!
-//! - USB_TRANS_OUT for OUT transaction on any endpoint in host mode.
-//! - USB_TRANS_IN for IN transaction on any endpoint in device mode.
-//! - USB_TRANS_IN_LAST for the last IN transactions on endpoint zero in a
+//! - \b USB_TRANS_OUT for OUT transaction on any endpoint in host mode.
+//! - \b USB_TRANS_IN for IN transaction on any endpoint in device mode.
+//! - \b USB_TRANS_IN_LAST for the last IN transaction on endpoint zero in a
//! sequence of IN transactions.
-//! - USB_TRANS_SETUP for setup transactions on endpoint zero.
-//! - USB_TRANS_STATUS for status results on endpoint zero.
+//! - \b USB_TRANS_SETUP for setup transactions on endpoint zero.
+//! - \b USB_TRANS_STATUS for status results on endpoint zero.
//!
-//! \return This call will return 0 on success, or -1 if a transmission is
-//! already in progress.
+//! \return This call returns 0 on success, or -1 if a transmission is already
+//! in progress.
//
//*****************************************************************************
long
@@ -2905,7 +2903,7 @@ USBEndpointDataSend(unsigned long ulBase, unsigned long ulEndpoint,
unsigned long ulTxPktRdy;
//
- // CHeck the arguments.
+ // Check the arguments.
//
ASSERT(ulBase == USB0_BASE);
ASSERT((ulEndpoint == USB_EP_0) || (ulEndpoint == USB_EP_1) ||
@@ -2956,7 +2954,7 @@ USBEndpointDataSend(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulEndpoint is the endpoint to access.
//! \param ulFlags specifies if the IN or OUT endpoint should be accessed.
//!
-//! This function will force the controller to flush out the data in the FIFO.
+//! This function forces the USB controller to flush out the data in the FIFO.
//! The function can be called with either host or device controllers and
//! requires the \e ulFlags parameter be one of \b USB_EP_HOST_OUT,
//! \b USB_EP_HOST_IN, \b USB_EP_DEV_OUT, or \b USB_EP_DEV_IN.
@@ -3043,9 +3041,9 @@ USBFIFOFlush(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulBase specifies the USB module base address.
//! \param ulEndpoint is the endpoint to access.
//!
-//! This function will schedule a request for an IN transaction. When the USB
-//! device being communicated with responds the data, the data can be retrieved
-//! by calling USBEndpointDataGet() or via a DMA transfer.
+//! This function schedules a request for an IN transaction. When the USB
+//! device being communicated with responds with the data, the data can be
+//! retrieved by calling USBEndpointDataGet() or via a DMA transfer.
//!
//! \note This function should only be called in host mode and only for IN
//! endpoints.
@@ -3096,10 +3094,10 @@ USBHostRequestIN(unsigned long ulBase, unsigned long ulEndpoint)
//! \param ulBase specifies the USB module base address.
//! \param ulEndpoint is the endpoint to access.
//!
-//! This function will clear a previously scheduled IN transaction if it is
+//! This function clears a previously scheduled IN transaction if it is
//! still pending. This function should be used to safely disable any
//! scheduled IN transactions if the endpoint specified by \e ulEndpoint
-//! is reconfigured used for communications with other devices.
+//! is reconfigured for communications with other devices.
//!
//! \note This function should only be called in host mode and only for IN
//! endpoints.
@@ -3149,11 +3147,12 @@ USBHostRequestINClear(unsigned long ulBase, unsigned long ulEndpoint)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function is used to cause a request for an status IN transaction from
+//! This function is used to cause a request for a status IN transaction from
//! a device on endpoint zero. This function can only be used with endpoint
//! zero as that is the only control endpoint that supports this ability. This
-//! is used to complete the last phase of a control transaction to a device and
-//! an interrupt is signaled when the status packet has been received.
+//! function is used to complete the last phase of a control transaction to a
+//! device and an interrupt is signaled when the status packet has been
+//! received.
//!
//! \return None.
//
@@ -3183,9 +3182,9 @@ USBHostRequestStatus(unsigned long ulBase)
//! endpoint.
//! \param ulFlags determines if this is an IN or an OUT endpoint.
//!
-//! This function will set the functional address for a device that is using
+//! This function configures the functional address for a device that is using
//! this endpoint for communication. This \e ulAddr parameter is the address
-//! of the target device that this endpoint is used to communicate with. The
+//! of the target device that this endpoint is communicating with. The
//! \e ulFlags parameter indicates if the IN or OUT endpoint should be set.
//!
//! \note This function should only be called in host mode.
@@ -3284,7 +3283,7 @@ USBHostAddrGet(unsigned long ulBase, unsigned long ulEndpoint,
//*****************************************************************************
//
-//! Set the hub address for the device that is connected to an endpoint.
+//! Sets the hub address for the device that is connected to an endpoint.
//!
//! \param ulBase specifies the USB module base address.
//! \param ulEndpoint is the endpoint to access.
@@ -3293,10 +3292,10 @@ USBHostAddrGet(unsigned long ulBase, unsigned long ulEndpoint,
//! port number in bits 0 through 6.
//! \param ulFlags determines if this is an IN or an OUT endpoint.
//!
-//! This function will set the hub address for a device that is using this
+//! This function configures the hub address for a device that is using this
//! endpoint for communication. The \e ulFlags parameter determines if the
-//! device address for the IN or the OUT endpoint is set by this call and sets
-//! the speed of the downstream device. Valid values are one of \b
+//! device address for the IN or the OUT endpoint is configured by this call
+//! and sets the speed of the downstream device. Valid values are one of \b
//! USB_EP_HOST_OUT or \b USB_EP_HOST_IN optionally ORed with \b
//! USB_EP_SPEED_LOW.
//!
@@ -3341,9 +3340,9 @@ USBHostHubAddrSet(unsigned long ulBase, unsigned long ulEndpoint,
}
//
- // Set the speed of communication for endpoint 0. This is done here since
- // it will change on a transaction-by-transaction basis for EP0. For other
- // endpoints, this is set in USBHostEndpointConfig().
+ // Set the speed of communication for endpoint 0. This configuration is
+ // done here because it changes on a transaction-by-transaction basis for
+ // EP0. For other endpoints, this is set in USBHostEndpointConfig().
//
if(ulEndpoint == USB_EP_0)
{
@@ -3360,13 +3359,13 @@ USBHostHubAddrSet(unsigned long ulBase, unsigned long ulEndpoint,
//*****************************************************************************
//
-//! Get the current device hub address for this endpoint.
+//! Gets the current device hub address for this endpoint.
//!
//! \param ulBase specifies the USB module base address.
//! \param ulEndpoint is the endpoint to access.
//! \param ulFlags determines if this is an IN or an OUT endpoint.
//!
-//! This function will return the current hub address that an endpoint is using
+//! This function returns the current hub address that an endpoint is using
//! to communicate with a device. The \e ulFlags parameter determines if the
//! device address for the IN or OUT endpoint is returned.
//!
@@ -3420,7 +3419,7 @@ USBHostHubAddrGet(unsigned long ulBase, unsigned long ulEndpoint,
//! \param ulFlags specifies the configuration of the power fault.
//!
//! This function controls how the USB controller uses its external power
-//! control pins (USBnPFTL and USBnEPEN). The flags specify the power
+//! control pins (USBnPFLT and USBnEPEN). The flags specify the power
//! fault level sensitivity, the power fault action, and the power enable level
//! and source.
//!
@@ -3435,7 +3434,7 @@ USBHostHubAddrGet(unsigned long ulBase, unsigned long ulEndpoint,
//!
//! - \b USB_HOST_PWRFLT_EP_NONE - No automatic action when power fault
//! detected.
-//! - \b USB_HOST_PWRFLT_EP_TRI - Automatically Tri-state the USBnEPEN pin on a
+//! - \b USB_HOST_PWRFLT_EP_TRI - Automatically tri-state the USBnEPEN pin on a
//! power fault.
//! - \b USB_HOST_PWRFLT_EP_LOW - Automatically drive USBnEPEN pin low on a
//! power fault.
@@ -3444,21 +3443,23 @@ USBHostHubAddrGet(unsigned long ulBase, unsigned long ulEndpoint,
//!
//! One of the following can be selected as the power enable level and source:
//!
-//! - \b USB_HOST_PWREN_MAN_LOW - USBEPEN is driven low by the USB controller
+//! - \b USB_HOST_PWREN_MAN_LOW - USBnEPEN is driven low by the USB controller
//! when USBHostPwrEnable() is called.
-//! - \b USB_HOST_PWREN_MAN_HIGH - USBEPEN is driven high by the USB controller
-//! when USBHostPwrEnable() is called.
-//! - \b USB_HOST_PWREN_AUTOLOW - USBEPEN is driven low by the USB controller
+//! - \b USB_HOST_PWREN_MAN_HIGH - USBnEPEN is driven high by the USB
+//! controller when USBHostPwrEnable() is
+//! called.
+//! - \b USB_HOST_PWREN_AUTOLOW - USBnEPEN is driven low by the USB controller
//! automatically if USBOTGSessionRequest() has
//! enabled a session.
-//! - \b USB_HOST_PWREN_AUTOHIGH - USBEPEN is driven high by the USB controller
-//! automatically if USBOTGSessionRequest() has
-//! enabled a session.
+//! - \b USB_HOST_PWREN_AUTOHIGH - USBnEPEN is driven high by the USB
+//! controller automatically if
+//! USBOTGSessionRequest() has enabled a
+//! session.
//!
//! On devices that support the VBUS glitch filter, the
//! \b USB_HOST_PWREN_FILTER can be added to ignore small, short drops in VBUS
-//! level caused by high power consumption. This is mainly used to avoid
-//! causing VBUS errors caused by devices with high in-rush current.
+//! level caused by high power consumption. This feature is mainly used to
+//! avoid causing VBUS errors caused by devices with high in-rush current.
//!
//! \note The following values have been deprecated and should no longer be
//! used.
@@ -3468,8 +3469,8 @@ USBHostHubAddrGet(unsigned long ulBase, unsigned long ulEndpoint,
//! enabled.
//! - \b USB_HOST_PWREN_VBLOW - Automatically drive USBnEPEN low when power is
//! enabled.
-//! - \b USB_HOST_PWREN_VBHIGH - Automatically drive USBnEPEN high when power is
-//! enabled.
+//! - \b USB_HOST_PWREN_VBHIGH - Automatically drive USBnEPEN high when power
+//! is enabled.
//!
//! \note This function should only be called on microcontrollers that support
//! host mode or OTG operation.
@@ -3495,8 +3496,8 @@ USBHostPwrConfig(unsigned long ulBase, unsigned long ulFlags)
HWREG(ulBase + USB_O_VDC) = ulFlags >> 16;
//
- // Set the power fault configuration as specified. This will not change
- // whether fault detection is enabled or not.
+ // Set the power fault configuration as specified. This configuration
+ // does not change whether fault detection is enabled or not.
//
HWREGH(ulBase + USB_O_EPC) =
(ulFlags | (HWREGH(ulBase + USB_O_EPC) &
@@ -3511,7 +3512,7 @@ USBHostPwrConfig(unsigned long ulBase, unsigned long ulFlags)
//! \param ulBase specifies the USB module base address.
//!
//! This function enables power fault detection in the USB controller. If the
-//! USBPFLT pin is not in use this function should not be used.
+//! USBnPFLT pin is not in use, this function should not be used.
//!
//! \note This function should only be called in host mode.
//!
@@ -3565,8 +3566,8 @@ USBHostPwrFaultDisable(unsigned long ulBase)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function enables the USBEPEN signal to enable an external power supply
-//! in host mode operation.
+//! This function enables the USBnEPEN signal, which enables an external power
+//! supply in host mode operation.
//!
//! \note This function should only be called in host mode.
//!
@@ -3593,8 +3594,8 @@ USBHostPwrEnable(unsigned long ulBase)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function disables the USBEPEN signal to disable an external power
-//! supply in host mode operation.
+//! This function disables the USBnEPEN signal, which disables an external
+//! power supply in host mode operation.
//!
//! \note This function should only be called in host mode.
//!
@@ -3649,7 +3650,7 @@ USBFrameNumberGet(unsigned long ulBase)
//!
//! This function is used in OTG mode to start a session request or end a
//! session. If the \e bStart parameter is set to \b true, then this function
-//! start a session and if it is \b false it will end a session.
+//! starts a session and if it is \b false it ends a session.
//!
//! \return None.
//
@@ -3682,10 +3683,10 @@ USBOTGSessionRequest(unsigned long ulBase, tBoolean bStart)
//! \param ulBase specifies the USB module base address.
//! \param ulEndpoint specifies which endpoint's FIFO address to return.
//!
-//! This function returns the actual physical address of the FIFO. This is
-//! needed when the USB is going to be used with the uDMA controller and the
-//! source or destination address needs to be set to the physical FIFO address
-//! for a given endpoint.
+//! This function returns the actual physical address of the FIFO. This
+//! address is needed when the USB is going to be used with the uDMA
+//! controller and the source or destination address must be set to the
+//! physical FIFO address for a given endpoint.
//!
//! \return None.
//
@@ -3710,7 +3711,7 @@ USBFIFOAddrGet(unsigned long ulBase, unsigned long ulEndpoint)
//!
//! For OTG controllers:
//!
-//! The function will return on of the following values on OTG controllers:
+//! The function returns one of the following values on OTG controllers:
//! \b USB_OTG_MODE_ASIDE_HOST, \b USB_OTG_MODE_ASIDE_DEV,
//! \b USB_OTG_MODE_BSIDE_HOST, \b USB_OTG_MODE_BSIDE_DEV,
//! \b USB_OTG_MODE_NONE.
@@ -3725,15 +3726,15 @@ USBFIFOAddrGet(unsigned long ulBase, unsigned long ulEndpoint)
//! on the B-side of the cable.
//!
//! \b USB_OTG_MODE_BSIDE_DEV indicates that the controller is in device mode
-//! on the B-side of the cable. If and OTG session request is started with no
-//! cable in place this is the default mode for the controller.
+//! on the B-side of the cable. If an OTG session request is started with no
+//! cable in place, this mode is the default.
//!
//! \b USB_OTG_MODE_NONE indicates that the controller is not attempting to
//! determine its role in the system.
//!
//! For Dual Mode controllers:
//!
-//! The function will return on of the following values:
+//! The function returns one of the following values:
//! \b USB_DUAL_MODE_HOST, \b USB_DUAL_MODE_DEVICE, or
//! \b USB_DUAL_MODE_NONE.
//!
@@ -3784,14 +3785,14 @@ USBModeGet(unsigned long ulBase)
//!
//! This function is used to configure which DMA channel to use with a given
//! endpoint. Receive DMA channels can only be used with receive endpoints
-//! and transmit DMA channels can only be used with transmit endpoints. This
-//! allows the 3 receive and 3 transmit DMA channels to be mapped to any
+//! and transmit DMA channels can only be used with transmit endpoints. As a
+//! result, the 3 receive and 3 transmit DMA channels can be mapped to any
//! endpoint other than 0. The values that should be passed into the
//! \e ulChannel value are the UDMA_CHANNEL_USBEP* values defined in udma.h.
//!
//! \note This function only has an effect on microcontrollers that have the
//! ability to change the DMA channel for an endpoint. Calling this function
-//! on other devices will have no effect.
+//! on other devices has no effect.
//!
//! \return None.
//!
@@ -3817,7 +3818,7 @@ USBEndpointDMAChannel(unsigned long ulBase, unsigned long ulEndpoint,
ASSERT(ulChannel <= UDMA_CHANNEL_USBEP3TX);
//
- // The input select mask needs to be shifted into the correct position
+ // The input select mask must be shifted into the correct position
// based on the channel.
//
ulMask = 0xf << (ulChannel * 4);
@@ -3847,6 +3848,9 @@ USBEndpointDMAChannel(unsigned long ulBase, unsigned long ulEndpoint,
//!
//! This function changes the mode of the USB controller to host mode.
//!
+//! \note This function should only be called on microcontrollers that support
+//! OTG operation and have the DEVMODOTG bit in the USBGPCS register.
+//!
//! \return None.
//
//*****************************************************************************
@@ -3875,6 +3879,9 @@ USBHostMode(unsigned long ulBase)
//!
//! This function changes the mode of the USB controller to device mode.
//!
+//! \note This function should only be called on microcontrollers that support
+//! OTG operation and have the DEVMODOTG bit in the USBGPCS register.
+//!
//! \return None.
//
//*****************************************************************************
@@ -3899,7 +3906,7 @@ USBDevMode(unsigned long ulBase)
//! \param ulBase specifies the USB module base address.
//!
//! This function changes the mode of the USB controller to OTG mode. This
-//! is only valid on microcontrollers that have the OTG capabilities.
+//! function is only valid on microcontrollers that have the OTG capabilities.
//!
//! \return None.
//
@@ -3925,8 +3932,8 @@ USBOTGMode(unsigned long ulBase)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function will power off the USB PHY, reducing the current consuption
-//! of the device. While in the powered off state, the USB controller is
+//! This function powers off the USB PHY, reducing the current consuption
+//! of the device. While in the powered-off state, the USB controller is
//! unable to operate.
//!
//! \return None.
@@ -3947,9 +3954,9 @@ USBPHYPowerOff(unsigned long ulBase)
//!
//! \param ulBase specifies the USB module base address.
//!
-//! This function will power on the USB PHY, enabling it return to normal
-//! operation. By default, the PHY is powered on, so this function only needs
-//! to be called if USBPHYPowerOff() has previously been called.
+//! This function powers on the USB PHY, enabling it return to normal
+//! operation. By default, the PHY is powered on, so this function should
+//! only be called if USBPHYPowerOff() has previously been called.
//!
//! \return None.
//
@@ -3964,6 +3971,7 @@ USBPHYPowerOn(unsigned long ulBase)
HWREGB(ulBase + USB_O_POWER) &= ~USB_POWER_PWRDNPHY;
}
+
//*****************************************************************************
//
// Close the Doxygen group.
diff --git a/bsp/lm4f232/Libraries/driverlib/usb.h b/bsp/lm4f232/Libraries/driverlib/usb.h
index b57af1c309..66a94d0876 100644
--- a/bsp/lm4f232/Libraries/driverlib/usb.h
+++ b/bsp/lm4f232/Libraries/driverlib/usb.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/driverlib/watchdog.c b/bsp/lm4f232/Libraries/driverlib/watchdog.c
index 8a72f68254..b3961c9494 100644
--- a/bsp/lm4f232/Libraries/driverlib/watchdog.c
+++ b/bsp/lm4f232/Libraries/driverlib/watchdog.c
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
@@ -43,9 +43,9 @@
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
-//! This will check to see if the watchdog timer is enabled.
+//! This function checks to see if the watchdog timer is enabled.
//!
-//! \return Returns \b true if the watchdog timer is enabled, and \b false
+//! \return Returns \b true if the watchdog timer is enabled and \b false
//! if it is not.
//
//*****************************************************************************
@@ -69,10 +69,9 @@ WatchdogRunning(unsigned long ulBase)
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
-//! This will enable the watchdog timer counter and interrupt.
+//! This function enables the watchdog timer counter and interrupt.
//!
-//! \note This function will have no effect if the watchdog timer has
-//! been locked.
+//! \note This function has no effect if the watchdog timer has been locked.
//!
//! \sa WatchdogLock(), WatchdogUnlock()
//!
@@ -99,12 +98,11 @@ WatchdogEnable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
-//! Enables the capability of the watchdog timer to issue a reset to the
-//! processor upon a second timeout condition.
-//!
-//! \note This function will have no effect if the watchdog timer has
-//! been locked.
+//! This function enables the capability of the watchdog timer to issue a reset
+//! to the processor after a second timeout condition.
//!
+//! \note This function has no effect if the watchdog timer has been locked.
+//!
//! \sa WatchdogLock(), WatchdogUnlock()
//!
//! \return None.
@@ -130,11 +128,10 @@ WatchdogResetEnable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
-//! Disables the capability of the watchdog timer to issue a reset to the
-//! processor upon a second timeout condition.
+//! This function disables the capability of the watchdog timer to issue a
+//! reset to the processor after a second timeout condition.
//!
-//! \note This function will have no effect if the watchdog timer has
-//! been locked.
+//! \note This function has no effect if the watchdog timer has been locked.
//!
//! \sa WatchdogLock(), WatchdogUnlock()
//!
@@ -161,7 +158,8 @@ WatchdogResetDisable(unsigned long ulBase)
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
-//! Locks out write access to the watchdog timer configuration registers.
+//! This function locks out write access to the watchdog timer configuration
+//! registers.
//!
//! \return None.
//
@@ -187,7 +185,8 @@ WatchdogLock(unsigned long ulBase)
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
-//! Enables write access to the watchdog timer configuration registers.
+//! This function enables write access to the watchdog timer configuration
+//! registers.
//!
//! \return None.
//
@@ -212,7 +211,7 @@ WatchdogUnlock(unsigned long ulBase)
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
-//! Returns the lock state of the watchdog timer registers.
+//! This function returns the lock state of the watchdog timer registers.
//!
//! \return Returns \b true if the watchdog timer registers are locked, and
//! \b false if they are not locked.
@@ -239,14 +238,13 @@ WatchdogLockState(unsigned long ulBase)
//! \param ulBase is the base address of the watchdog timer module.
//! \param ulLoadVal is the load value for the watchdog timer.
//!
-//! This function sets the value to load into the watchdog timer when the count
-//! reaches zero for the first time; if the watchdog timer is running when this
-//! function is called, then the value is immediately loaded into the watchdog
-//! timer counter. If the \e ulLoadVal parameter is 0, then an interrupt is
-//! immediately generated.
+//! This function configures the value to load into the watchdog timer when the
+//! count reaches zero for the first time; if the watchdog timer is running
+//! when this function is called, then the value is immediately loaded into the
+//! watchdog timer counter. If the \e ulLoadVal parameter is 0, then an
+//! interrupt is immediately generated.
//!
-//! \note This function will have no effect if the watchdog timer has
-//! been locked.
+//! \note This function has no effect if the watchdog timer has been locked.
//!
//! \sa WatchdogLock(), WatchdogUnlock(), WatchdogReloadGet()
//!
@@ -322,25 +320,25 @@ WatchdogValueGet(unsigned long ulBase)
//*****************************************************************************
//
-//! Registers an interrupt handler for watchdog timer interrupt.
+//! Registers an interrupt handler for the watchdog timer interrupt.
//!
//! \param ulBase is the base address of the watchdog timer module.
//! \param pfnHandler is a pointer to the function to be called when the
//! watchdog timer interrupt occurs.
//!
//! This function does the actual registering of the interrupt handler. This
-//! will enable the global interrupt in the interrupt controller; the watchdog
-//! timer interrupt must be enabled via WatchdogEnable(). It is the interrupt
-//! handler's responsibility to clear the interrupt source via
+//! function also enables the global interrupt in the interrupt controller; the
+//! watchdog timer interrupt must be enabled via WatchdogEnable(). It is the
+//! interrupt handler's responsibility to clear the interrupt source via
//! WatchdogIntClear().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
//!
//! \note For parts with a watchdog timer module that has the ability to
-//! generate an NMI instead of a standard interrupt, this function will
-//! register the standard watchdog interrupt handler. To register the NMI
-//! watchdog handler, use IntRegister() to register the handler for the
+//! generate an NMI instead of a standard interrupt, this function registers
+//! the standard watchdog interrupt handler. To register the NMI watchdog
+//! handler, use IntRegister() to register the handler for the
//! \b FAULT_NMI interrupt.
//!
//! \return None.
@@ -372,17 +370,17 @@ WatchdogIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
//! \param ulBase is the base address of the watchdog timer module.
//!
//! This function does the actual unregistering of the interrupt handler. This
-//! function will clear the handler to be called when a watchdog timer
-//! interrupt occurs. This will also mask off the interrupt in the interrupt
+//! function clears the handler to be called when a watchdog timer interrupt
+//! occurs. This function also masks off the interrupt in the interrupt
//! controller so that the interrupt handler no longer is called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
//!
//! \note For parts with a watchdog timer module that has the ability to
-//! generate an NMI instead of a standard interrupt, this function will
-//! unregister the standard watchdog interrupt handler. To unregister the NMI
-//! watchdog handler, use IntUnregister() to unregister the handler for the
+//! generate an NMI instead of a standard interrupt, this function unregisters
+//! the standard watchdog interrupt handler. To unregister the NMI watchdog
+//! handler, use IntUnregister() to unregister the handler for the
//! \b FAULT_NMI interrupt.
//!
//! \return None.
@@ -413,10 +411,9 @@ WatchdogIntUnregister(unsigned long ulBase)
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
-//! Enables the watchdog timer interrupt.
+//! This function enables the watchdog timer interrupt.
//!
-//! \note This function will have no effect if the watchdog timer has
-//! been locked.
+//! \note This function has no effect if the watchdog timer has been locked.
//!
//! \sa WatchdogLock(), WatchdogUnlock(), WatchdogEnable()
//!
@@ -445,9 +442,9 @@ WatchdogIntEnable(unsigned long ulBase)
//! \param bMasked is \b false if the raw interrupt status is required and
//! \b true if the masked interrupt status is required.
//!
-//! This returns the interrupt status for the watchdog timer module. Either
-//! the raw interrupt status or the status of interrupt that is allowed to
-//! reflect to the processor can be returned.
+//! This function returns the interrupt status for the watchdog timer module.
+//! Either the raw interrupt status or the status of interrupt that is allowed
+//! to reflect to the processor can be returned.
//!
//! \return Returns the current interrupt status, where a 1 indicates that the
//! watchdog interrupt is active, and a 0 indicates that it is not active.
@@ -484,7 +481,7 @@ WatchdogIntStatus(unsigned long ulBase, tBoolean bMasked)
//! The watchdog timer interrupt source is cleared, so that it no longer
//! asserts.
//!
-//! \note Because there is a write buffer in the Cortex-M3 processor, it may
+//! \note Because there is a write buffer in the Cortex-M processor, it may
//! take several clock cycles before the interrupt source is actually cleared.
//! Therefore, it is recommended that the interrupt source be cleared early in
//! the interrupt handler (as opposed to the very last action) to avoid
@@ -559,9 +556,9 @@ WatchdogIntTypeSet(unsigned long ulBase, unsigned long ulType)
//! This function allows the watchdog timer to stop counting when the processor
//! is stopped by the debugger. By doing so, the watchdog is prevented from
//! expiring (typically almost immediately from a human time perspective) and
-//! resetting the system (if reset is enabled). The watchdog will instead
-//! expired after the appropriate number of processor cycles have been executed
-//! while debugging (or at the appropriate time after the processor has been
+//! resetting the system (if reset is enabled). The watchdog instead expires
+//! after the appropriate number of processor cycles have been executed while
+//! debugging (or at the appropriate time after the processor has been
//! restarted).
//!
//! \return None.
diff --git a/bsp/lm4f232/Libraries/driverlib/watchdog.h b/bsp/lm4f232/Libraries/driverlib/watchdog.h
index ca159a70b4..5efdcdbb23 100644
--- a/bsp/lm4f232/Libraries/driverlib/watchdog.h
+++ b/bsp/lm4f232/Libraries/driverlib/watchdog.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Peripheral Driver Library.
+// This is part of revision 8264 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/asmdefs.h b/bsp/lm4f232/Libraries/inc/asmdefs.h
index 38fe4b7484..cc9b5ef2f4 100644
--- a/bsp/lm4f232/Libraries/inc/asmdefs.h
+++ b/bsp/lm4f232/Libraries/inc/asmdefs.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/cr_project.xml b/bsp/lm4f232/Libraries/inc/cr_project.xml
deleted file mode 100644
index 7ba1836aeb..0000000000
--- a/bsp/lm4f232/Libraries/inc/cr_project.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
- {.*\.(ewd|ewp|eww|icf|Opt|sct|sgxx|Uv2|uvopt|uvproj|cmd)}
-
-
diff --git a/bsp/lm4f232/Libraries/inc/hw_adc.h b/bsp/lm4f232/Libraries/inc/hw_adc.h
index 332a23842f..4e02573cf8 100644
--- a/bsp/lm4f232/Libraries/inc/hw_adc.h
+++ b/bsp/lm4f232/Libraries/inc/hw_adc.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_can.h b/bsp/lm4f232/Libraries/inc/hw_can.h
index 8f608ae7e0..c1b3ae9a7c 100644
--- a/bsp/lm4f232/Libraries/inc/hw_can.h
+++ b/bsp/lm4f232/Libraries/inc/hw_can.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_comp.h b/bsp/lm4f232/Libraries/inc/hw_comp.h
index 234d57da4f..18e3b8262a 100644
--- a/bsp/lm4f232/Libraries/inc/hw_comp.h
+++ b/bsp/lm4f232/Libraries/inc/hw_comp.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_eeprom.h b/bsp/lm4f232/Libraries/inc/hw_eeprom.h
index 67a59c026a..6428bdecc8 100644
--- a/bsp/lm4f232/Libraries/inc/hw_eeprom.h
+++ b/bsp/lm4f232/Libraries/inc/hw_eeprom.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_epi.h b/bsp/lm4f232/Libraries/inc/hw_epi.h
index a34dabafd7..ab7d076ca2 100644
--- a/bsp/lm4f232/Libraries/inc/hw_epi.h
+++ b/bsp/lm4f232/Libraries/inc/hw_epi.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_ethernet.h b/bsp/lm4f232/Libraries/inc/hw_ethernet.h
index 6461772ebd..91da8867c1 100644
--- a/bsp/lm4f232/Libraries/inc/hw_ethernet.h
+++ b/bsp/lm4f232/Libraries/inc/hw_ethernet.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_fan.h b/bsp/lm4f232/Libraries/inc/hw_fan.h
index 6df7067e59..22f9f05553 100644
--- a/bsp/lm4f232/Libraries/inc/hw_fan.h
+++ b/bsp/lm4f232/Libraries/inc/hw_fan.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_flash.h b/bsp/lm4f232/Libraries/inc/hw_flash.h
index 2a72db116a..7a8c0697b3 100644
--- a/bsp/lm4f232/Libraries/inc/hw_flash.h
+++ b/bsp/lm4f232/Libraries/inc/hw_flash.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_gpio.h b/bsp/lm4f232/Libraries/inc/hw_gpio.h
index abeeeb4d3a..b2eaa072d9 100644
--- a/bsp/lm4f232/Libraries/inc/hw_gpio.h
+++ b/bsp/lm4f232/Libraries/inc/hw_gpio.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_hibernate.h b/bsp/lm4f232/Libraries/inc/hw_hibernate.h
index 37a76db3fc..46de994bc5 100644
--- a/bsp/lm4f232/Libraries/inc/hw_hibernate.h
+++ b/bsp/lm4f232/Libraries/inc/hw_hibernate.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_i2c.h b/bsp/lm4f232/Libraries/inc/hw_i2c.h
index ebeb9205b2..dccfdafada 100644
--- a/bsp/lm4f232/Libraries/inc/hw_i2c.h
+++ b/bsp/lm4f232/Libraries/inc/hw_i2c.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_i2s.h b/bsp/lm4f232/Libraries/inc/hw_i2s.h
index e0ba3d40c7..d139a79834 100644
--- a/bsp/lm4f232/Libraries/inc/hw_i2s.h
+++ b/bsp/lm4f232/Libraries/inc/hw_i2s.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_ints.h b/bsp/lm4f232/Libraries/inc/hw_ints.h
index 3d45969978..e2becd15b8 100644
--- a/bsp/lm4f232/Libraries/inc/hw_ints.h
+++ b/bsp/lm4f232/Libraries/inc/hw_ints.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_lpc.h b/bsp/lm4f232/Libraries/inc/hw_lpc.h
index 28bad99536..d39523f069 100644
--- a/bsp/lm4f232/Libraries/inc/hw_lpc.h
+++ b/bsp/lm4f232/Libraries/inc/hw_lpc.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_memmap.h b/bsp/lm4f232/Libraries/inc/hw_memmap.h
index af71904e48..1a50ad9f2b 100644
--- a/bsp/lm4f232/Libraries/inc/hw_memmap.h
+++ b/bsp/lm4f232/Libraries/inc/hw_memmap.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_nvic.h b/bsp/lm4f232/Libraries/inc/hw_nvic.h
index 1fa6c0206e..cdb06304b8 100644
--- a/bsp/lm4f232/Libraries/inc/hw_nvic.h
+++ b/bsp/lm4f232/Libraries/inc/hw_nvic.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_peci.h b/bsp/lm4f232/Libraries/inc/hw_peci.h
index f4d12059b1..012a0c821e 100644
--- a/bsp/lm4f232/Libraries/inc/hw_peci.h
+++ b/bsp/lm4f232/Libraries/inc/hw_peci.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_pwm.h b/bsp/lm4f232/Libraries/inc/hw_pwm.h
index 268aaf3140..82d55e9198 100644
--- a/bsp/lm4f232/Libraries/inc/hw_pwm.h
+++ b/bsp/lm4f232/Libraries/inc/hw_pwm.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_qei.h b/bsp/lm4f232/Libraries/inc/hw_qei.h
index 7d08aeede8..0348852ffe 100644
--- a/bsp/lm4f232/Libraries/inc/hw_qei.h
+++ b/bsp/lm4f232/Libraries/inc/hw_qei.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_ssi.h b/bsp/lm4f232/Libraries/inc/hw_ssi.h
index dd946bfe93..40be6a6de3 100644
--- a/bsp/lm4f232/Libraries/inc/hw_ssi.h
+++ b/bsp/lm4f232/Libraries/inc/hw_ssi.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_sysctl.h b/bsp/lm4f232/Libraries/inc/hw_sysctl.h
index 4cdd345f16..34ae0b5f21 100644
--- a/bsp/lm4f232/Libraries/inc/hw_sysctl.h
+++ b/bsp/lm4f232/Libraries/inc/hw_sysctl.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_sysexc.h b/bsp/lm4f232/Libraries/inc/hw_sysexc.h
index 4b5a9648d4..4dce20dec3 100644
--- a/bsp/lm4f232/Libraries/inc/hw_sysexc.h
+++ b/bsp/lm4f232/Libraries/inc/hw_sysexc.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_timer.h b/bsp/lm4f232/Libraries/inc/hw_timer.h
index 68ecad9809..b1d35979a8 100644
--- a/bsp/lm4f232/Libraries/inc/hw_timer.h
+++ b/bsp/lm4f232/Libraries/inc/hw_timer.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_types.h b/bsp/lm4f232/Libraries/inc/hw_types.h
index ab96c422e9..f08046f45a 100644
--- a/bsp/lm4f232/Libraries/inc/hw_types.h
+++ b/bsp/lm4f232/Libraries/inc/hw_types.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_uart.h b/bsp/lm4f232/Libraries/inc/hw_uart.h
index 0bacfa31b3..daf55d1312 100644
--- a/bsp/lm4f232/Libraries/inc/hw_uart.h
+++ b/bsp/lm4f232/Libraries/inc/hw_uart.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_udma.h b/bsp/lm4f232/Libraries/inc/hw_udma.h
index 11f14a83de..59466e6eca 100644
--- a/bsp/lm4f232/Libraries/inc/hw_udma.h
+++ b/bsp/lm4f232/Libraries/inc/hw_udma.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_usb.h b/bsp/lm4f232/Libraries/inc/hw_usb.h
index 763f9243bc..abee8349bc 100644
--- a/bsp/lm4f232/Libraries/inc/hw_usb.h
+++ b/bsp/lm4f232/Libraries/inc/hw_usb.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/hw_watchdog.h b/bsp/lm4f232/Libraries/inc/hw_watchdog.h
index 7fca54f31d..d00c90240d 100644
--- a/bsp/lm4f232/Libraries/inc/hw_watchdog.h
+++ b/bsp/lm4f232/Libraries/inc/hw_watchdog.h
@@ -18,7 +18,7 @@
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
+// This is part of revision 8264 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
diff --git a/bsp/lm4f232/Libraries/inc/lm4f232h5qd.h b/bsp/lm4f232/Libraries/inc/lm4f232h5qd.h
deleted file mode 100644
index 1728f3ee56..0000000000
--- a/bsp/lm4f232/Libraries/inc/lm4f232h5qd.h
+++ /dev/null
@@ -1,12986 +0,0 @@
-//*****************************************************************************
-//
-// lm4f232h5qd.h - LM4F232H5QD Register Definitions
-//
-// Copyright (c) 2011 Texas Instruments Incorporated. All rights reserved.
-// Software License Agreement
-//
-// Texas Instruments (TI) is supplying this software for use solely and
-// exclusively on TI's microcontroller products. The software is owned by
-// TI and/or its suppliers, and is protected under applicable copyright
-// laws. You may not combine this software with "viral" open-source
-// software in order to form a larger program.
-//
-// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
-// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
-// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
-// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
-// DAMAGES, FOR ANY REASON WHATSOEVER.
-//
-// This is part of revision 8049 of the Stellaris Firmware Development Package.
-//
-//*****************************************************************************
-
-#ifndef __LM4F232H5QD_H__
-#define __LM4F232H5QD_H__
-
-//*****************************************************************************
-//
-// Watchdog Timer registers (WATCHDOG0)
-//
-//*****************************************************************************
-#define WATCHDOG0_LOAD_R (*((volatile unsigned long *)0x40000000))
-#define WATCHDOG0_VALUE_R (*((volatile unsigned long *)0x40000004))
-#define WATCHDOG0_CTL_R (*((volatile unsigned long *)0x40000008))
-#define WATCHDOG0_ICR_R (*((volatile unsigned long *)0x4000000C))
-#define WATCHDOG0_RIS_R (*((volatile unsigned long *)0x40000010))
-#define WATCHDOG0_MIS_R (*((volatile unsigned long *)0x40000014))
-#define WATCHDOG0_TEST_R (*((volatile unsigned long *)0x40000418))
-#define WATCHDOG0_LOCK_R (*((volatile unsigned long *)0x40000C00))
-
-//*****************************************************************************
-//
-// Watchdog Timer registers (WATCHDOG1)
-//
-//*****************************************************************************
-#define WATCHDOG1_LOAD_R (*((volatile unsigned long *)0x40001000))
-#define WATCHDOG1_VALUE_R (*((volatile unsigned long *)0x40001004))
-#define WATCHDOG1_CTL_R (*((volatile unsigned long *)0x40001008))
-#define WATCHDOG1_ICR_R (*((volatile unsigned long *)0x4000100C))
-#define WATCHDOG1_RIS_R (*((volatile unsigned long *)0x40001010))
-#define WATCHDOG1_MIS_R (*((volatile unsigned long *)0x40001014))
-#define WATCHDOG1_TEST_R (*((volatile unsigned long *)0x40001418))
-#define WATCHDOG1_LOCK_R (*((volatile unsigned long *)0x40001C00))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTA)
-//
-//*****************************************************************************
-#define GPIO_PORTA_DATA_BITS_R ((volatile unsigned long *)0x40004000)
-#define GPIO_PORTA_DATA_R (*((volatile unsigned long *)0x400043FC))
-#define GPIO_PORTA_DIR_R (*((volatile unsigned long *)0x40004400))
-#define GPIO_PORTA_IS_R (*((volatile unsigned long *)0x40004404))
-#define GPIO_PORTA_IBE_R (*((volatile unsigned long *)0x40004408))
-#define GPIO_PORTA_IEV_R (*((volatile unsigned long *)0x4000440C))
-#define GPIO_PORTA_IM_R (*((volatile unsigned long *)0x40004410))
-#define GPIO_PORTA_RIS_R (*((volatile unsigned long *)0x40004414))
-#define GPIO_PORTA_MIS_R (*((volatile unsigned long *)0x40004418))
-#define GPIO_PORTA_ICR_R (*((volatile unsigned long *)0x4000441C))
-#define GPIO_PORTA_AFSEL_R (*((volatile unsigned long *)0x40004420))
-#define GPIO_PORTA_DR2R_R (*((volatile unsigned long *)0x40004500))
-#define GPIO_PORTA_DR4R_R (*((volatile unsigned long *)0x40004504))
-#define GPIO_PORTA_DR8R_R (*((volatile unsigned long *)0x40004508))
-#define GPIO_PORTA_ODR_R (*((volatile unsigned long *)0x4000450C))
-#define GPIO_PORTA_PUR_R (*((volatile unsigned long *)0x40004510))
-#define GPIO_PORTA_PDR_R (*((volatile unsigned long *)0x40004514))
-#define GPIO_PORTA_SLR_R (*((volatile unsigned long *)0x40004518))
-#define GPIO_PORTA_DEN_R (*((volatile unsigned long *)0x4000451C))
-#define GPIO_PORTA_LOCK_R (*((volatile unsigned long *)0x40004520))
-#define GPIO_PORTA_CR_R (*((volatile unsigned long *)0x40004524))
-#define GPIO_PORTA_AMSEL_R (*((volatile unsigned long *)0x40004528))
-#define GPIO_PORTA_PCTL_R (*((volatile unsigned long *)0x4000452C))
-#define GPIO_PORTA_ADCCTL_R (*((volatile unsigned long *)0x40004530))
-#define GPIO_PORTA_DMACTL_R (*((volatile unsigned long *)0x40004534))
-#define GPIO_PORTA_SI_R (*((volatile unsigned long *)0x40004538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTB)
-//
-//*****************************************************************************
-#define GPIO_PORTB_DATA_BITS_R ((volatile unsigned long *)0x40005000)
-#define GPIO_PORTB_DATA_R (*((volatile unsigned long *)0x400053FC))
-#define GPIO_PORTB_DIR_R (*((volatile unsigned long *)0x40005400))
-#define GPIO_PORTB_IS_R (*((volatile unsigned long *)0x40005404))
-#define GPIO_PORTB_IBE_R (*((volatile unsigned long *)0x40005408))
-#define GPIO_PORTB_IEV_R (*((volatile unsigned long *)0x4000540C))
-#define GPIO_PORTB_IM_R (*((volatile unsigned long *)0x40005410))
-#define GPIO_PORTB_RIS_R (*((volatile unsigned long *)0x40005414))
-#define GPIO_PORTB_MIS_R (*((volatile unsigned long *)0x40005418))
-#define GPIO_PORTB_ICR_R (*((volatile unsigned long *)0x4000541C))
-#define GPIO_PORTB_AFSEL_R (*((volatile unsigned long *)0x40005420))
-#define GPIO_PORTB_DR2R_R (*((volatile unsigned long *)0x40005500))
-#define GPIO_PORTB_DR4R_R (*((volatile unsigned long *)0x40005504))
-#define GPIO_PORTB_DR8R_R (*((volatile unsigned long *)0x40005508))
-#define GPIO_PORTB_ODR_R (*((volatile unsigned long *)0x4000550C))
-#define GPIO_PORTB_PUR_R (*((volatile unsigned long *)0x40005510))
-#define GPIO_PORTB_PDR_R (*((volatile unsigned long *)0x40005514))
-#define GPIO_PORTB_SLR_R (*((volatile unsigned long *)0x40005518))
-#define GPIO_PORTB_DEN_R (*((volatile unsigned long *)0x4000551C))
-#define GPIO_PORTB_LOCK_R (*((volatile unsigned long *)0x40005520))
-#define GPIO_PORTB_CR_R (*((volatile unsigned long *)0x40005524))
-#define GPIO_PORTB_AMSEL_R (*((volatile unsigned long *)0x40005528))
-#define GPIO_PORTB_PCTL_R (*((volatile unsigned long *)0x4000552C))
-#define GPIO_PORTB_ADCCTL_R (*((volatile unsigned long *)0x40005530))
-#define GPIO_PORTB_DMACTL_R (*((volatile unsigned long *)0x40005534))
-#define GPIO_PORTB_SI_R (*((volatile unsigned long *)0x40005538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTC)
-//
-//*****************************************************************************
-#define GPIO_PORTC_DATA_BITS_R ((volatile unsigned long *)0x40006000)
-#define GPIO_PORTC_DATA_R (*((volatile unsigned long *)0x400063FC))
-#define GPIO_PORTC_DIR_R (*((volatile unsigned long *)0x40006400))
-#define GPIO_PORTC_IS_R (*((volatile unsigned long *)0x40006404))
-#define GPIO_PORTC_IBE_R (*((volatile unsigned long *)0x40006408))
-#define GPIO_PORTC_IEV_R (*((volatile unsigned long *)0x4000640C))
-#define GPIO_PORTC_IM_R (*((volatile unsigned long *)0x40006410))
-#define GPIO_PORTC_RIS_R (*((volatile unsigned long *)0x40006414))
-#define GPIO_PORTC_MIS_R (*((volatile unsigned long *)0x40006418))
-#define GPIO_PORTC_ICR_R (*((volatile unsigned long *)0x4000641C))
-#define GPIO_PORTC_AFSEL_R (*((volatile unsigned long *)0x40006420))
-#define GPIO_PORTC_DR2R_R (*((volatile unsigned long *)0x40006500))
-#define GPIO_PORTC_DR4R_R (*((volatile unsigned long *)0x40006504))
-#define GPIO_PORTC_DR8R_R (*((volatile unsigned long *)0x40006508))
-#define GPIO_PORTC_ODR_R (*((volatile unsigned long *)0x4000650C))
-#define GPIO_PORTC_PUR_R (*((volatile unsigned long *)0x40006510))
-#define GPIO_PORTC_PDR_R (*((volatile unsigned long *)0x40006514))
-#define GPIO_PORTC_SLR_R (*((volatile unsigned long *)0x40006518))
-#define GPIO_PORTC_DEN_R (*((volatile unsigned long *)0x4000651C))
-#define GPIO_PORTC_LOCK_R (*((volatile unsigned long *)0x40006520))
-#define GPIO_PORTC_CR_R (*((volatile unsigned long *)0x40006524))
-#define GPIO_PORTC_AMSEL_R (*((volatile unsigned long *)0x40006528))
-#define GPIO_PORTC_PCTL_R (*((volatile unsigned long *)0x4000652C))
-#define GPIO_PORTC_ADCCTL_R (*((volatile unsigned long *)0x40006530))
-#define GPIO_PORTC_DMACTL_R (*((volatile unsigned long *)0x40006534))
-#define GPIO_PORTC_SI_R (*((volatile unsigned long *)0x40006538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTD)
-//
-//*****************************************************************************
-#define GPIO_PORTD_DATA_BITS_R ((volatile unsigned long *)0x40007000)
-#define GPIO_PORTD_DATA_R (*((volatile unsigned long *)0x400073FC))
-#define GPIO_PORTD_DIR_R (*((volatile unsigned long *)0x40007400))
-#define GPIO_PORTD_IS_R (*((volatile unsigned long *)0x40007404))
-#define GPIO_PORTD_IBE_R (*((volatile unsigned long *)0x40007408))
-#define GPIO_PORTD_IEV_R (*((volatile unsigned long *)0x4000740C))
-#define GPIO_PORTD_IM_R (*((volatile unsigned long *)0x40007410))
-#define GPIO_PORTD_RIS_R (*((volatile unsigned long *)0x40007414))
-#define GPIO_PORTD_MIS_R (*((volatile unsigned long *)0x40007418))
-#define GPIO_PORTD_ICR_R (*((volatile unsigned long *)0x4000741C))
-#define GPIO_PORTD_AFSEL_R (*((volatile unsigned long *)0x40007420))
-#define GPIO_PORTD_DR2R_R (*((volatile unsigned long *)0x40007500))
-#define GPIO_PORTD_DR4R_R (*((volatile unsigned long *)0x40007504))
-#define GPIO_PORTD_DR8R_R (*((volatile unsigned long *)0x40007508))
-#define GPIO_PORTD_ODR_R (*((volatile unsigned long *)0x4000750C))
-#define GPIO_PORTD_PUR_R (*((volatile unsigned long *)0x40007510))
-#define GPIO_PORTD_PDR_R (*((volatile unsigned long *)0x40007514))
-#define GPIO_PORTD_SLR_R (*((volatile unsigned long *)0x40007518))
-#define GPIO_PORTD_DEN_R (*((volatile unsigned long *)0x4000751C))
-#define GPIO_PORTD_LOCK_R (*((volatile unsigned long *)0x40007520))
-#define GPIO_PORTD_CR_R (*((volatile unsigned long *)0x40007524))
-#define GPIO_PORTD_AMSEL_R (*((volatile unsigned long *)0x40007528))
-#define GPIO_PORTD_PCTL_R (*((volatile unsigned long *)0x4000752C))
-#define GPIO_PORTD_ADCCTL_R (*((volatile unsigned long *)0x40007530))
-#define GPIO_PORTD_DMACTL_R (*((volatile unsigned long *)0x40007534))
-#define GPIO_PORTD_SI_R (*((volatile unsigned long *)0x40007538))
-
-//*****************************************************************************
-//
-// SSI registers (SSI0)
-//
-//*****************************************************************************
-#define SSI0_CR0_R (*((volatile unsigned long *)0x40008000))
-#define SSI0_CR1_R (*((volatile unsigned long *)0x40008004))
-#define SSI0_DR_R (*((volatile unsigned long *)0x40008008))
-#define SSI0_SR_R (*((volatile unsigned long *)0x4000800C))
-#define SSI0_CPSR_R (*((volatile unsigned long *)0x40008010))
-#define SSI0_IM_R (*((volatile unsigned long *)0x40008014))
-#define SSI0_RIS_R (*((volatile unsigned long *)0x40008018))
-#define SSI0_MIS_R (*((volatile unsigned long *)0x4000801C))
-#define SSI0_ICR_R (*((volatile unsigned long *)0x40008020))
-#define SSI0_DMACTL_R (*((volatile unsigned long *)0x40008024))
-#define SSI0_CC_R (*((volatile unsigned long *)0x40008FC8))
-
-//*****************************************************************************
-//
-// SSI registers (SSI1)
-//
-//*****************************************************************************
-#define SSI1_CR0_R (*((volatile unsigned long *)0x40009000))
-#define SSI1_CR1_R (*((volatile unsigned long *)0x40009004))
-#define SSI1_DR_R (*((volatile unsigned long *)0x40009008))
-#define SSI1_SR_R (*((volatile unsigned long *)0x4000900C))
-#define SSI1_CPSR_R (*((volatile unsigned long *)0x40009010))
-#define SSI1_IM_R (*((volatile unsigned long *)0x40009014))
-#define SSI1_RIS_R (*((volatile unsigned long *)0x40009018))
-#define SSI1_MIS_R (*((volatile unsigned long *)0x4000901C))
-#define SSI1_ICR_R (*((volatile unsigned long *)0x40009020))
-#define SSI1_DMACTL_R (*((volatile unsigned long *)0x40009024))
-#define SSI1_CC_R (*((volatile unsigned long *)0x40009FC8))
-
-//*****************************************************************************
-//
-// SSI registers (SSI2)
-//
-//*****************************************************************************
-#define SSI2_CR0_R (*((volatile unsigned long *)0x4000A000))
-#define SSI2_CR1_R (*((volatile unsigned long *)0x4000A004))
-#define SSI2_DR_R (*((volatile unsigned long *)0x4000A008))
-#define SSI2_SR_R (*((volatile unsigned long *)0x4000A00C))
-#define SSI2_CPSR_R (*((volatile unsigned long *)0x4000A010))
-#define SSI2_IM_R (*((volatile unsigned long *)0x4000A014))
-#define SSI2_RIS_R (*((volatile unsigned long *)0x4000A018))
-#define SSI2_MIS_R (*((volatile unsigned long *)0x4000A01C))
-#define SSI2_ICR_R (*((volatile unsigned long *)0x4000A020))
-#define SSI2_DMACTL_R (*((volatile unsigned long *)0x4000A024))
-#define SSI2_CC_R (*((volatile unsigned long *)0x4000AFC8))
-
-//*****************************************************************************
-//
-// SSI registers (SSI3)
-//
-//*****************************************************************************
-#define SSI3_CR0_R (*((volatile unsigned long *)0x4000B000))
-#define SSI3_CR1_R (*((volatile unsigned long *)0x4000B004))
-#define SSI3_DR_R (*((volatile unsigned long *)0x4000B008))
-#define SSI3_SR_R (*((volatile unsigned long *)0x4000B00C))
-#define SSI3_CPSR_R (*((volatile unsigned long *)0x4000B010))
-#define SSI3_IM_R (*((volatile unsigned long *)0x4000B014))
-#define SSI3_RIS_R (*((volatile unsigned long *)0x4000B018))
-#define SSI3_MIS_R (*((volatile unsigned long *)0x4000B01C))
-#define SSI3_ICR_R (*((volatile unsigned long *)0x4000B020))
-#define SSI3_DMACTL_R (*((volatile unsigned long *)0x4000B024))
-#define SSI3_CC_R (*((volatile unsigned long *)0x4000BFC8))
-
-//*****************************************************************************
-//
-// UART registers (UART0)
-//
-//*****************************************************************************
-#define UART0_DR_R (*((volatile unsigned long *)0x4000C000))
-#define UART0_RSR_R (*((volatile unsigned long *)0x4000C004))
-#define UART0_ECR_R (*((volatile unsigned long *)0x4000C004))
-#define UART0_FR_R (*((volatile unsigned long *)0x4000C018))
-#define UART0_ILPR_R (*((volatile unsigned long *)0x4000C020))
-#define UART0_IBRD_R (*((volatile unsigned long *)0x4000C024))
-#define UART0_FBRD_R (*((volatile unsigned long *)0x4000C028))
-#define UART0_LCRH_R (*((volatile unsigned long *)0x4000C02C))
-#define UART0_CTL_R (*((volatile unsigned long *)0x4000C030))
-#define UART0_IFLS_R (*((volatile unsigned long *)0x4000C034))
-#define UART0_IM_R (*((volatile unsigned long *)0x4000C038))
-#define UART0_RIS_R (*((volatile unsigned long *)0x4000C03C))
-#define UART0_MIS_R (*((volatile unsigned long *)0x4000C040))
-#define UART0_ICR_R (*((volatile unsigned long *)0x4000C044))
-#define UART0_DMACTL_R (*((volatile unsigned long *)0x4000C048))
-#define UART0_LCTL_R (*((volatile unsigned long *)0x4000C090))
-#define UART0_LSS_R (*((volatile unsigned long *)0x4000C094))
-#define UART0_LTIM_R (*((volatile unsigned long *)0x4000C098))
-#define UART0_9BITADDR_R (*((volatile unsigned long *)0x4000C0A4))
-#define UART0_9BITAMASK_R (*((volatile unsigned long *)0x4000C0A8))
-#define UART0_PP_R (*((volatile unsigned long *)0x4000CFC0))
-#define UART0_CC_R (*((volatile unsigned long *)0x4000CFC8))
-
-//*****************************************************************************
-//
-// UART registers (UART1)
-//
-//*****************************************************************************
-#define UART1_DR_R (*((volatile unsigned long *)0x4000D000))
-#define UART1_RSR_R (*((volatile unsigned long *)0x4000D004))
-#define UART1_ECR_R (*((volatile unsigned long *)0x4000D004))
-#define UART1_FR_R (*((volatile unsigned long *)0x4000D018))
-#define UART1_ILPR_R (*((volatile unsigned long *)0x4000D020))
-#define UART1_IBRD_R (*((volatile unsigned long *)0x4000D024))
-#define UART1_FBRD_R (*((volatile unsigned long *)0x4000D028))
-#define UART1_LCRH_R (*((volatile unsigned long *)0x4000D02C))
-#define UART1_CTL_R (*((volatile unsigned long *)0x4000D030))
-#define UART1_IFLS_R (*((volatile unsigned long *)0x4000D034))
-#define UART1_IM_R (*((volatile unsigned long *)0x4000D038))
-#define UART1_RIS_R (*((volatile unsigned long *)0x4000D03C))
-#define UART1_MIS_R (*((volatile unsigned long *)0x4000D040))
-#define UART1_ICR_R (*((volatile unsigned long *)0x4000D044))
-#define UART1_DMACTL_R (*((volatile unsigned long *)0x4000D048))
-#define UART1_LCTL_R (*((volatile unsigned long *)0x4000D090))
-#define UART1_LSS_R (*((volatile unsigned long *)0x4000D094))
-#define UART1_LTIM_R (*((volatile unsigned long *)0x4000D098))
-#define UART1_9BITADDR_R (*((volatile unsigned long *)0x4000D0A4))
-#define UART1_9BITAMASK_R (*((volatile unsigned long *)0x4000D0A8))
-#define UART1_PP_R (*((volatile unsigned long *)0x4000DFC0))
-#define UART1_CC_R (*((volatile unsigned long *)0x4000DFC8))
-
-//*****************************************************************************
-//
-// UART registers (UART2)
-//
-//*****************************************************************************
-#define UART2_DR_R (*((volatile unsigned long *)0x4000E000))
-#define UART2_RSR_R (*((volatile unsigned long *)0x4000E004))
-#define UART2_ECR_R (*((volatile unsigned long *)0x4000E004))
-#define UART2_FR_R (*((volatile unsigned long *)0x4000E018))
-#define UART2_ILPR_R (*((volatile unsigned long *)0x4000E020))
-#define UART2_IBRD_R (*((volatile unsigned long *)0x4000E024))
-#define UART2_FBRD_R (*((volatile unsigned long *)0x4000E028))
-#define UART2_LCRH_R (*((volatile unsigned long *)0x4000E02C))
-#define UART2_CTL_R (*((volatile unsigned long *)0x4000E030))
-#define UART2_IFLS_R (*((volatile unsigned long *)0x4000E034))
-#define UART2_IM_R (*((volatile unsigned long *)0x4000E038))
-#define UART2_RIS_R (*((volatile unsigned long *)0x4000E03C))
-#define UART2_MIS_R (*((volatile unsigned long *)0x4000E040))
-#define UART2_ICR_R (*((volatile unsigned long *)0x4000E044))
-#define UART2_DMACTL_R (*((volatile unsigned long *)0x4000E048))
-#define UART2_LCTL_R (*((volatile unsigned long *)0x4000E090))
-#define UART2_LSS_R (*((volatile unsigned long *)0x4000E094))
-#define UART2_LTIM_R (*((volatile unsigned long *)0x4000E098))
-#define UART2_9BITADDR_R (*((volatile unsigned long *)0x4000E0A4))
-#define UART2_9BITAMASK_R (*((volatile unsigned long *)0x4000E0A8))
-#define UART2_PP_R (*((volatile unsigned long *)0x4000EFC0))
-#define UART2_CC_R (*((volatile unsigned long *)0x4000EFC8))
-
-//*****************************************************************************
-//
-// UART registers (UART3)
-//
-//*****************************************************************************
-#define UART3_DR_R (*((volatile unsigned long *)0x4000F000))
-#define UART3_RSR_R (*((volatile unsigned long *)0x4000F004))
-#define UART3_ECR_R (*((volatile unsigned long *)0x4000F004))
-#define UART3_FR_R (*((volatile unsigned long *)0x4000F018))
-#define UART3_ILPR_R (*((volatile unsigned long *)0x4000F020))
-#define UART3_IBRD_R (*((volatile unsigned long *)0x4000F024))
-#define UART3_FBRD_R (*((volatile unsigned long *)0x4000F028))
-#define UART3_LCRH_R (*((volatile unsigned long *)0x4000F02C))
-#define UART3_CTL_R (*((volatile unsigned long *)0x4000F030))
-#define UART3_IFLS_R (*((volatile unsigned long *)0x4000F034))
-#define UART3_IM_R (*((volatile unsigned long *)0x4000F038))
-#define UART3_RIS_R (*((volatile unsigned long *)0x4000F03C))
-#define UART3_MIS_R (*((volatile unsigned long *)0x4000F040))
-#define UART3_ICR_R (*((volatile unsigned long *)0x4000F044))
-#define UART3_DMACTL_R (*((volatile unsigned long *)0x4000F048))
-#define UART3_LCTL_R (*((volatile unsigned long *)0x4000F090))
-#define UART3_LSS_R (*((volatile unsigned long *)0x4000F094))
-#define UART3_LTIM_R (*((volatile unsigned long *)0x4000F098))
-#define UART3_9BITADDR_R (*((volatile unsigned long *)0x4000F0A4))
-#define UART3_9BITAMASK_R (*((volatile unsigned long *)0x4000F0A8))
-#define UART3_PP_R (*((volatile unsigned long *)0x4000FFC0))
-#define UART3_CC_R (*((volatile unsigned long *)0x4000FFC8))
-
-//*****************************************************************************
-//
-// UART registers (UART4)
-//
-//*****************************************************************************
-#define UART4_DR_R (*((volatile unsigned long *)0x40010000))
-#define UART4_RSR_R (*((volatile unsigned long *)0x40010004))
-#define UART4_ECR_R (*((volatile unsigned long *)0x40010004))
-#define UART4_FR_R (*((volatile unsigned long *)0x40010018))
-#define UART4_ILPR_R (*((volatile unsigned long *)0x40010020))
-#define UART4_IBRD_R (*((volatile unsigned long *)0x40010024))
-#define UART4_FBRD_R (*((volatile unsigned long *)0x40010028))
-#define UART4_LCRH_R (*((volatile unsigned long *)0x4001002C))
-#define UART4_CTL_R (*((volatile unsigned long *)0x40010030))
-#define UART4_IFLS_R (*((volatile unsigned long *)0x40010034))
-#define UART4_IM_R (*((volatile unsigned long *)0x40010038))
-#define UART4_RIS_R (*((volatile unsigned long *)0x4001003C))
-#define UART4_MIS_R (*((volatile unsigned long *)0x40010040))
-#define UART4_ICR_R (*((volatile unsigned long *)0x40010044))
-#define UART4_DMACTL_R (*((volatile unsigned long *)0x40010048))
-#define UART4_LCTL_R (*((volatile unsigned long *)0x40010090))
-#define UART4_LSS_R (*((volatile unsigned long *)0x40010094))
-#define UART4_LTIM_R (*((volatile unsigned long *)0x40010098))
-#define UART4_9BITADDR_R (*((volatile unsigned long *)0x400100A4))
-#define UART4_9BITAMASK_R (*((volatile unsigned long *)0x400100A8))
-#define UART4_PP_R (*((volatile unsigned long *)0x40010FC0))
-#define UART4_CC_R (*((volatile unsigned long *)0x40010FC8))
-
-//*****************************************************************************
-//
-// UART registers (UART5)
-//
-//*****************************************************************************
-#define UART5_DR_R (*((volatile unsigned long *)0x40011000))
-#define UART5_RSR_R (*((volatile unsigned long *)0x40011004))
-#define UART5_ECR_R (*((volatile unsigned long *)0x40011004))
-#define UART5_FR_R (*((volatile unsigned long *)0x40011018))
-#define UART5_ILPR_R (*((volatile unsigned long *)0x40011020))
-#define UART5_IBRD_R (*((volatile unsigned long *)0x40011024))
-#define UART5_FBRD_R (*((volatile unsigned long *)0x40011028))
-#define UART5_LCRH_R (*((volatile unsigned long *)0x4001102C))
-#define UART5_CTL_R (*((volatile unsigned long *)0x40011030))
-#define UART5_IFLS_R (*((volatile unsigned long *)0x40011034))
-#define UART5_IM_R (*((volatile unsigned long *)0x40011038))
-#define UART5_RIS_R (*((volatile unsigned long *)0x4001103C))
-#define UART5_MIS_R (*((volatile unsigned long *)0x40011040))
-#define UART5_ICR_R (*((volatile unsigned long *)0x40011044))
-#define UART5_DMACTL_R (*((volatile unsigned long *)0x40011048))
-#define UART5_LCTL_R (*((volatile unsigned long *)0x40011090))
-#define UART5_LSS_R (*((volatile unsigned long *)0x40011094))
-#define UART5_LTIM_R (*((volatile unsigned long *)0x40011098))
-#define UART5_9BITADDR_R (*((volatile unsigned long *)0x400110A4))
-#define UART5_9BITAMASK_R (*((volatile unsigned long *)0x400110A8))
-#define UART5_PP_R (*((volatile unsigned long *)0x40011FC0))
-#define UART5_CC_R (*((volatile unsigned long *)0x40011FC8))
-
-//*****************************************************************************
-//
-// UART registers (UART6)
-//
-//*****************************************************************************
-#define UART6_DR_R (*((volatile unsigned long *)0x40012000))
-#define UART6_RSR_R (*((volatile unsigned long *)0x40012004))
-#define UART6_ECR_R (*((volatile unsigned long *)0x40012004))
-#define UART6_FR_R (*((volatile unsigned long *)0x40012018))
-#define UART6_ILPR_R (*((volatile unsigned long *)0x40012020))
-#define UART6_IBRD_R (*((volatile unsigned long *)0x40012024))
-#define UART6_FBRD_R (*((volatile unsigned long *)0x40012028))
-#define UART6_LCRH_R (*((volatile unsigned long *)0x4001202C))
-#define UART6_CTL_R (*((volatile unsigned long *)0x40012030))
-#define UART6_IFLS_R (*((volatile unsigned long *)0x40012034))
-#define UART6_IM_R (*((volatile unsigned long *)0x40012038))
-#define UART6_RIS_R (*((volatile unsigned long *)0x4001203C))
-#define UART6_MIS_R (*((volatile unsigned long *)0x40012040))
-#define UART6_ICR_R (*((volatile unsigned long *)0x40012044))
-#define UART6_DMACTL_R (*((volatile unsigned long *)0x40012048))
-#define UART6_LCTL_R (*((volatile unsigned long *)0x40012090))
-#define UART6_LSS_R (*((volatile unsigned long *)0x40012094))
-#define UART6_LTIM_R (*((volatile unsigned long *)0x40012098))
-#define UART6_9BITADDR_R (*((volatile unsigned long *)0x400120A4))
-#define UART6_9BITAMASK_R (*((volatile unsigned long *)0x400120A8))
-#define UART6_PP_R (*((volatile unsigned long *)0x40012FC0))
-#define UART6_CC_R (*((volatile unsigned long *)0x40012FC8))
-
-//*****************************************************************************
-//
-// UART registers (UART7)
-//
-//*****************************************************************************
-#define UART7_DR_R (*((volatile unsigned long *)0x40013000))
-#define UART7_RSR_R (*((volatile unsigned long *)0x40013004))
-#define UART7_ECR_R (*((volatile unsigned long *)0x40013004))
-#define UART7_FR_R (*((volatile unsigned long *)0x40013018))
-#define UART7_ILPR_R (*((volatile unsigned long *)0x40013020))
-#define UART7_IBRD_R (*((volatile unsigned long *)0x40013024))
-#define UART7_FBRD_R (*((volatile unsigned long *)0x40013028))
-#define UART7_LCRH_R (*((volatile unsigned long *)0x4001302C))
-#define UART7_CTL_R (*((volatile unsigned long *)0x40013030))
-#define UART7_IFLS_R (*((volatile unsigned long *)0x40013034))
-#define UART7_IM_R (*((volatile unsigned long *)0x40013038))
-#define UART7_RIS_R (*((volatile unsigned long *)0x4001303C))
-#define UART7_MIS_R (*((volatile unsigned long *)0x40013040))
-#define UART7_ICR_R (*((volatile unsigned long *)0x40013044))
-#define UART7_DMACTL_R (*((volatile unsigned long *)0x40013048))
-#define UART7_LCTL_R (*((volatile unsigned long *)0x40013090))
-#define UART7_LSS_R (*((volatile unsigned long *)0x40013094))
-#define UART7_LTIM_R (*((volatile unsigned long *)0x40013098))
-#define UART7_9BITADDR_R (*((volatile unsigned long *)0x400130A4))
-#define UART7_9BITAMASK_R (*((volatile unsigned long *)0x400130A8))
-#define UART7_PP_R (*((volatile unsigned long *)0x40013FC0))
-#define UART7_CC_R (*((volatile unsigned long *)0x40013FC8))
-
-//*****************************************************************************
-//
-// I2C registers (I2C0 MASTER)
-//
-//*****************************************************************************
-#define I2C0_MASTER_MSA_R (*((volatile unsigned long *)0x40020000))
-#define I2C0_MASTER_MCS_R (*((volatile unsigned long *)0x40020004))
-#define I2C0_MASTER_MDR_R (*((volatile unsigned long *)0x40020008))
-#define I2C0_MASTER_MTPR_R (*((volatile unsigned long *)0x4002000C))
-#define I2C0_MASTER_MIMR_R (*((volatile unsigned long *)0x40020010))
-#define I2C0_MASTER_MRIS_R (*((volatile unsigned long *)0x40020014))
-#define I2C0_MASTER_MMIS_R (*((volatile unsigned long *)0x40020018))
-#define I2C0_MASTER_MICR_R (*((volatile unsigned long *)0x4002001C))
-#define I2C0_MASTER_MCR_R (*((volatile unsigned long *)0x40020020))
-#define I2C0_MASTER_MCLKOCNT_R (*((volatile unsigned long *)0x40020024))
-#define I2C0_MASTER_MBMON_R (*((volatile unsigned long *)0x4002002C))
-
-//*****************************************************************************
-//
-// I2C registers (I2C0 SLAVE)
-//
-//*****************************************************************************
-#define I2C0_SLAVE_SOAR_R (*((volatile unsigned long *)0x40020800))
-#define I2C0_SLAVE_SCSR_R (*((volatile unsigned long *)0x40020804))
-#define I2C0_SLAVE_SDR_R (*((volatile unsigned long *)0x40020808))
-#define I2C0_SLAVE_SIMR_R (*((volatile unsigned long *)0x4002080C))
-#define I2C0_SLAVE_SRIS_R (*((volatile unsigned long *)0x40020810))
-#define I2C0_SLAVE_SMIS_R (*((volatile unsigned long *)0x40020814))
-#define I2C0_SLAVE_SICR_R (*((volatile unsigned long *)0x40020818))
-#define I2C0_SLAVE_SOAR2_R (*((volatile unsigned long *)0x4002081C))
-#define I2C0_SLAVE_SACKCTL_R (*((volatile unsigned long *)0x40020820))
-
-//*****************************************************************************
-//
-// I2C registers (I2C1 MASTER)
-//
-//*****************************************************************************
-#define I2C1_MASTER_MSA_R (*((volatile unsigned long *)0x40021000))
-#define I2C1_MASTER_MCS_R (*((volatile unsigned long *)0x40021004))
-#define I2C1_MASTER_MDR_R (*((volatile unsigned long *)0x40021008))
-#define I2C1_MASTER_MTPR_R (*((volatile unsigned long *)0x4002100C))
-#define I2C1_MASTER_MIMR_R (*((volatile unsigned long *)0x40021010))
-#define I2C1_MASTER_MRIS_R (*((volatile unsigned long *)0x40021014))
-#define I2C1_MASTER_MMIS_R (*((volatile unsigned long *)0x40021018))
-#define I2C1_MASTER_MICR_R (*((volatile unsigned long *)0x4002101C))
-#define I2C1_MASTER_MCR_R (*((volatile unsigned long *)0x40021020))
-#define I2C1_MASTER_MCLKOCNT_R (*((volatile unsigned long *)0x40021024))
-#define I2C1_MASTER_MBMON_R (*((volatile unsigned long *)0x4002102C))
-
-//*****************************************************************************
-//
-// I2C registers (I2C1 SLAVE)
-//
-//*****************************************************************************
-#define I2C1_SLAVE_SOAR_R (*((volatile unsigned long *)0x40021800))
-#define I2C1_SLAVE_SCSR_R (*((volatile unsigned long *)0x40021804))
-#define I2C1_SLAVE_SDR_R (*((volatile unsigned long *)0x40021808))
-#define I2C1_SLAVE_SIMR_R (*((volatile unsigned long *)0x4002180C))
-#define I2C1_SLAVE_SRIS_R (*((volatile unsigned long *)0x40021810))
-#define I2C1_SLAVE_SMIS_R (*((volatile unsigned long *)0x40021814))
-#define I2C1_SLAVE_SICR_R (*((volatile unsigned long *)0x40021818))
-#define I2C1_SLAVE_SOAR2_R (*((volatile unsigned long *)0x4002181C))
-#define I2C1_SLAVE_SACKCTL_R (*((volatile unsigned long *)0x40021820))
-
-//*****************************************************************************
-//
-// I2C registers (I2C2 MASTER)
-//
-//*****************************************************************************
-#define I2C2_MASTER_MSA_R (*((volatile unsigned long *)0x40022000))
-#define I2C2_MASTER_MCS_R (*((volatile unsigned long *)0x40022004))
-#define I2C2_MASTER_MDR_R (*((volatile unsigned long *)0x40022008))
-#define I2C2_MASTER_MTPR_R (*((volatile unsigned long *)0x4002200C))
-#define I2C2_MASTER_MIMR_R (*((volatile unsigned long *)0x40022010))
-#define I2C2_MASTER_MRIS_R (*((volatile unsigned long *)0x40022014))
-#define I2C2_MASTER_MMIS_R (*((volatile unsigned long *)0x40022018))
-#define I2C2_MASTER_MICR_R (*((volatile unsigned long *)0x4002201C))
-#define I2C2_MASTER_MCR_R (*((volatile unsigned long *)0x40022020))
-#define I2C2_MASTER_MCLKOCNT_R (*((volatile unsigned long *)0x40022024))
-#define I2C2_MASTER_MBMON_R (*((volatile unsigned long *)0x4002202C))
-
-//*****************************************************************************
-//
-// I2C registers (I2C2 SLAVE)
-//
-//*****************************************************************************
-#define I2C2_SLAVE_SOAR_R (*((volatile unsigned long *)0x40022800))
-#define I2C2_SLAVE_SCSR_R (*((volatile unsigned long *)0x40022804))
-#define I2C2_SLAVE_SDR_R (*((volatile unsigned long *)0x40022808))
-#define I2C2_SLAVE_SIMR_R (*((volatile unsigned long *)0x4002280C))
-#define I2C2_SLAVE_SRIS_R (*((volatile unsigned long *)0x40022810))
-#define I2C2_SLAVE_SMIS_R (*((volatile unsigned long *)0x40022814))
-#define I2C2_SLAVE_SICR_R (*((volatile unsigned long *)0x40022818))
-#define I2C2_SLAVE_SOAR2_R (*((volatile unsigned long *)0x4002281C))
-#define I2C2_SLAVE_SACKCTL_R (*((volatile unsigned long *)0x40022820))
-
-//*****************************************************************************
-//
-// I2C registers (I2C3 MASTER)
-//
-//*****************************************************************************
-#define I2C3_MASTER_MSA_R (*((volatile unsigned long *)0x40023000))
-#define I2C3_MASTER_MCS_R (*((volatile unsigned long *)0x40023004))
-#define I2C3_MASTER_MDR_R (*((volatile unsigned long *)0x40023008))
-#define I2C3_MASTER_MTPR_R (*((volatile unsigned long *)0x4002300C))
-#define I2C3_MASTER_MIMR_R (*((volatile unsigned long *)0x40023010))
-#define I2C3_MASTER_MRIS_R (*((volatile unsigned long *)0x40023014))
-#define I2C3_MASTER_MMIS_R (*((volatile unsigned long *)0x40023018))
-#define I2C3_MASTER_MICR_R (*((volatile unsigned long *)0x4002301C))
-#define I2C3_MASTER_MCR_R (*((volatile unsigned long *)0x40023020))
-#define I2C3_MASTER_MCLKOCNT_R (*((volatile unsigned long *)0x40023024))
-#define I2C3_MASTER_MBMON_R (*((volatile unsigned long *)0x4002302C))
-
-//*****************************************************************************
-//
-// I2C registers (I2C3 SLAVE)
-//
-//*****************************************************************************
-#define I2C3_SLAVE_SOAR_R (*((volatile unsigned long *)0x40023800))
-#define I2C3_SLAVE_SCSR_R (*((volatile unsigned long *)0x40023804))
-#define I2C3_SLAVE_SDR_R (*((volatile unsigned long *)0x40023808))
-#define I2C3_SLAVE_SIMR_R (*((volatile unsigned long *)0x4002380C))
-#define I2C3_SLAVE_SRIS_R (*((volatile unsigned long *)0x40023810))
-#define I2C3_SLAVE_SMIS_R (*((volatile unsigned long *)0x40023814))
-#define I2C3_SLAVE_SICR_R (*((volatile unsigned long *)0x40023818))
-#define I2C3_SLAVE_SOAR2_R (*((volatile unsigned long *)0x4002381C))
-#define I2C3_SLAVE_SACKCTL_R (*((volatile unsigned long *)0x40023820))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTE)
-//
-//*****************************************************************************
-#define GPIO_PORTE_DATA_BITS_R ((volatile unsigned long *)0x40024000)
-#define GPIO_PORTE_DATA_R (*((volatile unsigned long *)0x400243FC))
-#define GPIO_PORTE_DIR_R (*((volatile unsigned long *)0x40024400))
-#define GPIO_PORTE_IS_R (*((volatile unsigned long *)0x40024404))
-#define GPIO_PORTE_IBE_R (*((volatile unsigned long *)0x40024408))
-#define GPIO_PORTE_IEV_R (*((volatile unsigned long *)0x4002440C))
-#define GPIO_PORTE_IM_R (*((volatile unsigned long *)0x40024410))
-#define GPIO_PORTE_RIS_R (*((volatile unsigned long *)0x40024414))
-#define GPIO_PORTE_MIS_R (*((volatile unsigned long *)0x40024418))
-#define GPIO_PORTE_ICR_R (*((volatile unsigned long *)0x4002441C))
-#define GPIO_PORTE_AFSEL_R (*((volatile unsigned long *)0x40024420))
-#define GPIO_PORTE_DR2R_R (*((volatile unsigned long *)0x40024500))
-#define GPIO_PORTE_DR4R_R (*((volatile unsigned long *)0x40024504))
-#define GPIO_PORTE_DR8R_R (*((volatile unsigned long *)0x40024508))
-#define GPIO_PORTE_ODR_R (*((volatile unsigned long *)0x4002450C))
-#define GPIO_PORTE_PUR_R (*((volatile unsigned long *)0x40024510))
-#define GPIO_PORTE_PDR_R (*((volatile unsigned long *)0x40024514))
-#define GPIO_PORTE_SLR_R (*((volatile unsigned long *)0x40024518))
-#define GPIO_PORTE_DEN_R (*((volatile unsigned long *)0x4002451C))
-#define GPIO_PORTE_LOCK_R (*((volatile unsigned long *)0x40024520))
-#define GPIO_PORTE_CR_R (*((volatile unsigned long *)0x40024524))
-#define GPIO_PORTE_AMSEL_R (*((volatile unsigned long *)0x40024528))
-#define GPIO_PORTE_PCTL_R (*((volatile unsigned long *)0x4002452C))
-#define GPIO_PORTE_ADCCTL_R (*((volatile unsigned long *)0x40024530))
-#define GPIO_PORTE_DMACTL_R (*((volatile unsigned long *)0x40024534))
-#define GPIO_PORTE_SI_R (*((volatile unsigned long *)0x40024538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTF)
-//
-//*****************************************************************************
-#define GPIO_PORTF_DATA_BITS_R ((volatile unsigned long *)0x40025000)
-#define GPIO_PORTF_DATA_R (*((volatile unsigned long *)0x400253FC))
-#define GPIO_PORTF_DIR_R (*((volatile unsigned long *)0x40025400))
-#define GPIO_PORTF_IS_R (*((volatile unsigned long *)0x40025404))
-#define GPIO_PORTF_IBE_R (*((volatile unsigned long *)0x40025408))
-#define GPIO_PORTF_IEV_R (*((volatile unsigned long *)0x4002540C))
-#define GPIO_PORTF_IM_R (*((volatile unsigned long *)0x40025410))
-#define GPIO_PORTF_RIS_R (*((volatile unsigned long *)0x40025414))
-#define GPIO_PORTF_MIS_R (*((volatile unsigned long *)0x40025418))
-#define GPIO_PORTF_ICR_R (*((volatile unsigned long *)0x4002541C))
-#define GPIO_PORTF_AFSEL_R (*((volatile unsigned long *)0x40025420))
-#define GPIO_PORTF_DR2R_R (*((volatile unsigned long *)0x40025500))
-#define GPIO_PORTF_DR4R_R (*((volatile unsigned long *)0x40025504))
-#define GPIO_PORTF_DR8R_R (*((volatile unsigned long *)0x40025508))
-#define GPIO_PORTF_ODR_R (*((volatile unsigned long *)0x4002550C))
-#define GPIO_PORTF_PUR_R (*((volatile unsigned long *)0x40025510))
-#define GPIO_PORTF_PDR_R (*((volatile unsigned long *)0x40025514))
-#define GPIO_PORTF_SLR_R (*((volatile unsigned long *)0x40025518))
-#define GPIO_PORTF_DEN_R (*((volatile unsigned long *)0x4002551C))
-#define GPIO_PORTF_LOCK_R (*((volatile unsigned long *)0x40025520))
-#define GPIO_PORTF_CR_R (*((volatile unsigned long *)0x40025524))
-#define GPIO_PORTF_AMSEL_R (*((volatile unsigned long *)0x40025528))
-#define GPIO_PORTF_PCTL_R (*((volatile unsigned long *)0x4002552C))
-#define GPIO_PORTF_ADCCTL_R (*((volatile unsigned long *)0x40025530))
-#define GPIO_PORTF_DMACTL_R (*((volatile unsigned long *)0x40025534))
-#define GPIO_PORTF_SI_R (*((volatile unsigned long *)0x40025538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTG)
-//
-//*****************************************************************************
-#define GPIO_PORTG_DATA_BITS_R ((volatile unsigned long *)0x40026000)
-#define GPIO_PORTG_DATA_R (*((volatile unsigned long *)0x400263FC))
-#define GPIO_PORTG_DIR_R (*((volatile unsigned long *)0x40026400))
-#define GPIO_PORTG_IS_R (*((volatile unsigned long *)0x40026404))
-#define GPIO_PORTG_IBE_R (*((volatile unsigned long *)0x40026408))
-#define GPIO_PORTG_IEV_R (*((volatile unsigned long *)0x4002640C))
-#define GPIO_PORTG_IM_R (*((volatile unsigned long *)0x40026410))
-#define GPIO_PORTG_RIS_R (*((volatile unsigned long *)0x40026414))
-#define GPIO_PORTG_MIS_R (*((volatile unsigned long *)0x40026418))
-#define GPIO_PORTG_ICR_R (*((volatile unsigned long *)0x4002641C))
-#define GPIO_PORTG_AFSEL_R (*((volatile unsigned long *)0x40026420))
-#define GPIO_PORTG_DR2R_R (*((volatile unsigned long *)0x40026500))
-#define GPIO_PORTG_DR4R_R (*((volatile unsigned long *)0x40026504))
-#define GPIO_PORTG_DR8R_R (*((volatile unsigned long *)0x40026508))
-#define GPIO_PORTG_ODR_R (*((volatile unsigned long *)0x4002650C))
-#define GPIO_PORTG_PUR_R (*((volatile unsigned long *)0x40026510))
-#define GPIO_PORTG_PDR_R (*((volatile unsigned long *)0x40026514))
-#define GPIO_PORTG_SLR_R (*((volatile unsigned long *)0x40026518))
-#define GPIO_PORTG_DEN_R (*((volatile unsigned long *)0x4002651C))
-#define GPIO_PORTG_LOCK_R (*((volatile unsigned long *)0x40026520))
-#define GPIO_PORTG_CR_R (*((volatile unsigned long *)0x40026524))
-#define GPIO_PORTG_AMSEL_R (*((volatile unsigned long *)0x40026528))
-#define GPIO_PORTG_PCTL_R (*((volatile unsigned long *)0x4002652C))
-#define GPIO_PORTG_ADCCTL_R (*((volatile unsigned long *)0x40026530))
-#define GPIO_PORTG_DMACTL_R (*((volatile unsigned long *)0x40026534))
-#define GPIO_PORTG_SI_R (*((volatile unsigned long *)0x40026538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTH)
-//
-//*****************************************************************************
-#define GPIO_PORTH_DATA_BITS_R ((volatile unsigned long *)0x40027000)
-#define GPIO_PORTH_DATA_R (*((volatile unsigned long *)0x400273FC))
-#define GPIO_PORTH_DIR_R (*((volatile unsigned long *)0x40027400))
-#define GPIO_PORTH_IS_R (*((volatile unsigned long *)0x40027404))
-#define GPIO_PORTH_IBE_R (*((volatile unsigned long *)0x40027408))
-#define GPIO_PORTH_IEV_R (*((volatile unsigned long *)0x4002740C))
-#define GPIO_PORTH_IM_R (*((volatile unsigned long *)0x40027410))
-#define GPIO_PORTH_RIS_R (*((volatile unsigned long *)0x40027414))
-#define GPIO_PORTH_MIS_R (*((volatile unsigned long *)0x40027418))
-#define GPIO_PORTH_ICR_R (*((volatile unsigned long *)0x4002741C))
-#define GPIO_PORTH_AFSEL_R (*((volatile unsigned long *)0x40027420))
-#define GPIO_PORTH_DR2R_R (*((volatile unsigned long *)0x40027500))
-#define GPIO_PORTH_DR4R_R (*((volatile unsigned long *)0x40027504))
-#define GPIO_PORTH_DR8R_R (*((volatile unsigned long *)0x40027508))
-#define GPIO_PORTH_ODR_R (*((volatile unsigned long *)0x4002750C))
-#define GPIO_PORTH_PUR_R (*((volatile unsigned long *)0x40027510))
-#define GPIO_PORTH_PDR_R (*((volatile unsigned long *)0x40027514))
-#define GPIO_PORTH_SLR_R (*((volatile unsigned long *)0x40027518))
-#define GPIO_PORTH_DEN_R (*((volatile unsigned long *)0x4002751C))
-#define GPIO_PORTH_LOCK_R (*((volatile unsigned long *)0x40027520))
-#define GPIO_PORTH_CR_R (*((volatile unsigned long *)0x40027524))
-#define GPIO_PORTH_AMSEL_R (*((volatile unsigned long *)0x40027528))
-#define GPIO_PORTH_PCTL_R (*((volatile unsigned long *)0x4002752C))
-#define GPIO_PORTH_ADCCTL_R (*((volatile unsigned long *)0x40027530))
-#define GPIO_PORTH_DMACTL_R (*((volatile unsigned long *)0x40027534))
-#define GPIO_PORTH_SI_R (*((volatile unsigned long *)0x40027538))
-
-//*****************************************************************************
-//
-// PWM registers (PWM0)
-//
-//*****************************************************************************
-#define PWM0_CTL_R (*((volatile unsigned long *)0x40028000))
-#define PWM0_SYNC_R (*((volatile unsigned long *)0x40028004))
-#define PWM0_ENABLE_R (*((volatile unsigned long *)0x40028008))
-#define PWM0_INVERT_R (*((volatile unsigned long *)0x4002800C))
-#define PWM0_FAULT_R (*((volatile unsigned long *)0x40028010))
-#define PWM0_INTEN_R (*((volatile unsigned long *)0x40028014))
-#define PWM0_RIS_R (*((volatile unsigned long *)0x40028018))
-#define PWM0_ISC_R (*((volatile unsigned long *)0x4002801C))
-#define PWM0_STATUS_R (*((volatile unsigned long *)0x40028020))
-#define PWM0_FAULTVAL_R (*((volatile unsigned long *)0x40028024))
-#define PWM0_ENUPD_R (*((volatile unsigned long *)0x40028028))
-#define PWM0_0_CTL_R (*((volatile unsigned long *)0x40028040))
-#define PWM0_0_INTEN_R (*((volatile unsigned long *)0x40028044))
-#define PWM0_0_RIS_R (*((volatile unsigned long *)0x40028048))
-#define PWM0_0_ISC_R (*((volatile unsigned long *)0x4002804C))
-#define PWM0_0_LOAD_R (*((volatile unsigned long *)0x40028050))
-#define PWM0_0_COUNT_R (*((volatile unsigned long *)0x40028054))
-#define PWM0_0_CMPA_R (*((volatile unsigned long *)0x40028058))
-#define PWM0_0_CMPB_R (*((volatile unsigned long *)0x4002805C))
-#define PWM0_0_GENA_R (*((volatile unsigned long *)0x40028060))
-#define PWM0_0_GENB_R (*((volatile unsigned long *)0x40028064))
-#define PWM0_0_DBCTL_R (*((volatile unsigned long *)0x40028068))
-#define PWM0_0_DBRISE_R (*((volatile unsigned long *)0x4002806C))
-#define PWM0_0_DBFALL_R (*((volatile unsigned long *)0x40028070))
-#define PWM0_0_FLTSRC0_R (*((volatile unsigned long *)0x40028074))
-#define PWM0_0_FLTSRC1_R (*((volatile unsigned long *)0x40028078))
-#define PWM0_0_MINFLTPER_R (*((volatile unsigned long *)0x4002807C))
-#define PWM0_1_CTL_R (*((volatile unsigned long *)0x40028080))
-#define PWM0_1_INTEN_R (*((volatile unsigned long *)0x40028084))
-#define PWM0_1_RIS_R (*((volatile unsigned long *)0x40028088))
-#define PWM0_1_ISC_R (*((volatile unsigned long *)0x4002808C))
-#define PWM0_1_LOAD_R (*((volatile unsigned long *)0x40028090))
-#define PWM0_1_COUNT_R (*((volatile unsigned long *)0x40028094))
-#define PWM0_1_CMPA_R (*((volatile unsigned long *)0x40028098))
-#define PWM0_1_CMPB_R (*((volatile unsigned long *)0x4002809C))
-#define PWM0_1_GENA_R (*((volatile unsigned long *)0x400280A0))
-#define PWM0_1_GENB_R (*((volatile unsigned long *)0x400280A4))
-#define PWM0_1_DBCTL_R (*((volatile unsigned long *)0x400280A8))
-#define PWM0_1_DBRISE_R (*((volatile unsigned long *)0x400280AC))
-#define PWM0_1_DBFALL_R (*((volatile unsigned long *)0x400280B0))
-#define PWM0_1_FLTSRC0_R (*((volatile unsigned long *)0x400280B4))
-#define PWM0_1_FLTSRC1_R (*((volatile unsigned long *)0x400280B8))
-#define PWM0_1_MINFLTPER_R (*((volatile unsigned long *)0x400280BC))
-#define PWM0_2_CTL_R (*((volatile unsigned long *)0x400280C0))
-#define PWM0_2_INTEN_R (*((volatile unsigned long *)0x400280C4))
-#define PWM0_2_RIS_R (*((volatile unsigned long *)0x400280C8))
-#define PWM0_2_ISC_R (*((volatile unsigned long *)0x400280CC))
-#define PWM0_2_LOAD_R (*((volatile unsigned long *)0x400280D0))
-#define PWM0_2_COUNT_R (*((volatile unsigned long *)0x400280D4))
-#define PWM0_2_CMPA_R (*((volatile unsigned long *)0x400280D8))
-#define PWM0_2_CMPB_R (*((volatile unsigned long *)0x400280DC))
-#define PWM0_2_GENA_R (*((volatile unsigned long *)0x400280E0))
-#define PWM0_2_GENB_R (*((volatile unsigned long *)0x400280E4))
-#define PWM0_2_DBCTL_R (*((volatile unsigned long *)0x400280E8))
-#define PWM0_2_DBRISE_R (*((volatile unsigned long *)0x400280EC))
-#define PWM0_2_DBFALL_R (*((volatile unsigned long *)0x400280F0))
-#define PWM0_2_FLTSRC0_R (*((volatile unsigned long *)0x400280F4))
-#define PWM0_2_FLTSRC1_R (*((volatile unsigned long *)0x400280F8))
-#define PWM0_2_MINFLTPER_R (*((volatile unsigned long *)0x400280FC))
-#define PWM0_3_CTL_R (*((volatile unsigned long *)0x40028100))
-#define PWM0_3_INTEN_R (*((volatile unsigned long *)0x40028104))
-#define PWM0_3_RIS_R (*((volatile unsigned long *)0x40028108))
-#define PWM0_3_ISC_R (*((volatile unsigned long *)0x4002810C))
-#define PWM0_3_LOAD_R (*((volatile unsigned long *)0x40028110))
-#define PWM0_3_COUNT_R (*((volatile unsigned long *)0x40028114))
-#define PWM0_3_CMPA_R (*((volatile unsigned long *)0x40028118))
-#define PWM0_3_CMPB_R (*((volatile unsigned long *)0x4002811C))
-#define PWM0_3_GENA_R (*((volatile unsigned long *)0x40028120))
-#define PWM0_3_GENB_R (*((volatile unsigned long *)0x40028124))
-#define PWM0_3_DBCTL_R (*((volatile unsigned long *)0x40028128))
-#define PWM0_3_DBRISE_R (*((volatile unsigned long *)0x4002812C))
-#define PWM0_3_DBFALL_R (*((volatile unsigned long *)0x40028130))
-#define PWM0_3_FLTSRC0_R (*((volatile unsigned long *)0x40028134))
-#define PWM0_3_FLTSRC1_R (*((volatile unsigned long *)0x40028138))
-#define PWM0_3_MINFLTPER_R (*((volatile unsigned long *)0x4002813C))
-#define PWM0_0_FLTSEN_R (*((volatile unsigned long *)0x40028800))
-#define PWM0_0_FLTSTAT0_R (*((volatile unsigned long *)0x40028804))
-#define PWM0_0_FLTSTAT1_R (*((volatile unsigned long *)0x40028808))
-#define PWM0_1_FLTSEN_R (*((volatile unsigned long *)0x40028880))
-#define PWM0_1_FLTSTAT0_R (*((volatile unsigned long *)0x40028884))
-#define PWM0_1_FLTSTAT1_R (*((volatile unsigned long *)0x40028888))
-#define PWM0_2_FLTSEN_R (*((volatile unsigned long *)0x40028900))
-#define PWM0_2_FLTSTAT0_R (*((volatile unsigned long *)0x40028904))
-#define PWM0_2_FLTSTAT1_R (*((volatile unsigned long *)0x40028908))
-#define PWM0_3_FLTSEN_R (*((volatile unsigned long *)0x40028980))
-#define PWM0_3_FLTSTAT0_R (*((volatile unsigned long *)0x40028984))
-#define PWM0_3_FLTSTAT1_R (*((volatile unsigned long *)0x40028988))
-#define PWM0_PP_R (*((volatile unsigned long *)0x40028FC0))
-#define PWM0_PC_R (*((volatile unsigned long *)0x40028FC4))
-
-//*****************************************************************************
-//
-// PWM registers (PWM1)
-//
-//*****************************************************************************
-#define PWM1_CTL_R (*((volatile unsigned long *)0x40029000))
-#define PWM1_SYNC_R (*((volatile unsigned long *)0x40029004))
-#define PWM1_ENABLE_R (*((volatile unsigned long *)0x40029008))
-#define PWM1_INVERT_R (*((volatile unsigned long *)0x4002900C))
-#define PWM1_FAULT_R (*((volatile unsigned long *)0x40029010))
-#define PWM1_INTEN_R (*((volatile unsigned long *)0x40029014))
-#define PWM1_RIS_R (*((volatile unsigned long *)0x40029018))
-#define PWM1_ISC_R (*((volatile unsigned long *)0x4002901C))
-#define PWM1_STATUS_R (*((volatile unsigned long *)0x40029020))
-#define PWM1_FAULTVAL_R (*((volatile unsigned long *)0x40029024))
-#define PWM1_ENUPD_R (*((volatile unsigned long *)0x40029028))
-#define PWM1_0_CTL_R (*((volatile unsigned long *)0x40029040))
-#define PWM1_0_INTEN_R (*((volatile unsigned long *)0x40029044))
-#define PWM1_0_RIS_R (*((volatile unsigned long *)0x40029048))
-#define PWM1_0_ISC_R (*((volatile unsigned long *)0x4002904C))
-#define PWM1_0_LOAD_R (*((volatile unsigned long *)0x40029050))
-#define PWM1_0_COUNT_R (*((volatile unsigned long *)0x40029054))
-#define PWM1_0_CMPA_R (*((volatile unsigned long *)0x40029058))
-#define PWM1_0_CMPB_R (*((volatile unsigned long *)0x4002905C))
-#define PWM1_0_GENA_R (*((volatile unsigned long *)0x40029060))
-#define PWM1_0_GENB_R (*((volatile unsigned long *)0x40029064))
-#define PWM1_0_DBCTL_R (*((volatile unsigned long *)0x40029068))
-#define PWM1_0_DBRISE_R (*((volatile unsigned long *)0x4002906C))
-#define PWM1_0_DBFALL_R (*((volatile unsigned long *)0x40029070))
-#define PWM1_0_FLTSRC0_R (*((volatile unsigned long *)0x40029074))
-#define PWM1_0_FLTSRC1_R (*((volatile unsigned long *)0x40029078))
-#define PWM1_0_MINFLTPER_R (*((volatile unsigned long *)0x4002907C))
-#define PWM1_1_CTL_R (*((volatile unsigned long *)0x40029080))
-#define PWM1_1_INTEN_R (*((volatile unsigned long *)0x40029084))
-#define PWM1_1_RIS_R (*((volatile unsigned long *)0x40029088))
-#define PWM1_1_ISC_R (*((volatile unsigned long *)0x4002908C))
-#define PWM1_1_LOAD_R (*((volatile unsigned long *)0x40029090))
-#define PWM1_1_COUNT_R (*((volatile unsigned long *)0x40029094))
-#define PWM1_1_CMPA_R (*((volatile unsigned long *)0x40029098))
-#define PWM1_1_CMPB_R (*((volatile unsigned long *)0x4002909C))
-#define PWM1_1_GENA_R (*((volatile unsigned long *)0x400290A0))
-#define PWM1_1_GENB_R (*((volatile unsigned long *)0x400290A4))
-#define PWM1_1_DBCTL_R (*((volatile unsigned long *)0x400290A8))
-#define PWM1_1_DBRISE_R (*((volatile unsigned long *)0x400290AC))
-#define PWM1_1_DBFALL_R (*((volatile unsigned long *)0x400290B0))
-#define PWM1_1_FLTSRC0_R (*((volatile unsigned long *)0x400290B4))
-#define PWM1_1_FLTSRC1_R (*((volatile unsigned long *)0x400290B8))
-#define PWM1_1_MINFLTPER_R (*((volatile unsigned long *)0x400290BC))
-#define PWM1_2_CTL_R (*((volatile unsigned long *)0x400290C0))
-#define PWM1_2_INTEN_R (*((volatile unsigned long *)0x400290C4))
-#define PWM1_2_RIS_R (*((volatile unsigned long *)0x400290C8))
-#define PWM1_2_ISC_R (*((volatile unsigned long *)0x400290CC))
-#define PWM1_2_LOAD_R (*((volatile unsigned long *)0x400290D0))
-#define PWM1_2_COUNT_R (*((volatile unsigned long *)0x400290D4))
-#define PWM1_2_CMPA_R (*((volatile unsigned long *)0x400290D8))
-#define PWM1_2_CMPB_R (*((volatile unsigned long *)0x400290DC))
-#define PWM1_2_GENA_R (*((volatile unsigned long *)0x400290E0))
-#define PWM1_2_GENB_R (*((volatile unsigned long *)0x400290E4))
-#define PWM1_2_DBCTL_R (*((volatile unsigned long *)0x400290E8))
-#define PWM1_2_DBRISE_R (*((volatile unsigned long *)0x400290EC))
-#define PWM1_2_DBFALL_R (*((volatile unsigned long *)0x400290F0))
-#define PWM1_2_FLTSRC0_R (*((volatile unsigned long *)0x400290F4))
-#define PWM1_2_FLTSRC1_R (*((volatile unsigned long *)0x400290F8))
-#define PWM1_2_MINFLTPER_R (*((volatile unsigned long *)0x400290FC))
-#define PWM1_3_CTL_R (*((volatile unsigned long *)0x40029100))
-#define PWM1_3_INTEN_R (*((volatile unsigned long *)0x40029104))
-#define PWM1_3_RIS_R (*((volatile unsigned long *)0x40029108))
-#define PWM1_3_ISC_R (*((volatile unsigned long *)0x4002910C))
-#define PWM1_3_LOAD_R (*((volatile unsigned long *)0x40029110))
-#define PWM1_3_COUNT_R (*((volatile unsigned long *)0x40029114))
-#define PWM1_3_CMPA_R (*((volatile unsigned long *)0x40029118))
-#define PWM1_3_CMPB_R (*((volatile unsigned long *)0x4002911C))
-#define PWM1_3_GENA_R (*((volatile unsigned long *)0x40029120))
-#define PWM1_3_GENB_R (*((volatile unsigned long *)0x40029124))
-#define PWM1_3_DBCTL_R (*((volatile unsigned long *)0x40029128))
-#define PWM1_3_DBRISE_R (*((volatile unsigned long *)0x4002912C))
-#define PWM1_3_DBFALL_R (*((volatile unsigned long *)0x40029130))
-#define PWM1_3_FLTSRC0_R (*((volatile unsigned long *)0x40029134))
-#define PWM1_3_FLTSRC1_R (*((volatile unsigned long *)0x40029138))
-#define PWM1_3_MINFLTPER_R (*((volatile unsigned long *)0x4002913C))
-#define PWM1_0_FLTSEN_R (*((volatile unsigned long *)0x40029800))
-#define PWM1_0_FLTSTAT0_R (*((volatile unsigned long *)0x40029804))
-#define PWM1_0_FLTSTAT1_R (*((volatile unsigned long *)0x40029808))
-#define PWM1_1_FLTSEN_R (*((volatile unsigned long *)0x40029880))
-#define PWM1_1_FLTSTAT0_R (*((volatile unsigned long *)0x40029884))
-#define PWM1_1_FLTSTAT1_R (*((volatile unsigned long *)0x40029888))
-#define PWM1_2_FLTSEN_R (*((volatile unsigned long *)0x40029900))
-#define PWM1_2_FLTSTAT0_R (*((volatile unsigned long *)0x40029904))
-#define PWM1_2_FLTSTAT1_R (*((volatile unsigned long *)0x40029908))
-#define PWM1_3_FLTSEN_R (*((volatile unsigned long *)0x40029980))
-#define PWM1_3_FLTSTAT0_R (*((volatile unsigned long *)0x40029984))
-#define PWM1_3_FLTSTAT1_R (*((volatile unsigned long *)0x40029988))
-#define PWM1_PP_R (*((volatile unsigned long *)0x40029FC0))
-#define PWM1_PC_R (*((volatile unsigned long *)0x40029FC4))
-
-//*****************************************************************************
-//
-// QEI registers (QEI0)
-//
-//*****************************************************************************
-#define QEI0_CTL_R (*((volatile unsigned long *)0x4002C000))
-#define QEI0_STAT_R (*((volatile unsigned long *)0x4002C004))
-#define QEI0_POS_R (*((volatile unsigned long *)0x4002C008))
-#define QEI0_MAXPOS_R (*((volatile unsigned long *)0x4002C00C))
-#define QEI0_LOAD_R (*((volatile unsigned long *)0x4002C010))
-#define QEI0_TIME_R (*((volatile unsigned long *)0x4002C014))
-#define QEI0_COUNT_R (*((volatile unsigned long *)0x4002C018))
-#define QEI0_SPEED_R (*((volatile unsigned long *)0x4002C01C))
-#define QEI0_INTEN_R (*((volatile unsigned long *)0x4002C020))
-#define QEI0_RIS_R (*((volatile unsigned long *)0x4002C024))
-#define QEI0_ISC_R (*((volatile unsigned long *)0x4002C028))
-
-//*****************************************************************************
-//
-// QEI registers (QEI1)
-//
-//*****************************************************************************
-#define QEI1_CTL_R (*((volatile unsigned long *)0x4002D000))
-#define QEI1_STAT_R (*((volatile unsigned long *)0x4002D004))
-#define QEI1_POS_R (*((volatile unsigned long *)0x4002D008))
-#define QEI1_MAXPOS_R (*((volatile unsigned long *)0x4002D00C))
-#define QEI1_LOAD_R (*((volatile unsigned long *)0x4002D010))
-#define QEI1_TIME_R (*((volatile unsigned long *)0x4002D014))
-#define QEI1_COUNT_R (*((volatile unsigned long *)0x4002D018))
-#define QEI1_SPEED_R (*((volatile unsigned long *)0x4002D01C))
-#define QEI1_INTEN_R (*((volatile unsigned long *)0x4002D020))
-#define QEI1_RIS_R (*((volatile unsigned long *)0x4002D024))
-#define QEI1_ISC_R (*((volatile unsigned long *)0x4002D028))
-
-//*****************************************************************************
-//
-// Timer registers (TIMER0)
-//
-//*****************************************************************************
-#define TIMER0_CFG_R (*((volatile unsigned long *)0x40030000))
-#define TIMER0_TAMR_R (*((volatile unsigned long *)0x40030004))
-#define TIMER0_TBMR_R (*((volatile unsigned long *)0x40030008))
-#define TIMER0_CTL_R (*((volatile unsigned long *)0x4003000C))
-#define TIMER0_SYNC_R (*((volatile unsigned long *)0x40030010))
-#define TIMER0_IMR_R (*((volatile unsigned long *)0x40030018))
-#define TIMER0_RIS_R (*((volatile unsigned long *)0x4003001C))
-#define TIMER0_MIS_R (*((volatile unsigned long *)0x40030020))
-#define TIMER0_ICR_R (*((volatile unsigned long *)0x40030024))
-#define TIMER0_TAILR_R (*((volatile unsigned long *)0x40030028))
-#define TIMER0_TBILR_R (*((volatile unsigned long *)0x4003002C))
-#define TIMER0_TAMATCHR_R (*((volatile unsigned long *)0x40030030))
-#define TIMER0_TBMATCHR_R (*((volatile unsigned long *)0x40030034))
-#define TIMER0_TAPR_R (*((volatile unsigned long *)0x40030038))
-#define TIMER0_TBPR_R (*((volatile unsigned long *)0x4003003C))
-#define TIMER0_TAPMR_R (*((volatile unsigned long *)0x40030040))
-#define TIMER0_TBPMR_R (*((volatile unsigned long *)0x40030044))
-#define TIMER0_TAR_R (*((volatile unsigned long *)0x40030048))
-#define TIMER0_TBR_R (*((volatile unsigned long *)0x4003004C))
-#define TIMER0_TAV_R (*((volatile unsigned long *)0x40030050))
-#define TIMER0_TBV_R (*((volatile unsigned long *)0x40030054))
-#define TIMER0_RTCPD_R (*((volatile unsigned long *)0x40030058))
-#define TIMER0_TAPS_R (*((volatile unsigned long *)0x4003005C))
-#define TIMER0_TBPS_R (*((volatile unsigned long *)0x40030060))
-#define TIMER0_TAPV_R (*((volatile unsigned long *)0x40030064))
-#define TIMER0_TBPV_R (*((volatile unsigned long *)0x40030068))
-#define TIMER0_PP_R (*((volatile unsigned long *)0x40030FC0))
-
-//*****************************************************************************
-//
-// Timer registers (TIMER1)
-//
-//*****************************************************************************
-#define TIMER1_CFG_R (*((volatile unsigned long *)0x40031000))
-#define TIMER1_TAMR_R (*((volatile unsigned long *)0x40031004))
-#define TIMER1_TBMR_R (*((volatile unsigned long *)0x40031008))
-#define TIMER1_CTL_R (*((volatile unsigned long *)0x4003100C))
-#define TIMER1_SYNC_R (*((volatile unsigned long *)0x40031010))
-#define TIMER1_IMR_R (*((volatile unsigned long *)0x40031018))
-#define TIMER1_RIS_R (*((volatile unsigned long *)0x4003101C))
-#define TIMER1_MIS_R (*((volatile unsigned long *)0x40031020))
-#define TIMER1_ICR_R (*((volatile unsigned long *)0x40031024))
-#define TIMER1_TAILR_R (*((volatile unsigned long *)0x40031028))
-#define TIMER1_TBILR_R (*((volatile unsigned long *)0x4003102C))
-#define TIMER1_TAMATCHR_R (*((volatile unsigned long *)0x40031030))
-#define TIMER1_TBMATCHR_R (*((volatile unsigned long *)0x40031034))
-#define TIMER1_TAPR_R (*((volatile unsigned long *)0x40031038))
-#define TIMER1_TBPR_R (*((volatile unsigned long *)0x4003103C))
-#define TIMER1_TAPMR_R (*((volatile unsigned long *)0x40031040))
-#define TIMER1_TBPMR_R (*((volatile unsigned long *)0x40031044))
-#define TIMER1_TAR_R (*((volatile unsigned long *)0x40031048))
-#define TIMER1_TBR_R (*((volatile unsigned long *)0x4003104C))
-#define TIMER1_TAV_R (*((volatile unsigned long *)0x40031050))
-#define TIMER1_TBV_R (*((volatile unsigned long *)0x40031054))
-#define TIMER1_RTCPD_R (*((volatile unsigned long *)0x40031058))
-#define TIMER1_TAPS_R (*((volatile unsigned long *)0x4003105C))
-#define TIMER1_TBPS_R (*((volatile unsigned long *)0x40031060))
-#define TIMER1_TAPV_R (*((volatile unsigned long *)0x40031064))
-#define TIMER1_TBPV_R (*((volatile unsigned long *)0x40031068))
-#define TIMER1_PP_R (*((volatile unsigned long *)0x40031FC0))
-
-//*****************************************************************************
-//
-// Timer registers (TIMER2)
-//
-//*****************************************************************************
-#define TIMER2_CFG_R (*((volatile unsigned long *)0x40032000))
-#define TIMER2_TAMR_R (*((volatile unsigned long *)0x40032004))
-#define TIMER2_TBMR_R (*((volatile unsigned long *)0x40032008))
-#define TIMER2_CTL_R (*((volatile unsigned long *)0x4003200C))
-#define TIMER2_SYNC_R (*((volatile unsigned long *)0x40032010))
-#define TIMER2_IMR_R (*((volatile unsigned long *)0x40032018))
-#define TIMER2_RIS_R (*((volatile unsigned long *)0x4003201C))
-#define TIMER2_MIS_R (*((volatile unsigned long *)0x40032020))
-#define TIMER2_ICR_R (*((volatile unsigned long *)0x40032024))
-#define TIMER2_TAILR_R (*((volatile unsigned long *)0x40032028))
-#define TIMER2_TBILR_R (*((volatile unsigned long *)0x4003202C))
-#define TIMER2_TAMATCHR_R (*((volatile unsigned long *)0x40032030))
-#define TIMER2_TBMATCHR_R (*((volatile unsigned long *)0x40032034))
-#define TIMER2_TAPR_R (*((volatile unsigned long *)0x40032038))
-#define TIMER2_TBPR_R (*((volatile unsigned long *)0x4003203C))
-#define TIMER2_TAPMR_R (*((volatile unsigned long *)0x40032040))
-#define TIMER2_TBPMR_R (*((volatile unsigned long *)0x40032044))
-#define TIMER2_TAR_R (*((volatile unsigned long *)0x40032048))
-#define TIMER2_TBR_R (*((volatile unsigned long *)0x4003204C))
-#define TIMER2_TAV_R (*((volatile unsigned long *)0x40032050))
-#define TIMER2_TBV_R (*((volatile unsigned long *)0x40032054))
-#define TIMER2_RTCPD_R (*((volatile unsigned long *)0x40032058))
-#define TIMER2_TAPS_R (*((volatile unsigned long *)0x4003205C))
-#define TIMER2_TBPS_R (*((volatile unsigned long *)0x40032060))
-#define TIMER2_TAPV_R (*((volatile unsigned long *)0x40032064))
-#define TIMER2_TBPV_R (*((volatile unsigned long *)0x40032068))
-#define TIMER2_PP_R (*((volatile unsigned long *)0x40032FC0))
-
-//*****************************************************************************
-//
-// Timer registers (TIMER3)
-//
-//*****************************************************************************
-#define TIMER3_CFG_R (*((volatile unsigned long *)0x40033000))
-#define TIMER3_TAMR_R (*((volatile unsigned long *)0x40033004))
-#define TIMER3_TBMR_R (*((volatile unsigned long *)0x40033008))
-#define TIMER3_CTL_R (*((volatile unsigned long *)0x4003300C))
-#define TIMER3_SYNC_R (*((volatile unsigned long *)0x40033010))
-#define TIMER3_IMR_R (*((volatile unsigned long *)0x40033018))
-#define TIMER3_RIS_R (*((volatile unsigned long *)0x4003301C))
-#define TIMER3_MIS_R (*((volatile unsigned long *)0x40033020))
-#define TIMER3_ICR_R (*((volatile unsigned long *)0x40033024))
-#define TIMER3_TAILR_R (*((volatile unsigned long *)0x40033028))
-#define TIMER3_TBILR_R (*((volatile unsigned long *)0x4003302C))
-#define TIMER3_TAMATCHR_R (*((volatile unsigned long *)0x40033030))
-#define TIMER3_TBMATCHR_R (*((volatile unsigned long *)0x40033034))
-#define TIMER3_TAPR_R (*((volatile unsigned long *)0x40033038))
-#define TIMER3_TBPR_R (*((volatile unsigned long *)0x4003303C))
-#define TIMER3_TAPMR_R (*((volatile unsigned long *)0x40033040))
-#define TIMER3_TBPMR_R (*((volatile unsigned long *)0x40033044))
-#define TIMER3_TAR_R (*((volatile unsigned long *)0x40033048))
-#define TIMER3_TBR_R (*((volatile unsigned long *)0x4003304C))
-#define TIMER3_TAV_R (*((volatile unsigned long *)0x40033050))
-#define TIMER3_TBV_R (*((volatile unsigned long *)0x40033054))
-#define TIMER3_RTCPD_R (*((volatile unsigned long *)0x40033058))
-#define TIMER3_TAPS_R (*((volatile unsigned long *)0x4003305C))
-#define TIMER3_TBPS_R (*((volatile unsigned long *)0x40033060))
-#define TIMER3_TAPV_R (*((volatile unsigned long *)0x40033064))
-#define TIMER3_TBPV_R (*((volatile unsigned long *)0x40033068))
-#define TIMER3_PP_R (*((volatile unsigned long *)0x40033FC0))
-
-//*****************************************************************************
-//
-// Timer registers (TIMER4)
-//
-//*****************************************************************************
-#define TIMER4_CFG_R (*((volatile unsigned long *)0x40034000))
-#define TIMER4_TAMR_R (*((volatile unsigned long *)0x40034004))
-#define TIMER4_TBMR_R (*((volatile unsigned long *)0x40034008))
-#define TIMER4_CTL_R (*((volatile unsigned long *)0x4003400C))
-#define TIMER4_SYNC_R (*((volatile unsigned long *)0x40034010))
-#define TIMER4_IMR_R (*((volatile unsigned long *)0x40034018))
-#define TIMER4_RIS_R (*((volatile unsigned long *)0x4003401C))
-#define TIMER4_MIS_R (*((volatile unsigned long *)0x40034020))
-#define TIMER4_ICR_R (*((volatile unsigned long *)0x40034024))
-#define TIMER4_TAILR_R (*((volatile unsigned long *)0x40034028))
-#define TIMER4_TBILR_R (*((volatile unsigned long *)0x4003402C))
-#define TIMER4_TAMATCHR_R (*((volatile unsigned long *)0x40034030))
-#define TIMER4_TBMATCHR_R (*((volatile unsigned long *)0x40034034))
-#define TIMER4_TAPR_R (*((volatile unsigned long *)0x40034038))
-#define TIMER4_TBPR_R (*((volatile unsigned long *)0x4003403C))
-#define TIMER4_TAPMR_R (*((volatile unsigned long *)0x40034040))
-#define TIMER4_TBPMR_R (*((volatile unsigned long *)0x40034044))
-#define TIMER4_TAR_R (*((volatile unsigned long *)0x40034048))
-#define TIMER4_TBR_R (*((volatile unsigned long *)0x4003404C))
-#define TIMER4_TAV_R (*((volatile unsigned long *)0x40034050))
-#define TIMER4_TBV_R (*((volatile unsigned long *)0x40034054))
-#define TIMER4_RTCPD_R (*((volatile unsigned long *)0x40034058))
-#define TIMER4_TAPS_R (*((volatile unsigned long *)0x4003405C))
-#define TIMER4_TBPS_R (*((volatile unsigned long *)0x40034060))
-#define TIMER4_TAPV_R (*((volatile unsigned long *)0x40034064))
-#define TIMER4_TBPV_R (*((volatile unsigned long *)0x40034068))
-#define TIMER4_PP_R (*((volatile unsigned long *)0x40034FC0))
-
-//*****************************************************************************
-//
-// Timer registers (TIMER5)
-//
-//*****************************************************************************
-#define TIMER5_CFG_R (*((volatile unsigned long *)0x40035000))
-#define TIMER5_TAMR_R (*((volatile unsigned long *)0x40035004))
-#define TIMER5_TBMR_R (*((volatile unsigned long *)0x40035008))
-#define TIMER5_CTL_R (*((volatile unsigned long *)0x4003500C))
-#define TIMER5_SYNC_R (*((volatile unsigned long *)0x40035010))
-#define TIMER5_IMR_R (*((volatile unsigned long *)0x40035018))
-#define TIMER5_RIS_R (*((volatile unsigned long *)0x4003501C))
-#define TIMER5_MIS_R (*((volatile unsigned long *)0x40035020))
-#define TIMER5_ICR_R (*((volatile unsigned long *)0x40035024))
-#define TIMER5_TAILR_R (*((volatile unsigned long *)0x40035028))
-#define TIMER5_TBILR_R (*((volatile unsigned long *)0x4003502C))
-#define TIMER5_TAMATCHR_R (*((volatile unsigned long *)0x40035030))
-#define TIMER5_TBMATCHR_R (*((volatile unsigned long *)0x40035034))
-#define TIMER5_TAPR_R (*((volatile unsigned long *)0x40035038))
-#define TIMER5_TBPR_R (*((volatile unsigned long *)0x4003503C))
-#define TIMER5_TAPMR_R (*((volatile unsigned long *)0x40035040))
-#define TIMER5_TBPMR_R (*((volatile unsigned long *)0x40035044))
-#define TIMER5_TAR_R (*((volatile unsigned long *)0x40035048))
-#define TIMER5_TBR_R (*((volatile unsigned long *)0x4003504C))
-#define TIMER5_TAV_R (*((volatile unsigned long *)0x40035050))
-#define TIMER5_TBV_R (*((volatile unsigned long *)0x40035054))
-#define TIMER5_RTCPD_R (*((volatile unsigned long *)0x40035058))
-#define TIMER5_TAPS_R (*((volatile unsigned long *)0x4003505C))
-#define TIMER5_TBPS_R (*((volatile unsigned long *)0x40035060))
-#define TIMER5_TAPV_R (*((volatile unsigned long *)0x40035064))
-#define TIMER5_TBPV_R (*((volatile unsigned long *)0x40035068))
-#define TIMER5_PP_R (*((volatile unsigned long *)0x40035FC0))
-
-//*****************************************************************************
-//
-// Timer registers (WTIMER0)
-//
-//*****************************************************************************
-#define WTIMER0_CFG_R (*((volatile unsigned long *)0x40036000))
-#define WTIMER0_TAMR_R (*((volatile unsigned long *)0x40036004))
-#define WTIMER0_TBMR_R (*((volatile unsigned long *)0x40036008))
-#define WTIMER0_CTL_R (*((volatile unsigned long *)0x4003600C))
-#define WTIMER0_SYNC_R (*((volatile unsigned long *)0x40036010))
-#define WTIMER0_IMR_R (*((volatile unsigned long *)0x40036018))
-#define WTIMER0_RIS_R (*((volatile unsigned long *)0x4003601C))
-#define WTIMER0_MIS_R (*((volatile unsigned long *)0x40036020))
-#define WTIMER0_ICR_R (*((volatile unsigned long *)0x40036024))
-#define WTIMER0_TAILR_R (*((volatile unsigned long *)0x40036028))
-#define WTIMER0_TBILR_R (*((volatile unsigned long *)0x4003602C))
-#define WTIMER0_TAMATCHR_R (*((volatile unsigned long *)0x40036030))
-#define WTIMER0_TBMATCHR_R (*((volatile unsigned long *)0x40036034))
-#define WTIMER0_TAPR_R (*((volatile unsigned long *)0x40036038))
-#define WTIMER0_TBPR_R (*((volatile unsigned long *)0x4003603C))
-#define WTIMER0_TAPMR_R (*((volatile unsigned long *)0x40036040))
-#define WTIMER0_TBPMR_R (*((volatile unsigned long *)0x40036044))
-#define WTIMER0_TAR_R (*((volatile unsigned long *)0x40036048))
-#define WTIMER0_TBR_R (*((volatile unsigned long *)0x4003604C))
-#define WTIMER0_TAV_R (*((volatile unsigned long *)0x40036050))
-#define WTIMER0_TBV_R (*((volatile unsigned long *)0x40036054))
-#define WTIMER0_RTCPD_R (*((volatile unsigned long *)0x40036058))
-#define WTIMER0_TAPS_R (*((volatile unsigned long *)0x4003605C))
-#define WTIMER0_TBPS_R (*((volatile unsigned long *)0x40036060))
-#define WTIMER0_TAPV_R (*((volatile unsigned long *)0x40036064))
-#define WTIMER0_TBPV_R (*((volatile unsigned long *)0x40036068))
-#define WTIMER0_PP_R (*((volatile unsigned long *)0x40036FC0))
-
-//*****************************************************************************
-//
-// Timer registers (WTIMER1)
-//
-//*****************************************************************************
-#define WTIMER1_CFG_R (*((volatile unsigned long *)0x40037000))
-#define WTIMER1_TAMR_R (*((volatile unsigned long *)0x40037004))
-#define WTIMER1_TBMR_R (*((volatile unsigned long *)0x40037008))
-#define WTIMER1_CTL_R (*((volatile unsigned long *)0x4003700C))
-#define WTIMER1_SYNC_R (*((volatile unsigned long *)0x40037010))
-#define WTIMER1_IMR_R (*((volatile unsigned long *)0x40037018))
-#define WTIMER1_RIS_R (*((volatile unsigned long *)0x4003701C))
-#define WTIMER1_MIS_R (*((volatile unsigned long *)0x40037020))
-#define WTIMER1_ICR_R (*((volatile unsigned long *)0x40037024))
-#define WTIMER1_TAILR_R (*((volatile unsigned long *)0x40037028))
-#define WTIMER1_TBILR_R (*((volatile unsigned long *)0x4003702C))
-#define WTIMER1_TAMATCHR_R (*((volatile unsigned long *)0x40037030))
-#define WTIMER1_TBMATCHR_R (*((volatile unsigned long *)0x40037034))
-#define WTIMER1_TAPR_R (*((volatile unsigned long *)0x40037038))
-#define WTIMER1_TBPR_R (*((volatile unsigned long *)0x4003703C))
-#define WTIMER1_TAPMR_R (*((volatile unsigned long *)0x40037040))
-#define WTIMER1_TBPMR_R (*((volatile unsigned long *)0x40037044))
-#define WTIMER1_TAR_R (*((volatile unsigned long *)0x40037048))
-#define WTIMER1_TBR_R (*((volatile unsigned long *)0x4003704C))
-#define WTIMER1_TAV_R (*((volatile unsigned long *)0x40037050))
-#define WTIMER1_TBV_R (*((volatile unsigned long *)0x40037054))
-#define WTIMER1_RTCPD_R (*((volatile unsigned long *)0x40037058))
-#define WTIMER1_TAPS_R (*((volatile unsigned long *)0x4003705C))
-#define WTIMER1_TBPS_R (*((volatile unsigned long *)0x40037060))
-#define WTIMER1_TAPV_R (*((volatile unsigned long *)0x40037064))
-#define WTIMER1_TBPV_R (*((volatile unsigned long *)0x40037068))
-#define WTIMER1_PP_R (*((volatile unsigned long *)0x40037FC0))
-
-//*****************************************************************************
-//
-// ADC registers (ADC0)
-//
-//*****************************************************************************
-#define ADC0_ACTSS_R (*((volatile unsigned long *)0x40038000))
-#define ADC0_RIS_R (*((volatile unsigned long *)0x40038004))
-#define ADC0_IM_R (*((volatile unsigned long *)0x40038008))
-#define ADC0_ISC_R (*((volatile unsigned long *)0x4003800C))
-#define ADC0_OSTAT_R (*((volatile unsigned long *)0x40038010))
-#define ADC0_EMUX_R (*((volatile unsigned long *)0x40038014))
-#define ADC0_USTAT_R (*((volatile unsigned long *)0x40038018))
-#define ADC0_TSSEL_R (*((volatile unsigned long *)0x4003801C))
-#define ADC0_SSPRI_R (*((volatile unsigned long *)0x40038020))
-#define ADC0_SPC_R (*((volatile unsigned long *)0x40038024))
-#define ADC0_PSSI_R (*((volatile unsigned long *)0x40038028))
-#define ADC0_SAC_R (*((volatile unsigned long *)0x40038030))
-#define ADC0_DCISC_R (*((volatile unsigned long *)0x40038034))
-#define ADC0_CTL_R (*((volatile unsigned long *)0x40038038))
-#define ADC0_SSMUX0_R (*((volatile unsigned long *)0x40038040))
-#define ADC0_SSCTL0_R (*((volatile unsigned long *)0x40038044))
-#define ADC0_SSFIFO0_R (*((volatile unsigned long *)0x40038048))
-#define ADC0_SSFSTAT0_R (*((volatile unsigned long *)0x4003804C))
-#define ADC0_SSOP0_R (*((volatile unsigned long *)0x40038050))
-#define ADC0_SSDC0_R (*((volatile unsigned long *)0x40038054))
-#define ADC0_SSEMUX0_R (*((volatile unsigned long *)0x40038058))
-#define ADC0_SSMUX1_R (*((volatile unsigned long *)0x40038060))
-#define ADC0_SSCTL1_R (*((volatile unsigned long *)0x40038064))
-#define ADC0_SSFIFO1_R (*((volatile unsigned long *)0x40038068))
-#define ADC0_SSFSTAT1_R (*((volatile unsigned long *)0x4003806C))
-#define ADC0_SSOP1_R (*((volatile unsigned long *)0x40038070))
-#define ADC0_SSDC1_R (*((volatile unsigned long *)0x40038074))
-#define ADC0_SSEMUX1_R (*((volatile unsigned long *)0x40038078))
-#define ADC0_SSMUX2_R (*((volatile unsigned long *)0x40038080))
-#define ADC0_SSCTL2_R (*((volatile unsigned long *)0x40038084))
-#define ADC0_SSFIFO2_R (*((volatile unsigned long *)0x40038088))
-#define ADC0_SSFSTAT2_R (*((volatile unsigned long *)0x4003808C))
-#define ADC0_SSOP2_R (*((volatile unsigned long *)0x40038090))
-#define ADC0_SSDC2_R (*((volatile unsigned long *)0x40038094))
-#define ADC0_SSEMUX2_R (*((volatile unsigned long *)0x40038098))
-#define ADC0_SSMUX3_R (*((volatile unsigned long *)0x400380A0))
-#define ADC0_SSCTL3_R (*((volatile unsigned long *)0x400380A4))
-#define ADC0_SSFIFO3_R (*((volatile unsigned long *)0x400380A8))
-#define ADC0_SSFSTAT3_R (*((volatile unsigned long *)0x400380AC))
-#define ADC0_SSOP3_R (*((volatile unsigned long *)0x400380B0))
-#define ADC0_SSDC3_R (*((volatile unsigned long *)0x400380B4))
-#define ADC0_SSEMUX3_R (*((volatile unsigned long *)0x400380B8))
-#define ADC0_DCRIC_R (*((volatile unsigned long *)0x40038D00))
-#define ADC0_DCCTL0_R (*((volatile unsigned long *)0x40038E00))
-#define ADC0_DCCTL1_R (*((volatile unsigned long *)0x40038E04))
-#define ADC0_DCCTL2_R (*((volatile unsigned long *)0x40038E08))
-#define ADC0_DCCTL3_R (*((volatile unsigned long *)0x40038E0C))
-#define ADC0_DCCTL4_R (*((volatile unsigned long *)0x40038E10))
-#define ADC0_DCCTL5_R (*((volatile unsigned long *)0x40038E14))
-#define ADC0_DCCTL6_R (*((volatile unsigned long *)0x40038E18))
-#define ADC0_DCCTL7_R (*((volatile unsigned long *)0x40038E1C))
-#define ADC0_DCCMP0_R (*((volatile unsigned long *)0x40038E40))
-#define ADC0_DCCMP1_R (*((volatile unsigned long *)0x40038E44))
-#define ADC0_DCCMP2_R (*((volatile unsigned long *)0x40038E48))
-#define ADC0_DCCMP3_R (*((volatile unsigned long *)0x40038E4C))
-#define ADC0_DCCMP4_R (*((volatile unsigned long *)0x40038E50))
-#define ADC0_DCCMP5_R (*((volatile unsigned long *)0x40038E54))
-#define ADC0_DCCMP6_R (*((volatile unsigned long *)0x40038E58))
-#define ADC0_DCCMP7_R (*((volatile unsigned long *)0x40038E5C))
-#define ADC0_PP_R (*((volatile unsigned long *)0x40038FC0))
-#define ADC0_PC_R (*((volatile unsigned long *)0x40038FC4))
-#define ADC0_CC_R (*((volatile unsigned long *)0x40038FC8))
-
-//*****************************************************************************
-//
-// ADC registers (ADC1)
-//
-//*****************************************************************************
-#define ADC1_ACTSS_R (*((volatile unsigned long *)0x40039000))
-#define ADC1_RIS_R (*((volatile unsigned long *)0x40039004))
-#define ADC1_IM_R (*((volatile unsigned long *)0x40039008))
-#define ADC1_ISC_R (*((volatile unsigned long *)0x4003900C))
-#define ADC1_OSTAT_R (*((volatile unsigned long *)0x40039010))
-#define ADC1_EMUX_R (*((volatile unsigned long *)0x40039014))
-#define ADC1_USTAT_R (*((volatile unsigned long *)0x40039018))
-#define ADC1_TSSEL_R (*((volatile unsigned long *)0x4003901C))
-#define ADC1_SSPRI_R (*((volatile unsigned long *)0x40039020))
-#define ADC1_SPC_R (*((volatile unsigned long *)0x40039024))
-#define ADC1_PSSI_R (*((volatile unsigned long *)0x40039028))
-#define ADC1_SAC_R (*((volatile unsigned long *)0x40039030))
-#define ADC1_DCISC_R (*((volatile unsigned long *)0x40039034))
-#define ADC1_CTL_R (*((volatile unsigned long *)0x40039038))
-#define ADC1_SSMUX0_R (*((volatile unsigned long *)0x40039040))
-#define ADC1_SSCTL0_R (*((volatile unsigned long *)0x40039044))
-#define ADC1_SSFIFO0_R (*((volatile unsigned long *)0x40039048))
-#define ADC1_SSFSTAT0_R (*((volatile unsigned long *)0x4003904C))
-#define ADC1_SSOP0_R (*((volatile unsigned long *)0x40039050))
-#define ADC1_SSDC0_R (*((volatile unsigned long *)0x40039054))
-#define ADC1_SSEMUX0_R (*((volatile unsigned long *)0x40039058))
-#define ADC1_SSMUX1_R (*((volatile unsigned long *)0x40039060))
-#define ADC1_SSCTL1_R (*((volatile unsigned long *)0x40039064))
-#define ADC1_SSFIFO1_R (*((volatile unsigned long *)0x40039068))
-#define ADC1_SSFSTAT1_R (*((volatile unsigned long *)0x4003906C))
-#define ADC1_SSOP1_R (*((volatile unsigned long *)0x40039070))
-#define ADC1_SSDC1_R (*((volatile unsigned long *)0x40039074))
-#define ADC1_SSEMUX1_R (*((volatile unsigned long *)0x40039078))
-#define ADC1_SSMUX2_R (*((volatile unsigned long *)0x40039080))
-#define ADC1_SSCTL2_R (*((volatile unsigned long *)0x40039084))
-#define ADC1_SSFIFO2_R (*((volatile unsigned long *)0x40039088))
-#define ADC1_SSFSTAT2_R (*((volatile unsigned long *)0x4003908C))
-#define ADC1_SSOP2_R (*((volatile unsigned long *)0x40039090))
-#define ADC1_SSDC2_R (*((volatile unsigned long *)0x40039094))
-#define ADC1_SSEMUX2_R (*((volatile unsigned long *)0x40039098))
-#define ADC1_SSMUX3_R (*((volatile unsigned long *)0x400390A0))
-#define ADC1_SSCTL3_R (*((volatile unsigned long *)0x400390A4))
-#define ADC1_SSFIFO3_R (*((volatile unsigned long *)0x400390A8))
-#define ADC1_SSFSTAT3_R (*((volatile unsigned long *)0x400390AC))
-#define ADC1_SSOP3_R (*((volatile unsigned long *)0x400390B0))
-#define ADC1_SSDC3_R (*((volatile unsigned long *)0x400390B4))
-#define ADC1_SSEMUX3_R (*((volatile unsigned long *)0x400390B8))
-#define ADC1_DCRIC_R (*((volatile unsigned long *)0x40039D00))
-#define ADC1_DCCTL0_R (*((volatile unsigned long *)0x40039E00))
-#define ADC1_DCCTL1_R (*((volatile unsigned long *)0x40039E04))
-#define ADC1_DCCTL2_R (*((volatile unsigned long *)0x40039E08))
-#define ADC1_DCCTL3_R (*((volatile unsigned long *)0x40039E0C))
-#define ADC1_DCCTL4_R (*((volatile unsigned long *)0x40039E10))
-#define ADC1_DCCTL5_R (*((volatile unsigned long *)0x40039E14))
-#define ADC1_DCCTL6_R (*((volatile unsigned long *)0x40039E18))
-#define ADC1_DCCTL7_R (*((volatile unsigned long *)0x40039E1C))
-#define ADC1_DCCMP0_R (*((volatile unsigned long *)0x40039E40))
-#define ADC1_DCCMP1_R (*((volatile unsigned long *)0x40039E44))
-#define ADC1_DCCMP2_R (*((volatile unsigned long *)0x40039E48))
-#define ADC1_DCCMP3_R (*((volatile unsigned long *)0x40039E4C))
-#define ADC1_DCCMP4_R (*((volatile unsigned long *)0x40039E50))
-#define ADC1_DCCMP5_R (*((volatile unsigned long *)0x40039E54))
-#define ADC1_DCCMP6_R (*((volatile unsigned long *)0x40039E58))
-#define ADC1_DCCMP7_R (*((volatile unsigned long *)0x40039E5C))
-#define ADC1_PP_R (*((volatile unsigned long *)0x40039FC0))
-#define ADC1_PC_R (*((volatile unsigned long *)0x40039FC4))
-#define ADC1_CC_R (*((volatile unsigned long *)0x40039FC8))
-
-//*****************************************************************************
-//
-// Comparator registers (COMP)
-//
-//*****************************************************************************
-#define COMP_ACMIS_R (*((volatile unsigned long *)0x4003C000))
-#define COMP_ACRIS_R (*((volatile unsigned long *)0x4003C004))
-#define COMP_ACINTEN_R (*((volatile unsigned long *)0x4003C008))
-#define COMP_ACREFCTL_R (*((volatile unsigned long *)0x4003C010))
-#define COMP_ACSTAT0_R (*((volatile unsigned long *)0x4003C020))
-#define COMP_ACCTL0_R (*((volatile unsigned long *)0x4003C024))
-#define COMP_ACSTAT1_R (*((volatile unsigned long *)0x4003C040))
-#define COMP_ACCTL1_R (*((volatile unsigned long *)0x4003C044))
-#define COMP_ACSTAT2_R (*((volatile unsigned long *)0x4003C060))
-#define COMP_ACCTL2_R (*((volatile unsigned long *)0x4003C064))
-#define COMP_PP_R (*((volatile unsigned long *)0x4003CFC0))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTJ)
-//
-//*****************************************************************************
-#define GPIO_PORTJ_DATA_BITS_R ((volatile unsigned long *)0x4003D000)
-#define GPIO_PORTJ_DATA_R (*((volatile unsigned long *)0x4003D3FC))
-#define GPIO_PORTJ_DIR_R (*((volatile unsigned long *)0x4003D400))
-#define GPIO_PORTJ_IS_R (*((volatile unsigned long *)0x4003D404))
-#define GPIO_PORTJ_IBE_R (*((volatile unsigned long *)0x4003D408))
-#define GPIO_PORTJ_IEV_R (*((volatile unsigned long *)0x4003D40C))
-#define GPIO_PORTJ_IM_R (*((volatile unsigned long *)0x4003D410))
-#define GPIO_PORTJ_RIS_R (*((volatile unsigned long *)0x4003D414))
-#define GPIO_PORTJ_MIS_R (*((volatile unsigned long *)0x4003D418))
-#define GPIO_PORTJ_ICR_R (*((volatile unsigned long *)0x4003D41C))
-#define GPIO_PORTJ_AFSEL_R (*((volatile unsigned long *)0x4003D420))
-#define GPIO_PORTJ_DR2R_R (*((volatile unsigned long *)0x4003D500))
-#define GPIO_PORTJ_DR4R_R (*((volatile unsigned long *)0x4003D504))
-#define GPIO_PORTJ_DR8R_R (*((volatile unsigned long *)0x4003D508))
-#define GPIO_PORTJ_ODR_R (*((volatile unsigned long *)0x4003D50C))
-#define GPIO_PORTJ_PUR_R (*((volatile unsigned long *)0x4003D510))
-#define GPIO_PORTJ_PDR_R (*((volatile unsigned long *)0x4003D514))
-#define GPIO_PORTJ_SLR_R (*((volatile unsigned long *)0x4003D518))
-#define GPIO_PORTJ_DEN_R (*((volatile unsigned long *)0x4003D51C))
-#define GPIO_PORTJ_LOCK_R (*((volatile unsigned long *)0x4003D520))
-#define GPIO_PORTJ_CR_R (*((volatile unsigned long *)0x4003D524))
-#define GPIO_PORTJ_AMSEL_R (*((volatile unsigned long *)0x4003D528))
-#define GPIO_PORTJ_PCTL_R (*((volatile unsigned long *)0x4003D52C))
-#define GPIO_PORTJ_ADCCTL_R (*((volatile unsigned long *)0x4003D530))
-#define GPIO_PORTJ_DMACTL_R (*((volatile unsigned long *)0x4003D534))
-#define GPIO_PORTJ_SI_R (*((volatile unsigned long *)0x4003D538))
-
-//*****************************************************************************
-//
-// CAN registers (CAN0)
-//
-//*****************************************************************************
-#define CAN0_CTL_R (*((volatile unsigned long *)0x40040000))
-#define CAN0_STS_R (*((volatile unsigned long *)0x40040004))
-#define CAN0_ERR_R (*((volatile unsigned long *)0x40040008))
-#define CAN0_BIT_R (*((volatile unsigned long *)0x4004000C))
-#define CAN0_INT_R (*((volatile unsigned long *)0x40040010))
-#define CAN0_TST_R (*((volatile unsigned long *)0x40040014))
-#define CAN0_BRPE_R (*((volatile unsigned long *)0x40040018))
-#define CAN0_IF1CRQ_R (*((volatile unsigned long *)0x40040020))
-#define CAN0_IF1CMSK_R (*((volatile unsigned long *)0x40040024))
-#define CAN0_IF1MSK1_R (*((volatile unsigned long *)0x40040028))
-#define CAN0_IF1MSK2_R (*((volatile unsigned long *)0x4004002C))
-#define CAN0_IF1ARB1_R (*((volatile unsigned long *)0x40040030))
-#define CAN0_IF1ARB2_R (*((volatile unsigned long *)0x40040034))
-#define CAN0_IF1MCTL_R (*((volatile unsigned long *)0x40040038))
-#define CAN0_IF1DA1_R (*((volatile unsigned long *)0x4004003C))
-#define CAN0_IF1DA2_R (*((volatile unsigned long *)0x40040040))
-#define CAN0_IF1DB1_R (*((volatile unsigned long *)0x40040044))
-#define CAN0_IF1DB2_R (*((volatile unsigned long *)0x40040048))
-#define CAN0_IF2CRQ_R (*((volatile unsigned long *)0x40040080))
-#define CAN0_IF2CMSK_R (*((volatile unsigned long *)0x40040084))
-#define CAN0_IF2MSK1_R (*((volatile unsigned long *)0x40040088))
-#define CAN0_IF2MSK2_R (*((volatile unsigned long *)0x4004008C))
-#define CAN0_IF2ARB1_R (*((volatile unsigned long *)0x40040090))
-#define CAN0_IF2ARB2_R (*((volatile unsigned long *)0x40040094))
-#define CAN0_IF2MCTL_R (*((volatile unsigned long *)0x40040098))
-#define CAN0_IF2DA1_R (*((volatile unsigned long *)0x4004009C))
-#define CAN0_IF2DA2_R (*((volatile unsigned long *)0x400400A0))
-#define CAN0_IF2DB1_R (*((volatile unsigned long *)0x400400A4))
-#define CAN0_IF2DB2_R (*((volatile unsigned long *)0x400400A8))
-#define CAN0_TXRQ1_R (*((volatile unsigned long *)0x40040100))
-#define CAN0_TXRQ2_R (*((volatile unsigned long *)0x40040104))
-#define CAN0_NWDA1_R (*((volatile unsigned long *)0x40040120))
-#define CAN0_NWDA2_R (*((volatile unsigned long *)0x40040124))
-#define CAN0_MSG1INT_R (*((volatile unsigned long *)0x40040140))
-#define CAN0_MSG2INT_R (*((volatile unsigned long *)0x40040144))
-#define CAN0_MSG1VAL_R (*((volatile unsigned long *)0x40040160))
-#define CAN0_MSG2VAL_R (*((volatile unsigned long *)0x40040164))
-
-//*****************************************************************************
-//
-// CAN registers (CAN1)
-//
-//*****************************************************************************
-#define CAN1_CTL_R (*((volatile unsigned long *)0x40041000))
-#define CAN1_STS_R (*((volatile unsigned long *)0x40041004))
-#define CAN1_ERR_R (*((volatile unsigned long *)0x40041008))
-#define CAN1_BIT_R (*((volatile unsigned long *)0x4004100C))
-#define CAN1_INT_R (*((volatile unsigned long *)0x40041010))
-#define CAN1_TST_R (*((volatile unsigned long *)0x40041014))
-#define CAN1_BRPE_R (*((volatile unsigned long *)0x40041018))
-#define CAN1_IF1CRQ_R (*((volatile unsigned long *)0x40041020))
-#define CAN1_IF1CMSK_R (*((volatile unsigned long *)0x40041024))
-#define CAN1_IF1MSK1_R (*((volatile unsigned long *)0x40041028))
-#define CAN1_IF1MSK2_R (*((volatile unsigned long *)0x4004102C))
-#define CAN1_IF1ARB1_R (*((volatile unsigned long *)0x40041030))
-#define CAN1_IF1ARB2_R (*((volatile unsigned long *)0x40041034))
-#define CAN1_IF1MCTL_R (*((volatile unsigned long *)0x40041038))
-#define CAN1_IF1DA1_R (*((volatile unsigned long *)0x4004103C))
-#define CAN1_IF1DA2_R (*((volatile unsigned long *)0x40041040))
-#define CAN1_IF1DB1_R (*((volatile unsigned long *)0x40041044))
-#define CAN1_IF1DB2_R (*((volatile unsigned long *)0x40041048))
-#define CAN1_IF2CRQ_R (*((volatile unsigned long *)0x40041080))
-#define CAN1_IF2CMSK_R (*((volatile unsigned long *)0x40041084))
-#define CAN1_IF2MSK1_R (*((volatile unsigned long *)0x40041088))
-#define CAN1_IF2MSK2_R (*((volatile unsigned long *)0x4004108C))
-#define CAN1_IF2ARB1_R (*((volatile unsigned long *)0x40041090))
-#define CAN1_IF2ARB2_R (*((volatile unsigned long *)0x40041094))
-#define CAN1_IF2MCTL_R (*((volatile unsigned long *)0x40041098))
-#define CAN1_IF2DA1_R (*((volatile unsigned long *)0x4004109C))
-#define CAN1_IF2DA2_R (*((volatile unsigned long *)0x400410A0))
-#define CAN1_IF2DB1_R (*((volatile unsigned long *)0x400410A4))
-#define CAN1_IF2DB2_R (*((volatile unsigned long *)0x400410A8))
-#define CAN1_TXRQ1_R (*((volatile unsigned long *)0x40041100))
-#define CAN1_TXRQ2_R (*((volatile unsigned long *)0x40041104))
-#define CAN1_NWDA1_R (*((volatile unsigned long *)0x40041120))
-#define CAN1_NWDA2_R (*((volatile unsigned long *)0x40041124))
-#define CAN1_MSG1INT_R (*((volatile unsigned long *)0x40041140))
-#define CAN1_MSG2INT_R (*((volatile unsigned long *)0x40041144))
-#define CAN1_MSG1VAL_R (*((volatile unsigned long *)0x40041160))
-#define CAN1_MSG2VAL_R (*((volatile unsigned long *)0x40041164))
-
-//*****************************************************************************
-//
-// Timer registers (WTIMER2)
-//
-//*****************************************************************************
-#define WTIMER2_CFG_R (*((volatile unsigned long *)0x4004C000))
-#define WTIMER2_TAMR_R (*((volatile unsigned long *)0x4004C004))
-#define WTIMER2_TBMR_R (*((volatile unsigned long *)0x4004C008))
-#define WTIMER2_CTL_R (*((volatile unsigned long *)0x4004C00C))
-#define WTIMER2_SYNC_R (*((volatile unsigned long *)0x4004C010))
-#define WTIMER2_IMR_R (*((volatile unsigned long *)0x4004C018))
-#define WTIMER2_RIS_R (*((volatile unsigned long *)0x4004C01C))
-#define WTIMER2_MIS_R (*((volatile unsigned long *)0x4004C020))
-#define WTIMER2_ICR_R (*((volatile unsigned long *)0x4004C024))
-#define WTIMER2_TAILR_R (*((volatile unsigned long *)0x4004C028))
-#define WTIMER2_TBILR_R (*((volatile unsigned long *)0x4004C02C))
-#define WTIMER2_TAMATCHR_R (*((volatile unsigned long *)0x4004C030))
-#define WTIMER2_TBMATCHR_R (*((volatile unsigned long *)0x4004C034))
-#define WTIMER2_TAPR_R (*((volatile unsigned long *)0x4004C038))
-#define WTIMER2_TBPR_R (*((volatile unsigned long *)0x4004C03C))
-#define WTIMER2_TAPMR_R (*((volatile unsigned long *)0x4004C040))
-#define WTIMER2_TBPMR_R (*((volatile unsigned long *)0x4004C044))
-#define WTIMER2_TAR_R (*((volatile unsigned long *)0x4004C048))
-#define WTIMER2_TBR_R (*((volatile unsigned long *)0x4004C04C))
-#define WTIMER2_TAV_R (*((volatile unsigned long *)0x4004C050))
-#define WTIMER2_TBV_R (*((volatile unsigned long *)0x4004C054))
-#define WTIMER2_RTCPD_R (*((volatile unsigned long *)0x4004C058))
-#define WTIMER2_TAPS_R (*((volatile unsigned long *)0x4004C05C))
-#define WTIMER2_TBPS_R (*((volatile unsigned long *)0x4004C060))
-#define WTIMER2_TAPV_R (*((volatile unsigned long *)0x4004C064))
-#define WTIMER2_TBPV_R (*((volatile unsigned long *)0x4004C068))
-#define WTIMER2_PP_R (*((volatile unsigned long *)0x4004CFC0))
-
-//*****************************************************************************
-//
-// Timer registers (WTIMER3)
-//
-//*****************************************************************************
-#define WTIMER3_CFG_R (*((volatile unsigned long *)0x4004D000))
-#define WTIMER3_TAMR_R (*((volatile unsigned long *)0x4004D004))
-#define WTIMER3_TBMR_R (*((volatile unsigned long *)0x4004D008))
-#define WTIMER3_CTL_R (*((volatile unsigned long *)0x4004D00C))
-#define WTIMER3_SYNC_R (*((volatile unsigned long *)0x4004D010))
-#define WTIMER3_IMR_R (*((volatile unsigned long *)0x4004D018))
-#define WTIMER3_RIS_R (*((volatile unsigned long *)0x4004D01C))
-#define WTIMER3_MIS_R (*((volatile unsigned long *)0x4004D020))
-#define WTIMER3_ICR_R (*((volatile unsigned long *)0x4004D024))
-#define WTIMER3_TAILR_R (*((volatile unsigned long *)0x4004D028))
-#define WTIMER3_TBILR_R (*((volatile unsigned long *)0x4004D02C))
-#define WTIMER3_TAMATCHR_R (*((volatile unsigned long *)0x4004D030))
-#define WTIMER3_TBMATCHR_R (*((volatile unsigned long *)0x4004D034))
-#define WTIMER3_TAPR_R (*((volatile unsigned long *)0x4004D038))
-#define WTIMER3_TBPR_R (*((volatile unsigned long *)0x4004D03C))
-#define WTIMER3_TAPMR_R (*((volatile unsigned long *)0x4004D040))
-#define WTIMER3_TBPMR_R (*((volatile unsigned long *)0x4004D044))
-#define WTIMER3_TAR_R (*((volatile unsigned long *)0x4004D048))
-#define WTIMER3_TBR_R (*((volatile unsigned long *)0x4004D04C))
-#define WTIMER3_TAV_R (*((volatile unsigned long *)0x4004D050))
-#define WTIMER3_TBV_R (*((volatile unsigned long *)0x4004D054))
-#define WTIMER3_RTCPD_R (*((volatile unsigned long *)0x4004D058))
-#define WTIMER3_TAPS_R (*((volatile unsigned long *)0x4004D05C))
-#define WTIMER3_TBPS_R (*((volatile unsigned long *)0x4004D060))
-#define WTIMER3_TAPV_R (*((volatile unsigned long *)0x4004D064))
-#define WTIMER3_TBPV_R (*((volatile unsigned long *)0x4004D068))
-#define WTIMER3_PP_R (*((volatile unsigned long *)0x4004DFC0))
-
-//*****************************************************************************
-//
-// Timer registers (WTIMER4)
-//
-//*****************************************************************************
-#define WTIMER4_CFG_R (*((volatile unsigned long *)0x4004E000))
-#define WTIMER4_TAMR_R (*((volatile unsigned long *)0x4004E004))
-#define WTIMER4_TBMR_R (*((volatile unsigned long *)0x4004E008))
-#define WTIMER4_CTL_R (*((volatile unsigned long *)0x4004E00C))
-#define WTIMER4_SYNC_R (*((volatile unsigned long *)0x4004E010))
-#define WTIMER4_IMR_R (*((volatile unsigned long *)0x4004E018))
-#define WTIMER4_RIS_R (*((volatile unsigned long *)0x4004E01C))
-#define WTIMER4_MIS_R (*((volatile unsigned long *)0x4004E020))
-#define WTIMER4_ICR_R (*((volatile unsigned long *)0x4004E024))
-#define WTIMER4_TAILR_R (*((volatile unsigned long *)0x4004E028))
-#define WTIMER4_TBILR_R (*((volatile unsigned long *)0x4004E02C))
-#define WTIMER4_TAMATCHR_R (*((volatile unsigned long *)0x4004E030))
-#define WTIMER4_TBMATCHR_R (*((volatile unsigned long *)0x4004E034))
-#define WTIMER4_TAPR_R (*((volatile unsigned long *)0x4004E038))
-#define WTIMER4_TBPR_R (*((volatile unsigned long *)0x4004E03C))
-#define WTIMER4_TAPMR_R (*((volatile unsigned long *)0x4004E040))
-#define WTIMER4_TBPMR_R (*((volatile unsigned long *)0x4004E044))
-#define WTIMER4_TAR_R (*((volatile unsigned long *)0x4004E048))
-#define WTIMER4_TBR_R (*((volatile unsigned long *)0x4004E04C))
-#define WTIMER4_TAV_R (*((volatile unsigned long *)0x4004E050))
-#define WTIMER4_TBV_R (*((volatile unsigned long *)0x4004E054))
-#define WTIMER4_RTCPD_R (*((volatile unsigned long *)0x4004E058))
-#define WTIMER4_TAPS_R (*((volatile unsigned long *)0x4004E05C))
-#define WTIMER4_TBPS_R (*((volatile unsigned long *)0x4004E060))
-#define WTIMER4_TAPV_R (*((volatile unsigned long *)0x4004E064))
-#define WTIMER4_TBPV_R (*((volatile unsigned long *)0x4004E068))
-#define WTIMER4_PP_R (*((volatile unsigned long *)0x4004EFC0))
-
-//*****************************************************************************
-//
-// Timer registers (WTIMER5)
-//
-//*****************************************************************************
-#define WTIMER5_CFG_R (*((volatile unsigned long *)0x4004F000))
-#define WTIMER5_TAMR_R (*((volatile unsigned long *)0x4004F004))
-#define WTIMER5_TBMR_R (*((volatile unsigned long *)0x4004F008))
-#define WTIMER5_CTL_R (*((volatile unsigned long *)0x4004F00C))
-#define WTIMER5_SYNC_R (*((volatile unsigned long *)0x4004F010))
-#define WTIMER5_IMR_R (*((volatile unsigned long *)0x4004F018))
-#define WTIMER5_RIS_R (*((volatile unsigned long *)0x4004F01C))
-#define WTIMER5_MIS_R (*((volatile unsigned long *)0x4004F020))
-#define WTIMER5_ICR_R (*((volatile unsigned long *)0x4004F024))
-#define WTIMER5_TAILR_R (*((volatile unsigned long *)0x4004F028))
-#define WTIMER5_TBILR_R (*((volatile unsigned long *)0x4004F02C))
-#define WTIMER5_TAMATCHR_R (*((volatile unsigned long *)0x4004F030))
-#define WTIMER5_TBMATCHR_R (*((volatile unsigned long *)0x4004F034))
-#define WTIMER5_TAPR_R (*((volatile unsigned long *)0x4004F038))
-#define WTIMER5_TBPR_R (*((volatile unsigned long *)0x4004F03C))
-#define WTIMER5_TAPMR_R (*((volatile unsigned long *)0x4004F040))
-#define WTIMER5_TBPMR_R (*((volatile unsigned long *)0x4004F044))
-#define WTIMER5_TAR_R (*((volatile unsigned long *)0x4004F048))
-#define WTIMER5_TBR_R (*((volatile unsigned long *)0x4004F04C))
-#define WTIMER5_TAV_R (*((volatile unsigned long *)0x4004F050))
-#define WTIMER5_TBV_R (*((volatile unsigned long *)0x4004F054))
-#define WTIMER5_RTCPD_R (*((volatile unsigned long *)0x4004F058))
-#define WTIMER5_TAPS_R (*((volatile unsigned long *)0x4004F05C))
-#define WTIMER5_TBPS_R (*((volatile unsigned long *)0x4004F060))
-#define WTIMER5_TAPV_R (*((volatile unsigned long *)0x4004F064))
-#define WTIMER5_TBPV_R (*((volatile unsigned long *)0x4004F068))
-#define WTIMER5_PP_R (*((volatile unsigned long *)0x4004FFC0))
-
-//*****************************************************************************
-//
-// Univeral Serial Bus registers (USB0)
-//
-//*****************************************************************************
-#define USB0_FADDR_R (*((volatile unsigned char *)0x40050000))
-#define USB0_POWER_R (*((volatile unsigned char *)0x40050001))
-#define USB0_TXIS_R (*((volatile unsigned short *)0x40050002))
-#define USB0_RXIS_R (*((volatile unsigned short *)0x40050004))
-#define USB0_TXIE_R (*((volatile unsigned short *)0x40050006))
-#define USB0_RXIE_R (*((volatile unsigned short *)0x40050008))
-#define USB0_IS_R (*((volatile unsigned char *)0x4005000A))
-#define USB0_IE_R (*((volatile unsigned char *)0x4005000B))
-#define USB0_FRAME_R (*((volatile unsigned short *)0x4005000C))
-#define USB0_EPIDX_R (*((volatile unsigned char *)0x4005000E))
-#define USB0_TEST_R (*((volatile unsigned char *)0x4005000F))
-#define USB0_FIFO0_R (*((volatile unsigned long *)0x40050020))
-#define USB0_FIFO1_R (*((volatile unsigned long *)0x40050024))
-#define USB0_FIFO2_R (*((volatile unsigned long *)0x40050028))
-#define USB0_FIFO3_R (*((volatile unsigned long *)0x4005002C))
-#define USB0_FIFO4_R (*((volatile unsigned long *)0x40050030))
-#define USB0_FIFO5_R (*((volatile unsigned long *)0x40050034))
-#define USB0_FIFO6_R (*((volatile unsigned long *)0x40050038))
-#define USB0_FIFO7_R (*((volatile unsigned long *)0x4005003C))
-#define USB0_DEVCTL_R (*((volatile unsigned char *)0x40050060))
-#define USB0_TXFIFOSZ_R (*((volatile unsigned char *)0x40050062))
-#define USB0_RXFIFOSZ_R (*((volatile unsigned char *)0x40050063))
-#define USB0_TXFIFOADD_R (*((volatile unsigned short *)0x40050064))
-#define USB0_RXFIFOADD_R (*((volatile unsigned short *)0x40050066))
-#define USB0_CONTIM_R (*((volatile unsigned char *)0x4005007A))
-#define USB0_VPLEN_R (*((volatile unsigned char *)0x4005007B))
-#define USB0_FSEOF_R (*((volatile unsigned char *)0x4005007D))
-#define USB0_LSEOF_R (*((volatile unsigned char *)0x4005007E))
-#define USB0_TXFUNCADDR0_R (*((volatile unsigned char *)0x40050080))
-#define USB0_TXHUBADDR0_R (*((volatile unsigned char *)0x40050082))
-#define USB0_TXHUBPORT0_R (*((volatile unsigned char *)0x40050083))
-#define USB0_TXFUNCADDR1_R (*((volatile unsigned char *)0x40050088))
-#define USB0_TXHUBADDR1_R (*((volatile unsigned char *)0x4005008A))
-#define USB0_TXHUBPORT1_R (*((volatile unsigned char *)0x4005008B))
-#define USB0_RXFUNCADDR1_R (*((volatile unsigned char *)0x4005008C))
-#define USB0_RXHUBADDR1_R (*((volatile unsigned char *)0x4005008E))
-#define USB0_RXHUBPORT1_R (*((volatile unsigned char *)0x4005008F))
-#define USB0_TXFUNCADDR2_R (*((volatile unsigned char *)0x40050090))
-#define USB0_TXHUBADDR2_R (*((volatile unsigned char *)0x40050092))
-#define USB0_TXHUBPORT2_R (*((volatile unsigned char *)0x40050093))
-#define USB0_RXFUNCADDR2_R (*((volatile unsigned char *)0x40050094))
-#define USB0_RXHUBADDR2_R (*((volatile unsigned char *)0x40050096))
-#define USB0_RXHUBPORT2_R (*((volatile unsigned char *)0x40050097))
-#define USB0_TXFUNCADDR3_R (*((volatile unsigned char *)0x40050098))
-#define USB0_TXHUBADDR3_R (*((volatile unsigned char *)0x4005009A))
-#define USB0_TXHUBPORT3_R (*((volatile unsigned char *)0x4005009B))
-#define USB0_RXFUNCADDR3_R (*((volatile unsigned char *)0x4005009C))
-#define USB0_RXHUBADDR3_R (*((volatile unsigned char *)0x4005009E))
-#define USB0_RXHUBPORT3_R (*((volatile unsigned char *)0x4005009F))
-#define USB0_TXFUNCADDR4_R (*((volatile unsigned char *)0x400500A0))
-#define USB0_TXHUBADDR4_R (*((volatile unsigned char *)0x400500A2))
-#define USB0_TXHUBPORT4_R (*((volatile unsigned char *)0x400500A3))
-#define USB0_RXFUNCADDR4_R (*((volatile unsigned char *)0x400500A4))
-#define USB0_RXHUBADDR4_R (*((volatile unsigned char *)0x400500A6))
-#define USB0_RXHUBPORT4_R (*((volatile unsigned char *)0x400500A7))
-#define USB0_TXFUNCADDR5_R (*((volatile unsigned char *)0x400500A8))
-#define USB0_TXHUBADDR5_R (*((volatile unsigned char *)0x400500AA))
-#define USB0_TXHUBPORT5_R (*((volatile unsigned char *)0x400500AB))
-#define USB0_RXFUNCADDR5_R (*((volatile unsigned char *)0x400500AC))
-#define USB0_RXHUBADDR5_R (*((volatile unsigned char *)0x400500AE))
-#define USB0_RXHUBPORT5_R (*((volatile unsigned char *)0x400500AF))
-#define USB0_TXFUNCADDR6_R (*((volatile unsigned char *)0x400500B0))
-#define USB0_TXHUBADDR6_R (*((volatile unsigned char *)0x400500B2))
-#define USB0_TXHUBPORT6_R (*((volatile unsigned char *)0x400500B3))
-#define USB0_RXFUNCADDR6_R (*((volatile unsigned char *)0x400500B4))
-#define USB0_RXHUBADDR6_R (*((volatile unsigned char *)0x400500B6))
-#define USB0_RXHUBPORT6_R (*((volatile unsigned char *)0x400500B7))
-#define USB0_TXFUNCADDR7_R (*((volatile unsigned char *)0x400500B8))
-#define USB0_TXHUBADDR7_R (*((volatile unsigned char *)0x400500BA))
-#define USB0_TXHUBPORT7_R (*((volatile unsigned char *)0x400500BB))
-#define USB0_RXFUNCADDR7_R (*((volatile unsigned char *)0x400500BC))
-#define USB0_RXHUBADDR7_R (*((volatile unsigned char *)0x400500BE))
-#define USB0_RXHUBPORT7_R (*((volatile unsigned char *)0x400500BF))
-#define USB0_CSRL0_R (*((volatile unsigned char *)0x40050102))
-#define USB0_CSRH0_R (*((volatile unsigned char *)0x40050103))
-#define USB0_COUNT0_R (*((volatile unsigned char *)0x40050108))
-#define USB0_TYPE0_R (*((volatile unsigned char *)0x4005010A))
-#define USB0_NAKLMT_R (*((volatile unsigned char *)0x4005010B))
-#define USB0_TXMAXP1_R (*((volatile unsigned short *)0x40050110))
-#define USB0_TXCSRL1_R (*((volatile unsigned char *)0x40050112))
-#define USB0_TXCSRH1_R (*((volatile unsigned char *)0x40050113))
-#define USB0_RXMAXP1_R (*((volatile unsigned short *)0x40050114))
-#define USB0_RXCSRL1_R (*((volatile unsigned char *)0x40050116))
-#define USB0_RXCSRH1_R (*((volatile unsigned char *)0x40050117))
-#define USB0_RXCOUNT1_R (*((volatile unsigned short *)0x40050118))
-#define USB0_TXTYPE1_R (*((volatile unsigned char *)0x4005011A))
-#define USB0_TXINTERVAL1_R (*((volatile unsigned char *)0x4005011B))
-#define USB0_RXTYPE1_R (*((volatile unsigned char *)0x4005011C))
-#define USB0_RXINTERVAL1_R (*((volatile unsigned char *)0x4005011D))
-#define USB0_TXMAXP2_R (*((volatile unsigned short *)0x40050120))
-#define USB0_TXCSRL2_R (*((volatile unsigned char *)0x40050122))
-#define USB0_TXCSRH2_R (*((volatile unsigned char *)0x40050123))
-#define USB0_RXMAXP2_R (*((volatile unsigned short *)0x40050124))
-#define USB0_RXCSRL2_R (*((volatile unsigned char *)0x40050126))
-#define USB0_RXCSRH2_R (*((volatile unsigned char *)0x40050127))
-#define USB0_RXCOUNT2_R (*((volatile unsigned short *)0x40050128))
-#define USB0_TXTYPE2_R (*((volatile unsigned char *)0x4005012A))
-#define USB0_TXINTERVAL2_R (*((volatile unsigned char *)0x4005012B))
-#define USB0_RXTYPE2_R (*((volatile unsigned char *)0x4005012C))
-#define USB0_RXINTERVAL2_R (*((volatile unsigned char *)0x4005012D))
-#define USB0_TXMAXP3_R (*((volatile unsigned short *)0x40050130))
-#define USB0_TXCSRL3_R (*((volatile unsigned char *)0x40050132))
-#define USB0_TXCSRH3_R (*((volatile unsigned char *)0x40050133))
-#define USB0_RXMAXP3_R (*((volatile unsigned short *)0x40050134))
-#define USB0_RXCSRL3_R (*((volatile unsigned char *)0x40050136))
-#define USB0_RXCSRH3_R (*((volatile unsigned char *)0x40050137))
-#define USB0_RXCOUNT3_R (*((volatile unsigned short *)0x40050138))
-#define USB0_TXTYPE3_R (*((volatile unsigned char *)0x4005013A))
-#define USB0_TXINTERVAL3_R (*((volatile unsigned char *)0x4005013B))
-#define USB0_RXTYPE3_R (*((volatile unsigned char *)0x4005013C))
-#define USB0_RXINTERVAL3_R (*((volatile unsigned char *)0x4005013D))
-#define USB0_TXMAXP4_R (*((volatile unsigned short *)0x40050140))
-#define USB0_TXCSRL4_R (*((volatile unsigned char *)0x40050142))
-#define USB0_TXCSRH4_R (*((volatile unsigned char *)0x40050143))
-#define USB0_RXMAXP4_R (*((volatile unsigned short *)0x40050144))
-#define USB0_RXCSRL4_R (*((volatile unsigned char *)0x40050146))
-#define USB0_RXCSRH4_R (*((volatile unsigned char *)0x40050147))
-#define USB0_RXCOUNT4_R (*((volatile unsigned short *)0x40050148))
-#define USB0_TXTYPE4_R (*((volatile unsigned char *)0x4005014A))
-#define USB0_TXINTERVAL4_R (*((volatile unsigned char *)0x4005014B))
-#define USB0_RXTYPE4_R (*((volatile unsigned char *)0x4005014C))
-#define USB0_RXINTERVAL4_R (*((volatile unsigned char *)0x4005014D))
-#define USB0_TXMAXP5_R (*((volatile unsigned short *)0x40050150))
-#define USB0_TXCSRL5_R (*((volatile unsigned char *)0x40050152))
-#define USB0_TXCSRH5_R (*((volatile unsigned char *)0x40050153))
-#define USB0_RXMAXP5_R (*((volatile unsigned short *)0x40050154))
-#define USB0_RXCSRL5_R (*((volatile unsigned char *)0x40050156))
-#define USB0_RXCSRH5_R (*((volatile unsigned char *)0x40050157))
-#define USB0_RXCOUNT5_R (*((volatile unsigned short *)0x40050158))
-#define USB0_TXTYPE5_R (*((volatile unsigned char *)0x4005015A))
-#define USB0_TXINTERVAL5_R (*((volatile unsigned char *)0x4005015B))
-#define USB0_RXTYPE5_R (*((volatile unsigned char *)0x4005015C))
-#define USB0_RXINTERVAL5_R (*((volatile unsigned char *)0x4005015D))
-#define USB0_TXMAXP6_R (*((volatile unsigned short *)0x40050160))
-#define USB0_TXCSRL6_R (*((volatile unsigned char *)0x40050162))
-#define USB0_TXCSRH6_R (*((volatile unsigned char *)0x40050163))
-#define USB0_RXMAXP6_R (*((volatile unsigned short *)0x40050164))
-#define USB0_RXCSRL6_R (*((volatile unsigned char *)0x40050166))
-#define USB0_RXCSRH6_R (*((volatile unsigned char *)0x40050167))
-#define USB0_RXCOUNT6_R (*((volatile unsigned short *)0x40050168))
-#define USB0_TXTYPE6_R (*((volatile unsigned char *)0x4005016A))
-#define USB0_TXINTERVAL6_R (*((volatile unsigned char *)0x4005016B))
-#define USB0_RXTYPE6_R (*((volatile unsigned char *)0x4005016C))
-#define USB0_RXINTERVAL6_R (*((volatile unsigned char *)0x4005016D))
-#define USB0_TXMAXP7_R (*((volatile unsigned short *)0x40050170))
-#define USB0_TXCSRL7_R (*((volatile unsigned char *)0x40050172))
-#define USB0_TXCSRH7_R (*((volatile unsigned char *)0x40050173))
-#define USB0_RXMAXP7_R (*((volatile unsigned short *)0x40050174))
-#define USB0_RXCSRL7_R (*((volatile unsigned char *)0x40050176))
-#define USB0_RXCSRH7_R (*((volatile unsigned char *)0x40050177))
-#define USB0_RXCOUNT7_R (*((volatile unsigned short *)0x40050178))
-#define USB0_TXTYPE7_R (*((volatile unsigned char *)0x4005017A))
-#define USB0_TXINTERVAL7_R (*((volatile unsigned char *)0x4005017B))
-#define USB0_RXTYPE7_R (*((volatile unsigned char *)0x4005017C))
-#define USB0_RXINTERVAL7_R (*((volatile unsigned char *)0x4005017D))
-#define USB0_RQPKTCOUNT1_R (*((volatile unsigned short *)0x40050304))
-#define USB0_RQPKTCOUNT2_R (*((volatile unsigned short *)0x40050308))
-#define USB0_RQPKTCOUNT3_R (*((volatile unsigned short *)0x4005030C))
-#define USB0_RQPKTCOUNT4_R (*((volatile unsigned short *)0x40050310))
-#define USB0_RQPKTCOUNT5_R (*((volatile unsigned short *)0x40050314))
-#define USB0_RQPKTCOUNT6_R (*((volatile unsigned short *)0x40050318))
-#define USB0_RQPKTCOUNT7_R (*((volatile unsigned short *)0x4005031C))
-#define USB0_RXDPKTBUFDIS_R (*((volatile unsigned short *)0x40050340))
-#define USB0_TXDPKTBUFDIS_R (*((volatile unsigned short *)0x40050342))
-#define USB0_EPC_R (*((volatile unsigned long *)0x40050400))
-#define USB0_EPCRIS_R (*((volatile unsigned long *)0x40050404))
-#define USB0_EPCIM_R (*((volatile unsigned long *)0x40050408))
-#define USB0_EPCISC_R (*((volatile unsigned long *)0x4005040C))
-#define USB0_DRRIS_R (*((volatile unsigned long *)0x40050410))
-#define USB0_DRIM_R (*((volatile unsigned long *)0x40050414))
-#define USB0_DRISC_R (*((volatile unsigned long *)0x40050418))
-#define USB0_GPCS_R (*((volatile unsigned long *)0x4005041C))
-#define USB0_VDC_R (*((volatile unsigned long *)0x40050430))
-#define USB0_VDCRIS_R (*((volatile unsigned long *)0x40050434))
-#define USB0_VDCIM_R (*((volatile unsigned long *)0x40050438))
-#define USB0_VDCISC_R (*((volatile unsigned long *)0x4005043C))
-#define USB0_IDVRIS_R (*((volatile unsigned long *)0x40050444))
-#define USB0_IDVIM_R (*((volatile unsigned long *)0x40050448))
-#define USB0_IDVISC_R (*((volatile unsigned long *)0x4005044C))
-#define USB0_DMASEL_R (*((volatile unsigned long *)0x40050450))
-#define USB0_PP_R (*((volatile unsigned long *)0x40050FC0))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTA AHB)
-//
-//*****************************************************************************
-#define GPIO_PORTA_AHB_DATA_BITS_R \
- ((volatile unsigned long *)0x40058000)
-#define GPIO_PORTA_AHB_DATA_R (*((volatile unsigned long *)0x400583FC))
-#define GPIO_PORTA_AHB_DIR_R (*((volatile unsigned long *)0x40058400))
-#define GPIO_PORTA_AHB_IS_R (*((volatile unsigned long *)0x40058404))
-#define GPIO_PORTA_AHB_IBE_R (*((volatile unsigned long *)0x40058408))
-#define GPIO_PORTA_AHB_IEV_R (*((volatile unsigned long *)0x4005840C))
-#define GPIO_PORTA_AHB_IM_R (*((volatile unsigned long *)0x40058410))
-#define GPIO_PORTA_AHB_RIS_R (*((volatile unsigned long *)0x40058414))
-#define GPIO_PORTA_AHB_MIS_R (*((volatile unsigned long *)0x40058418))
-#define GPIO_PORTA_AHB_ICR_R (*((volatile unsigned long *)0x4005841C))
-#define GPIO_PORTA_AHB_AFSEL_R (*((volatile unsigned long *)0x40058420))
-#define GPIO_PORTA_AHB_DR2R_R (*((volatile unsigned long *)0x40058500))
-#define GPIO_PORTA_AHB_DR4R_R (*((volatile unsigned long *)0x40058504))
-#define GPIO_PORTA_AHB_DR8R_R (*((volatile unsigned long *)0x40058508))
-#define GPIO_PORTA_AHB_ODR_R (*((volatile unsigned long *)0x4005850C))
-#define GPIO_PORTA_AHB_PUR_R (*((volatile unsigned long *)0x40058510))
-#define GPIO_PORTA_AHB_PDR_R (*((volatile unsigned long *)0x40058514))
-#define GPIO_PORTA_AHB_SLR_R (*((volatile unsigned long *)0x40058518))
-#define GPIO_PORTA_AHB_DEN_R (*((volatile unsigned long *)0x4005851C))
-#define GPIO_PORTA_AHB_LOCK_R (*((volatile unsigned long *)0x40058520))
-#define GPIO_PORTA_AHB_CR_R (*((volatile unsigned long *)0x40058524))
-#define GPIO_PORTA_AHB_AMSEL_R (*((volatile unsigned long *)0x40058528))
-#define GPIO_PORTA_AHB_PCTL_R (*((volatile unsigned long *)0x4005852C))
-#define GPIO_PORTA_AHB_ADCCTL_R (*((volatile unsigned long *)0x40058530))
-#define GPIO_PORTA_AHB_DMACTL_R (*((volatile unsigned long *)0x40058534))
-#define GPIO_PORTA_AHB_SI_R (*((volatile unsigned long *)0x40058538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTB AHB)
-//
-//*****************************************************************************
-#define GPIO_PORTB_AHB_DATA_BITS_R \
- ((volatile unsigned long *)0x40059000)
-#define GPIO_PORTB_AHB_DATA_R (*((volatile unsigned long *)0x400593FC))
-#define GPIO_PORTB_AHB_DIR_R (*((volatile unsigned long *)0x40059400))
-#define GPIO_PORTB_AHB_IS_R (*((volatile unsigned long *)0x40059404))
-#define GPIO_PORTB_AHB_IBE_R (*((volatile unsigned long *)0x40059408))
-#define GPIO_PORTB_AHB_IEV_R (*((volatile unsigned long *)0x4005940C))
-#define GPIO_PORTB_AHB_IM_R (*((volatile unsigned long *)0x40059410))
-#define GPIO_PORTB_AHB_RIS_R (*((volatile unsigned long *)0x40059414))
-#define GPIO_PORTB_AHB_MIS_R (*((volatile unsigned long *)0x40059418))
-#define GPIO_PORTB_AHB_ICR_R (*((volatile unsigned long *)0x4005941C))
-#define GPIO_PORTB_AHB_AFSEL_R (*((volatile unsigned long *)0x40059420))
-#define GPIO_PORTB_AHB_DR2R_R (*((volatile unsigned long *)0x40059500))
-#define GPIO_PORTB_AHB_DR4R_R (*((volatile unsigned long *)0x40059504))
-#define GPIO_PORTB_AHB_DR8R_R (*((volatile unsigned long *)0x40059508))
-#define GPIO_PORTB_AHB_ODR_R (*((volatile unsigned long *)0x4005950C))
-#define GPIO_PORTB_AHB_PUR_R (*((volatile unsigned long *)0x40059510))
-#define GPIO_PORTB_AHB_PDR_R (*((volatile unsigned long *)0x40059514))
-#define GPIO_PORTB_AHB_SLR_R (*((volatile unsigned long *)0x40059518))
-#define GPIO_PORTB_AHB_DEN_R (*((volatile unsigned long *)0x4005951C))
-#define GPIO_PORTB_AHB_LOCK_R (*((volatile unsigned long *)0x40059520))
-#define GPIO_PORTB_AHB_CR_R (*((volatile unsigned long *)0x40059524))
-#define GPIO_PORTB_AHB_AMSEL_R (*((volatile unsigned long *)0x40059528))
-#define GPIO_PORTB_AHB_PCTL_R (*((volatile unsigned long *)0x4005952C))
-#define GPIO_PORTB_AHB_ADCCTL_R (*((volatile unsigned long *)0x40059530))
-#define GPIO_PORTB_AHB_DMACTL_R (*((volatile unsigned long *)0x40059534))
-#define GPIO_PORTB_AHB_SI_R (*((volatile unsigned long *)0x40059538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTC AHB)
-//
-//*****************************************************************************
-#define GPIO_PORTC_AHB_DATA_BITS_R \
- ((volatile unsigned long *)0x4005A000)
-#define GPIO_PORTC_AHB_DATA_R (*((volatile unsigned long *)0x4005A3FC))
-#define GPIO_PORTC_AHB_DIR_R (*((volatile unsigned long *)0x4005A400))
-#define GPIO_PORTC_AHB_IS_R (*((volatile unsigned long *)0x4005A404))
-#define GPIO_PORTC_AHB_IBE_R (*((volatile unsigned long *)0x4005A408))
-#define GPIO_PORTC_AHB_IEV_R (*((volatile unsigned long *)0x4005A40C))
-#define GPIO_PORTC_AHB_IM_R (*((volatile unsigned long *)0x4005A410))
-#define GPIO_PORTC_AHB_RIS_R (*((volatile unsigned long *)0x4005A414))
-#define GPIO_PORTC_AHB_MIS_R (*((volatile unsigned long *)0x4005A418))
-#define GPIO_PORTC_AHB_ICR_R (*((volatile unsigned long *)0x4005A41C))
-#define GPIO_PORTC_AHB_AFSEL_R (*((volatile unsigned long *)0x4005A420))
-#define GPIO_PORTC_AHB_DR2R_R (*((volatile unsigned long *)0x4005A500))
-#define GPIO_PORTC_AHB_DR4R_R (*((volatile unsigned long *)0x4005A504))
-#define GPIO_PORTC_AHB_DR8R_R (*((volatile unsigned long *)0x4005A508))
-#define GPIO_PORTC_AHB_ODR_R (*((volatile unsigned long *)0x4005A50C))
-#define GPIO_PORTC_AHB_PUR_R (*((volatile unsigned long *)0x4005A510))
-#define GPIO_PORTC_AHB_PDR_R (*((volatile unsigned long *)0x4005A514))
-#define GPIO_PORTC_AHB_SLR_R (*((volatile unsigned long *)0x4005A518))
-#define GPIO_PORTC_AHB_DEN_R (*((volatile unsigned long *)0x4005A51C))
-#define GPIO_PORTC_AHB_LOCK_R (*((volatile unsigned long *)0x4005A520))
-#define GPIO_PORTC_AHB_CR_R (*((volatile unsigned long *)0x4005A524))
-#define GPIO_PORTC_AHB_AMSEL_R (*((volatile unsigned long *)0x4005A528))
-#define GPIO_PORTC_AHB_PCTL_R (*((volatile unsigned long *)0x4005A52C))
-#define GPIO_PORTC_AHB_ADCCTL_R (*((volatile unsigned long *)0x4005A530))
-#define GPIO_PORTC_AHB_DMACTL_R (*((volatile unsigned long *)0x4005A534))
-#define GPIO_PORTC_AHB_SI_R (*((volatile unsigned long *)0x4005A538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTD AHB)
-//
-//*****************************************************************************
-#define GPIO_PORTD_AHB_DATA_BITS_R \
- ((volatile unsigned long *)0x4005B000)
-#define GPIO_PORTD_AHB_DATA_R (*((volatile unsigned long *)0x4005B3FC))
-#define GPIO_PORTD_AHB_DIR_R (*((volatile unsigned long *)0x4005B400))
-#define GPIO_PORTD_AHB_IS_R (*((volatile unsigned long *)0x4005B404))
-#define GPIO_PORTD_AHB_IBE_R (*((volatile unsigned long *)0x4005B408))
-#define GPIO_PORTD_AHB_IEV_R (*((volatile unsigned long *)0x4005B40C))
-#define GPIO_PORTD_AHB_IM_R (*((volatile unsigned long *)0x4005B410))
-#define GPIO_PORTD_AHB_RIS_R (*((volatile unsigned long *)0x4005B414))
-#define GPIO_PORTD_AHB_MIS_R (*((volatile unsigned long *)0x4005B418))
-#define GPIO_PORTD_AHB_ICR_R (*((volatile unsigned long *)0x4005B41C))
-#define GPIO_PORTD_AHB_AFSEL_R (*((volatile unsigned long *)0x4005B420))
-#define GPIO_PORTD_AHB_DR2R_R (*((volatile unsigned long *)0x4005B500))
-#define GPIO_PORTD_AHB_DR4R_R (*((volatile unsigned long *)0x4005B504))
-#define GPIO_PORTD_AHB_DR8R_R (*((volatile unsigned long *)0x4005B508))
-#define GPIO_PORTD_AHB_ODR_R (*((volatile unsigned long *)0x4005B50C))
-#define GPIO_PORTD_AHB_PUR_R (*((volatile unsigned long *)0x4005B510))
-#define GPIO_PORTD_AHB_PDR_R (*((volatile unsigned long *)0x4005B514))
-#define GPIO_PORTD_AHB_SLR_R (*((volatile unsigned long *)0x4005B518))
-#define GPIO_PORTD_AHB_DEN_R (*((volatile unsigned long *)0x4005B51C))
-#define GPIO_PORTD_AHB_LOCK_R (*((volatile unsigned long *)0x4005B520))
-#define GPIO_PORTD_AHB_CR_R (*((volatile unsigned long *)0x4005B524))
-#define GPIO_PORTD_AHB_AMSEL_R (*((volatile unsigned long *)0x4005B528))
-#define GPIO_PORTD_AHB_PCTL_R (*((volatile unsigned long *)0x4005B52C))
-#define GPIO_PORTD_AHB_ADCCTL_R (*((volatile unsigned long *)0x4005B530))
-#define GPIO_PORTD_AHB_DMACTL_R (*((volatile unsigned long *)0x4005B534))
-#define GPIO_PORTD_AHB_SI_R (*((volatile unsigned long *)0x4005B538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTE AHB)
-//
-//*****************************************************************************
-#define GPIO_PORTE_AHB_DATA_BITS_R \
- ((volatile unsigned long *)0x4005C000)
-#define GPIO_PORTE_AHB_DATA_R (*((volatile unsigned long *)0x4005C3FC))
-#define GPIO_PORTE_AHB_DIR_R (*((volatile unsigned long *)0x4005C400))
-#define GPIO_PORTE_AHB_IS_R (*((volatile unsigned long *)0x4005C404))
-#define GPIO_PORTE_AHB_IBE_R (*((volatile unsigned long *)0x4005C408))
-#define GPIO_PORTE_AHB_IEV_R (*((volatile unsigned long *)0x4005C40C))
-#define GPIO_PORTE_AHB_IM_R (*((volatile unsigned long *)0x4005C410))
-#define GPIO_PORTE_AHB_RIS_R (*((volatile unsigned long *)0x4005C414))
-#define GPIO_PORTE_AHB_MIS_R (*((volatile unsigned long *)0x4005C418))
-#define GPIO_PORTE_AHB_ICR_R (*((volatile unsigned long *)0x4005C41C))
-#define GPIO_PORTE_AHB_AFSEL_R (*((volatile unsigned long *)0x4005C420))
-#define GPIO_PORTE_AHB_DR2R_R (*((volatile unsigned long *)0x4005C500))
-#define GPIO_PORTE_AHB_DR4R_R (*((volatile unsigned long *)0x4005C504))
-#define GPIO_PORTE_AHB_DR8R_R (*((volatile unsigned long *)0x4005C508))
-#define GPIO_PORTE_AHB_ODR_R (*((volatile unsigned long *)0x4005C50C))
-#define GPIO_PORTE_AHB_PUR_R (*((volatile unsigned long *)0x4005C510))
-#define GPIO_PORTE_AHB_PDR_R (*((volatile unsigned long *)0x4005C514))
-#define GPIO_PORTE_AHB_SLR_R (*((volatile unsigned long *)0x4005C518))
-#define GPIO_PORTE_AHB_DEN_R (*((volatile unsigned long *)0x4005C51C))
-#define GPIO_PORTE_AHB_LOCK_R (*((volatile unsigned long *)0x4005C520))
-#define GPIO_PORTE_AHB_CR_R (*((volatile unsigned long *)0x4005C524))
-#define GPIO_PORTE_AHB_AMSEL_R (*((volatile unsigned long *)0x4005C528))
-#define GPIO_PORTE_AHB_PCTL_R (*((volatile unsigned long *)0x4005C52C))
-#define GPIO_PORTE_AHB_ADCCTL_R (*((volatile unsigned long *)0x4005C530))
-#define GPIO_PORTE_AHB_DMACTL_R (*((volatile unsigned long *)0x4005C534))
-#define GPIO_PORTE_AHB_SI_R (*((volatile unsigned long *)0x4005C538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTF AHB)
-//
-//*****************************************************************************
-#define GPIO_PORTF_AHB_DATA_BITS_R \
- ((volatile unsigned long *)0x4005D000)
-#define GPIO_PORTF_AHB_DATA_R (*((volatile unsigned long *)0x4005D3FC))
-#define GPIO_PORTF_AHB_DIR_R (*((volatile unsigned long *)0x4005D400))
-#define GPIO_PORTF_AHB_IS_R (*((volatile unsigned long *)0x4005D404))
-#define GPIO_PORTF_AHB_IBE_R (*((volatile unsigned long *)0x4005D408))
-#define GPIO_PORTF_AHB_IEV_R (*((volatile unsigned long *)0x4005D40C))
-#define GPIO_PORTF_AHB_IM_R (*((volatile unsigned long *)0x4005D410))
-#define GPIO_PORTF_AHB_RIS_R (*((volatile unsigned long *)0x4005D414))
-#define GPIO_PORTF_AHB_MIS_R (*((volatile unsigned long *)0x4005D418))
-#define GPIO_PORTF_AHB_ICR_R (*((volatile unsigned long *)0x4005D41C))
-#define GPIO_PORTF_AHB_AFSEL_R (*((volatile unsigned long *)0x4005D420))
-#define GPIO_PORTF_AHB_DR2R_R (*((volatile unsigned long *)0x4005D500))
-#define GPIO_PORTF_AHB_DR4R_R (*((volatile unsigned long *)0x4005D504))
-#define GPIO_PORTF_AHB_DR8R_R (*((volatile unsigned long *)0x4005D508))
-#define GPIO_PORTF_AHB_ODR_R (*((volatile unsigned long *)0x4005D50C))
-#define GPIO_PORTF_AHB_PUR_R (*((volatile unsigned long *)0x4005D510))
-#define GPIO_PORTF_AHB_PDR_R (*((volatile unsigned long *)0x4005D514))
-#define GPIO_PORTF_AHB_SLR_R (*((volatile unsigned long *)0x4005D518))
-#define GPIO_PORTF_AHB_DEN_R (*((volatile unsigned long *)0x4005D51C))
-#define GPIO_PORTF_AHB_LOCK_R (*((volatile unsigned long *)0x4005D520))
-#define GPIO_PORTF_AHB_CR_R (*((volatile unsigned long *)0x4005D524))
-#define GPIO_PORTF_AHB_AMSEL_R (*((volatile unsigned long *)0x4005D528))
-#define GPIO_PORTF_AHB_PCTL_R (*((volatile unsigned long *)0x4005D52C))
-#define GPIO_PORTF_AHB_ADCCTL_R (*((volatile unsigned long *)0x4005D530))
-#define GPIO_PORTF_AHB_DMACTL_R (*((volatile unsigned long *)0x4005D534))
-#define GPIO_PORTF_AHB_SI_R (*((volatile unsigned long *)0x4005D538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTG AHB)
-//
-//*****************************************************************************
-#define GPIO_PORTG_AHB_DATA_BITS_R \
- ((volatile unsigned long *)0x4005E000)
-#define GPIO_PORTG_AHB_DATA_R (*((volatile unsigned long *)0x4005E3FC))
-#define GPIO_PORTG_AHB_DIR_R (*((volatile unsigned long *)0x4005E400))
-#define GPIO_PORTG_AHB_IS_R (*((volatile unsigned long *)0x4005E404))
-#define GPIO_PORTG_AHB_IBE_R (*((volatile unsigned long *)0x4005E408))
-#define GPIO_PORTG_AHB_IEV_R (*((volatile unsigned long *)0x4005E40C))
-#define GPIO_PORTG_AHB_IM_R (*((volatile unsigned long *)0x4005E410))
-#define GPIO_PORTG_AHB_RIS_R (*((volatile unsigned long *)0x4005E414))
-#define GPIO_PORTG_AHB_MIS_R (*((volatile unsigned long *)0x4005E418))
-#define GPIO_PORTG_AHB_ICR_R (*((volatile unsigned long *)0x4005E41C))
-#define GPIO_PORTG_AHB_AFSEL_R (*((volatile unsigned long *)0x4005E420))
-#define GPIO_PORTG_AHB_DR2R_R (*((volatile unsigned long *)0x4005E500))
-#define GPIO_PORTG_AHB_DR4R_R (*((volatile unsigned long *)0x4005E504))
-#define GPIO_PORTG_AHB_DR8R_R (*((volatile unsigned long *)0x4005E508))
-#define GPIO_PORTG_AHB_ODR_R (*((volatile unsigned long *)0x4005E50C))
-#define GPIO_PORTG_AHB_PUR_R (*((volatile unsigned long *)0x4005E510))
-#define GPIO_PORTG_AHB_PDR_R (*((volatile unsigned long *)0x4005E514))
-#define GPIO_PORTG_AHB_SLR_R (*((volatile unsigned long *)0x4005E518))
-#define GPIO_PORTG_AHB_DEN_R (*((volatile unsigned long *)0x4005E51C))
-#define GPIO_PORTG_AHB_LOCK_R (*((volatile unsigned long *)0x4005E520))
-#define GPIO_PORTG_AHB_CR_R (*((volatile unsigned long *)0x4005E524))
-#define GPIO_PORTG_AHB_AMSEL_R (*((volatile unsigned long *)0x4005E528))
-#define GPIO_PORTG_AHB_PCTL_R (*((volatile unsigned long *)0x4005E52C))
-#define GPIO_PORTG_AHB_ADCCTL_R (*((volatile unsigned long *)0x4005E530))
-#define GPIO_PORTG_AHB_DMACTL_R (*((volatile unsigned long *)0x4005E534))
-#define GPIO_PORTG_AHB_SI_R (*((volatile unsigned long *)0x4005E538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTH AHB)
-//
-//*****************************************************************************
-#define GPIO_PORTH_AHB_DATA_BITS_R \
- ((volatile unsigned long *)0x4005F000)
-#define GPIO_PORTH_AHB_DATA_R (*((volatile unsigned long *)0x4005F3FC))
-#define GPIO_PORTH_AHB_DIR_R (*((volatile unsigned long *)0x4005F400))
-#define GPIO_PORTH_AHB_IS_R (*((volatile unsigned long *)0x4005F404))
-#define GPIO_PORTH_AHB_IBE_R (*((volatile unsigned long *)0x4005F408))
-#define GPIO_PORTH_AHB_IEV_R (*((volatile unsigned long *)0x4005F40C))
-#define GPIO_PORTH_AHB_IM_R (*((volatile unsigned long *)0x4005F410))
-#define GPIO_PORTH_AHB_RIS_R (*((volatile unsigned long *)0x4005F414))
-#define GPIO_PORTH_AHB_MIS_R (*((volatile unsigned long *)0x4005F418))
-#define GPIO_PORTH_AHB_ICR_R (*((volatile unsigned long *)0x4005F41C))
-#define GPIO_PORTH_AHB_AFSEL_R (*((volatile unsigned long *)0x4005F420))
-#define GPIO_PORTH_AHB_DR2R_R (*((volatile unsigned long *)0x4005F500))
-#define GPIO_PORTH_AHB_DR4R_R (*((volatile unsigned long *)0x4005F504))
-#define GPIO_PORTH_AHB_DR8R_R (*((volatile unsigned long *)0x4005F508))
-#define GPIO_PORTH_AHB_ODR_R (*((volatile unsigned long *)0x4005F50C))
-#define GPIO_PORTH_AHB_PUR_R (*((volatile unsigned long *)0x4005F510))
-#define GPIO_PORTH_AHB_PDR_R (*((volatile unsigned long *)0x4005F514))
-#define GPIO_PORTH_AHB_SLR_R (*((volatile unsigned long *)0x4005F518))
-#define GPIO_PORTH_AHB_DEN_R (*((volatile unsigned long *)0x4005F51C))
-#define GPIO_PORTH_AHB_LOCK_R (*((volatile unsigned long *)0x4005F520))
-#define GPIO_PORTH_AHB_CR_R (*((volatile unsigned long *)0x4005F524))
-#define GPIO_PORTH_AHB_AMSEL_R (*((volatile unsigned long *)0x4005F528))
-#define GPIO_PORTH_AHB_PCTL_R (*((volatile unsigned long *)0x4005F52C))
-#define GPIO_PORTH_AHB_ADCCTL_R (*((volatile unsigned long *)0x4005F530))
-#define GPIO_PORTH_AHB_DMACTL_R (*((volatile unsigned long *)0x4005F534))
-#define GPIO_PORTH_AHB_SI_R (*((volatile unsigned long *)0x4005F538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTJ AHB)
-//
-//*****************************************************************************
-#define GPIO_PORTJ_AHB_DATA_BITS_R \
- ((volatile unsigned long *)0x40060000)
-#define GPIO_PORTJ_AHB_DATA_R (*((volatile unsigned long *)0x400603FC))
-#define GPIO_PORTJ_AHB_DIR_R (*((volatile unsigned long *)0x40060400))
-#define GPIO_PORTJ_AHB_IS_R (*((volatile unsigned long *)0x40060404))
-#define GPIO_PORTJ_AHB_IBE_R (*((volatile unsigned long *)0x40060408))
-#define GPIO_PORTJ_AHB_IEV_R (*((volatile unsigned long *)0x4006040C))
-#define GPIO_PORTJ_AHB_IM_R (*((volatile unsigned long *)0x40060410))
-#define GPIO_PORTJ_AHB_RIS_R (*((volatile unsigned long *)0x40060414))
-#define GPIO_PORTJ_AHB_MIS_R (*((volatile unsigned long *)0x40060418))
-#define GPIO_PORTJ_AHB_ICR_R (*((volatile unsigned long *)0x4006041C))
-#define GPIO_PORTJ_AHB_AFSEL_R (*((volatile unsigned long *)0x40060420))
-#define GPIO_PORTJ_AHB_DR2R_R (*((volatile unsigned long *)0x40060500))
-#define GPIO_PORTJ_AHB_DR4R_R (*((volatile unsigned long *)0x40060504))
-#define GPIO_PORTJ_AHB_DR8R_R (*((volatile unsigned long *)0x40060508))
-#define GPIO_PORTJ_AHB_ODR_R (*((volatile unsigned long *)0x4006050C))
-#define GPIO_PORTJ_AHB_PUR_R (*((volatile unsigned long *)0x40060510))
-#define GPIO_PORTJ_AHB_PDR_R (*((volatile unsigned long *)0x40060514))
-#define GPIO_PORTJ_AHB_SLR_R (*((volatile unsigned long *)0x40060518))
-#define GPIO_PORTJ_AHB_DEN_R (*((volatile unsigned long *)0x4006051C))
-#define GPIO_PORTJ_AHB_LOCK_R (*((volatile unsigned long *)0x40060520))
-#define GPIO_PORTJ_AHB_CR_R (*((volatile unsigned long *)0x40060524))
-#define GPIO_PORTJ_AHB_AMSEL_R (*((volatile unsigned long *)0x40060528))
-#define GPIO_PORTJ_AHB_PCTL_R (*((volatile unsigned long *)0x4006052C))
-#define GPIO_PORTJ_AHB_ADCCTL_R (*((volatile unsigned long *)0x40060530))
-#define GPIO_PORTJ_AHB_DMACTL_R (*((volatile unsigned long *)0x40060534))
-#define GPIO_PORTJ_AHB_SI_R (*((volatile unsigned long *)0x40060538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTK)
-//
-//*****************************************************************************
-#define GPIO_PORTK_DATA_BITS_R ((volatile unsigned long *)0x40061000)
-#define GPIO_PORTK_DATA_R (*((volatile unsigned long *)0x400613FC))
-#define GPIO_PORTK_DIR_R (*((volatile unsigned long *)0x40061400))
-#define GPIO_PORTK_IS_R (*((volatile unsigned long *)0x40061404))
-#define GPIO_PORTK_IBE_R (*((volatile unsigned long *)0x40061408))
-#define GPIO_PORTK_IEV_R (*((volatile unsigned long *)0x4006140C))
-#define GPIO_PORTK_IM_R (*((volatile unsigned long *)0x40061410))
-#define GPIO_PORTK_RIS_R (*((volatile unsigned long *)0x40061414))
-#define GPIO_PORTK_MIS_R (*((volatile unsigned long *)0x40061418))
-#define GPIO_PORTK_ICR_R (*((volatile unsigned long *)0x4006141C))
-#define GPIO_PORTK_AFSEL_R (*((volatile unsigned long *)0x40061420))
-#define GPIO_PORTK_DR2R_R (*((volatile unsigned long *)0x40061500))
-#define GPIO_PORTK_DR4R_R (*((volatile unsigned long *)0x40061504))
-#define GPIO_PORTK_DR8R_R (*((volatile unsigned long *)0x40061508))
-#define GPIO_PORTK_ODR_R (*((volatile unsigned long *)0x4006150C))
-#define GPIO_PORTK_PUR_R (*((volatile unsigned long *)0x40061510))
-#define GPIO_PORTK_PDR_R (*((volatile unsigned long *)0x40061514))
-#define GPIO_PORTK_SLR_R (*((volatile unsigned long *)0x40061518))
-#define GPIO_PORTK_DEN_R (*((volatile unsigned long *)0x4006151C))
-#define GPIO_PORTK_LOCK_R (*((volatile unsigned long *)0x40061520))
-#define GPIO_PORTK_CR_R (*((volatile unsigned long *)0x40061524))
-#define GPIO_PORTK_AMSEL_R (*((volatile unsigned long *)0x40061528))
-#define GPIO_PORTK_PCTL_R (*((volatile unsigned long *)0x4006152C))
-#define GPIO_PORTK_ADCCTL_R (*((volatile unsigned long *)0x40061530))
-#define GPIO_PORTK_DMACTL_R (*((volatile unsigned long *)0x40061534))
-#define GPIO_PORTK_SI_R (*((volatile unsigned long *)0x40061538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTL)
-//
-//*****************************************************************************
-#define GPIO_PORTL_DATA_BITS_R ((volatile unsigned long *)0x40062000)
-#define GPIO_PORTL_DATA_R (*((volatile unsigned long *)0x400623FC))
-#define GPIO_PORTL_DIR_R (*((volatile unsigned long *)0x40062400))
-#define GPIO_PORTL_IS_R (*((volatile unsigned long *)0x40062404))
-#define GPIO_PORTL_IBE_R (*((volatile unsigned long *)0x40062408))
-#define GPIO_PORTL_IEV_R (*((volatile unsigned long *)0x4006240C))
-#define GPIO_PORTL_IM_R (*((volatile unsigned long *)0x40062410))
-#define GPIO_PORTL_RIS_R (*((volatile unsigned long *)0x40062414))
-#define GPIO_PORTL_MIS_R (*((volatile unsigned long *)0x40062418))
-#define GPIO_PORTL_ICR_R (*((volatile unsigned long *)0x4006241C))
-#define GPIO_PORTL_AFSEL_R (*((volatile unsigned long *)0x40062420))
-#define GPIO_PORTL_DR2R_R (*((volatile unsigned long *)0x40062500))
-#define GPIO_PORTL_DR4R_R (*((volatile unsigned long *)0x40062504))
-#define GPIO_PORTL_DR8R_R (*((volatile unsigned long *)0x40062508))
-#define GPIO_PORTL_ODR_R (*((volatile unsigned long *)0x4006250C))
-#define GPIO_PORTL_PUR_R (*((volatile unsigned long *)0x40062510))
-#define GPIO_PORTL_PDR_R (*((volatile unsigned long *)0x40062514))
-#define GPIO_PORTL_SLR_R (*((volatile unsigned long *)0x40062518))
-#define GPIO_PORTL_DEN_R (*((volatile unsigned long *)0x4006251C))
-#define GPIO_PORTL_LOCK_R (*((volatile unsigned long *)0x40062520))
-#define GPIO_PORTL_CR_R (*((volatile unsigned long *)0x40062524))
-#define GPIO_PORTL_AMSEL_R (*((volatile unsigned long *)0x40062528))
-#define GPIO_PORTL_PCTL_R (*((volatile unsigned long *)0x4006252C))
-#define GPIO_PORTL_ADCCTL_R (*((volatile unsigned long *)0x40062530))
-#define GPIO_PORTL_DMACTL_R (*((volatile unsigned long *)0x40062534))
-#define GPIO_PORTL_SI_R (*((volatile unsigned long *)0x40062538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTM)
-//
-//*****************************************************************************
-#define GPIO_PORTM_DATA_BITS_R ((volatile unsigned long *)0x40063000)
-#define GPIO_PORTM_DATA_R (*((volatile unsigned long *)0x400633FC))
-#define GPIO_PORTM_DIR_R (*((volatile unsigned long *)0x40063400))
-#define GPIO_PORTM_IS_R (*((volatile unsigned long *)0x40063404))
-#define GPIO_PORTM_IBE_R (*((volatile unsigned long *)0x40063408))
-#define GPIO_PORTM_IEV_R (*((volatile unsigned long *)0x4006340C))
-#define GPIO_PORTM_IM_R (*((volatile unsigned long *)0x40063410))
-#define GPIO_PORTM_RIS_R (*((volatile unsigned long *)0x40063414))
-#define GPIO_PORTM_MIS_R (*((volatile unsigned long *)0x40063418))
-#define GPIO_PORTM_ICR_R (*((volatile unsigned long *)0x4006341C))
-#define GPIO_PORTM_AFSEL_R (*((volatile unsigned long *)0x40063420))
-#define GPIO_PORTM_DR2R_R (*((volatile unsigned long *)0x40063500))
-#define GPIO_PORTM_DR4R_R (*((volatile unsigned long *)0x40063504))
-#define GPIO_PORTM_DR8R_R (*((volatile unsigned long *)0x40063508))
-#define GPIO_PORTM_ODR_R (*((volatile unsigned long *)0x4006350C))
-#define GPIO_PORTM_PUR_R (*((volatile unsigned long *)0x40063510))
-#define GPIO_PORTM_PDR_R (*((volatile unsigned long *)0x40063514))
-#define GPIO_PORTM_SLR_R (*((volatile unsigned long *)0x40063518))
-#define GPIO_PORTM_DEN_R (*((volatile unsigned long *)0x4006351C))
-#define GPIO_PORTM_LOCK_R (*((volatile unsigned long *)0x40063520))
-#define GPIO_PORTM_CR_R (*((volatile unsigned long *)0x40063524))
-#define GPIO_PORTM_AMSEL_R (*((volatile unsigned long *)0x40063528))
-#define GPIO_PORTM_PCTL_R (*((volatile unsigned long *)0x4006352C))
-#define GPIO_PORTM_ADCCTL_R (*((volatile unsigned long *)0x40063530))
-#define GPIO_PORTM_DMACTL_R (*((volatile unsigned long *)0x40063534))
-#define GPIO_PORTM_SI_R (*((volatile unsigned long *)0x40063538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTN)
-//
-//*****************************************************************************
-#define GPIO_PORTN_DATA_BITS_R ((volatile unsigned long *)0x40064000)
-#define GPIO_PORTN_DATA_R (*((volatile unsigned long *)0x400643FC))
-#define GPIO_PORTN_DIR_R (*((volatile unsigned long *)0x40064400))
-#define GPIO_PORTN_IS_R (*((volatile unsigned long *)0x40064404))
-#define GPIO_PORTN_IBE_R (*((volatile unsigned long *)0x40064408))
-#define GPIO_PORTN_IEV_R (*((volatile unsigned long *)0x4006440C))
-#define GPIO_PORTN_IM_R (*((volatile unsigned long *)0x40064410))
-#define GPIO_PORTN_RIS_R (*((volatile unsigned long *)0x40064414))
-#define GPIO_PORTN_MIS_R (*((volatile unsigned long *)0x40064418))
-#define GPIO_PORTN_ICR_R (*((volatile unsigned long *)0x4006441C))
-#define GPIO_PORTN_AFSEL_R (*((volatile unsigned long *)0x40064420))
-#define GPIO_PORTN_DR2R_R (*((volatile unsigned long *)0x40064500))
-#define GPIO_PORTN_DR4R_R (*((volatile unsigned long *)0x40064504))
-#define GPIO_PORTN_DR8R_R (*((volatile unsigned long *)0x40064508))
-#define GPIO_PORTN_ODR_R (*((volatile unsigned long *)0x4006450C))
-#define GPIO_PORTN_PUR_R (*((volatile unsigned long *)0x40064510))
-#define GPIO_PORTN_PDR_R (*((volatile unsigned long *)0x40064514))
-#define GPIO_PORTN_SLR_R (*((volatile unsigned long *)0x40064518))
-#define GPIO_PORTN_DEN_R (*((volatile unsigned long *)0x4006451C))
-#define GPIO_PORTN_LOCK_R (*((volatile unsigned long *)0x40064520))
-#define GPIO_PORTN_CR_R (*((volatile unsigned long *)0x40064524))
-#define GPIO_PORTN_AMSEL_R (*((volatile unsigned long *)0x40064528))
-#define GPIO_PORTN_PCTL_R (*((volatile unsigned long *)0x4006452C))
-#define GPIO_PORTN_ADCCTL_R (*((volatile unsigned long *)0x40064530))
-#define GPIO_PORTN_DMACTL_R (*((volatile unsigned long *)0x40064534))
-#define GPIO_PORTN_SI_R (*((volatile unsigned long *)0x40064538))
-
-//*****************************************************************************
-//
-// GPIO registers (PORTP)
-//
-//*****************************************************************************
-#define GPIO_PORTP_DATA_BITS_R ((volatile unsigned long *)0x40065000)
-#define GPIO_PORTP_DATA_R (*((volatile unsigned long *)0x400653FC))
-#define GPIO_PORTP_DIR_R (*((volatile unsigned long *)0x40065400))
-#define GPIO_PORTP_IS_R (*((volatile unsigned long *)0x40065404))
-#define GPIO_PORTP_IBE_R (*((volatile unsigned long *)0x40065408))
-#define GPIO_PORTP_IEV_R (*((volatile unsigned long *)0x4006540C))
-#define GPIO_PORTP_IM_R (*((volatile unsigned long *)0x40065410))
-#define GPIO_PORTP_RIS_R (*((volatile unsigned long *)0x40065414))
-#define GPIO_PORTP_MIS_R (*((volatile unsigned long *)0x40065418))
-#define GPIO_PORTP_ICR_R (*((volatile unsigned long *)0x4006541C))
-#define GPIO_PORTP_AFSEL_R (*((volatile unsigned long *)0x40065420))
-#define GPIO_PORTP_DR2R_R (*((volatile unsigned long *)0x40065500))
-#define GPIO_PORTP_DR4R_R (*((volatile unsigned long *)0x40065504))
-#define GPIO_PORTP_DR8R_R (*((volatile unsigned long *)0x40065508))
-#define GPIO_PORTP_ODR_R (*((volatile unsigned long *)0x4006550C))
-#define GPIO_PORTP_PUR_R (*((volatile unsigned long *)0x40065510))
-#define GPIO_PORTP_PDR_R (*((volatile unsigned long *)0x40065514))
-#define GPIO_PORTP_SLR_R (*((volatile unsigned long *)0x40065518))
-#define GPIO_PORTP_DEN_R (*((volatile unsigned long *)0x4006551C))
-#define GPIO_PORTP_LOCK_R (*((volatile unsigned long *)0x40065520))
-#define GPIO_PORTP_CR_R (*((volatile unsigned long *)0x40065524))
-#define GPIO_PORTP_AMSEL_R (*((volatile unsigned long *)0x40065528))
-#define GPIO_PORTP_PCTL_R (*((volatile unsigned long *)0x4006552C))
-#define GPIO_PORTP_ADCCTL_R (*((volatile unsigned long *)0x40065530))
-#define GPIO_PORTP_DMACTL_R (*((volatile unsigned long *)0x40065534))
-#define GPIO_PORTP_SI_R (*((volatile unsigned long *)0x40065538))
-
-//*****************************************************************************
-//
-// I2C registers (I2C4 MASTER)
-//
-//*****************************************************************************
-#define I2C4_MASTER_MSA_R (*((volatile unsigned long *)0x400C0000))
-#define I2C4_MASTER_MCS_R (*((volatile unsigned long *)0x400C0004))
-#define I2C4_MASTER_MDR_R (*((volatile unsigned long *)0x400C0008))
-#define I2C4_MASTER_MTPR_R (*((volatile unsigned long *)0x400C000C))
-#define I2C4_MASTER_MIMR_R (*((volatile unsigned long *)0x400C0010))
-#define I2C4_MASTER_MRIS_R (*((volatile unsigned long *)0x400C0014))
-#define I2C4_MASTER_MMIS_R (*((volatile unsigned long *)0x400C0018))
-#define I2C4_MASTER_MICR_R (*((volatile unsigned long *)0x400C001C))
-#define I2C4_MASTER_MCR_R (*((volatile unsigned long *)0x400C0020))
-#define I2C4_MASTER_MCLKOCNT_R (*((volatile unsigned long *)0x400C0024))
-#define I2C4_MASTER_MBMON_R (*((volatile unsigned long *)0x400C002C))
-
-//*****************************************************************************
-//
-// I2C registers (I2C4 SLAVE)
-//
-//*****************************************************************************
-#define I2C4_SLAVE_SOAR_R (*((volatile unsigned long *)0x400C0800))
-#define I2C4_SLAVE_SCSR_R (*((volatile unsigned long *)0x400C0804))
-#define I2C4_SLAVE_SDR_R (*((volatile unsigned long *)0x400C0808))
-#define I2C4_SLAVE_SIMR_R (*((volatile unsigned long *)0x400C080C))
-#define I2C4_SLAVE_SRIS_R (*((volatile unsigned long *)0x400C0810))
-#define I2C4_SLAVE_SMIS_R (*((volatile unsigned long *)0x400C0814))
-#define I2C4_SLAVE_SICR_R (*((volatile unsigned long *)0x400C0818))
-#define I2C4_SLAVE_SOAR2_R (*((volatile unsigned long *)0x400C081C))
-#define I2C4_SLAVE_SACKCTL_R (*((volatile unsigned long *)0x400C0820))
-
-//*****************************************************************************
-//
-// I2C registers (I2C5 MASTER)
-//
-//*****************************************************************************
-#define I2C5_MASTER_MSA_R (*((volatile unsigned long *)0x400C1000))
-#define I2C5_MASTER_MCS_R (*((volatile unsigned long *)0x400C1004))
-#define I2C5_MASTER_MDR_R (*((volatile unsigned long *)0x400C1008))
-#define I2C5_MASTER_MTPR_R (*((volatile unsigned long *)0x400C100C))
-#define I2C5_MASTER_MIMR_R (*((volatile unsigned long *)0x400C1010))
-#define I2C5_MASTER_MRIS_R (*((volatile unsigned long *)0x400C1014))
-#define I2C5_MASTER_MMIS_R (*((volatile unsigned long *)0x400C1018))
-#define I2C5_MASTER_MICR_R (*((volatile unsigned long *)0x400C101C))
-#define I2C5_MASTER_MCR_R (*((volatile unsigned long *)0x400C1020))
-#define I2C5_MASTER_MCLKOCNT_R (*((volatile unsigned long *)0x400C1024))
-#define I2C5_MASTER_MBMON_R (*((volatile unsigned long *)0x400C102C))
-
-//*****************************************************************************
-//
-// I2C registers (I2C5 SLAVE)
-//
-//*****************************************************************************
-#define I2C5_SLAVE_SOAR_R (*((volatile unsigned long *)0x400C1800))
-#define I2C5_SLAVE_SCSR_R (*((volatile unsigned long *)0x400C1804))
-#define I2C5_SLAVE_SDR_R (*((volatile unsigned long *)0x400C1808))
-#define I2C5_SLAVE_SIMR_R (*((volatile unsigned long *)0x400C180C))
-#define I2C5_SLAVE_SRIS_R (*((volatile unsigned long *)0x400C1810))
-#define I2C5_SLAVE_SMIS_R (*((volatile unsigned long *)0x400C1814))
-#define I2C5_SLAVE_SICR_R (*((volatile unsigned long *)0x400C1818))
-#define I2C5_SLAVE_SOAR2_R (*((volatile unsigned long *)0x400C181C))
-#define I2C5_SLAVE_SACKCTL_R (*((volatile unsigned long *)0x400C1820))
-
-//*****************************************************************************
-//
-// System Exception Module registers (SYSEXC)
-//
-//*****************************************************************************
-#define SYSEXC_RIS_R (*((volatile unsigned long *)0x400F9000))
-#define SYSEXC_IM_R (*((volatile unsigned long *)0x400F9004))
-#define SYSEXC_MIS_R (*((volatile unsigned long *)0x400F9008))
-#define SYSEXC_IC_R (*((volatile unsigned long *)0x400F900C))
-
-//*****************************************************************************
-//
-// Hibernation module registers (HIB)
-//
-//*****************************************************************************
-#define HIB_RTCC_R (*((volatile unsigned long *)0x400FC000))
-#define HIB_RTCM0_R (*((volatile unsigned long *)0x400FC004))
-#define HIB_RTCLD_R (*((volatile unsigned long *)0x400FC00C))
-#define HIB_CTL_R (*((volatile unsigned long *)0x400FC010))
-#define HIB_IM_R (*((volatile unsigned long *)0x400FC014))
-#define HIB_RIS_R (*((volatile unsigned long *)0x400FC018))
-#define HIB_MIS_R (*((volatile unsigned long *)0x400FC01C))
-#define HIB_IC_R (*((volatile unsigned long *)0x400FC020))
-#define HIB_RTCT_R (*((volatile unsigned long *)0x400FC024))
-#define HIB_RTCSS_R (*((volatile unsigned long *)0x400FC028))
-#define HIB_DATA_R (*((volatile unsigned long *)0x400FC030))
-
-//*****************************************************************************
-//
-// FLASH registers (FLASH CTRL)
-//
-//*****************************************************************************
-#define FLASH_FMA_R (*((volatile unsigned long *)0x400FD000))
-#define FLASH_FMD_R (*((volatile unsigned long *)0x400FD004))
-#define FLASH_FMC_R (*((volatile unsigned long *)0x400FD008))
-#define FLASH_FCRIS_R (*((volatile unsigned long *)0x400FD00C))
-#define FLASH_FCIM_R (*((volatile unsigned long *)0x400FD010))
-#define FLASH_FCMISC_R (*((volatile unsigned long *)0x400FD014))
-#define FLASH_FMC2_R (*((volatile unsigned long *)0x400FD020))
-#define FLASH_FWBVAL_R (*((volatile unsigned long *)0x400FD030))
-#define FLASH_FWBN_R (*((volatile unsigned long *)0x400FD100))
-#define FLASH_FSIZE_R (*((volatile unsigned long *)0x400FDFC0))
-#define FLASH_SSIZE_R (*((volatile unsigned long *)0x400FDFC4))
-#define FLASH_ROMSWMAP_R (*((volatile unsigned long *)0x400FDFCC))
-#define FLASH_RMCTL_R (*((volatile unsigned long *)0x400FE0F0))
-#define FLASH_BOOTCFG_R (*((volatile unsigned long *)0x400FE1D0))
-#define FLASH_USERREG0_R (*((volatile unsigned long *)0x400FE1E0))
-#define FLASH_USERREG1_R (*((volatile unsigned long *)0x400FE1E4))
-#define FLASH_USERREG2_R (*((volatile unsigned long *)0x400FE1E8))
-#define FLASH_USERREG3_R (*((volatile unsigned long *)0x400FE1EC))
-#define FLASH_FMPRE0_R (*((volatile unsigned long *)0x400FE200))
-#define FLASH_FMPRE1_R (*((volatile unsigned long *)0x400FE204))
-#define FLASH_FMPRE2_R (*((volatile unsigned long *)0x400FE208))
-#define FLASH_FMPRE3_R (*((volatile unsigned long *)0x400FE20C))
-#define FLASH_FMPPE0_R (*((volatile unsigned long *)0x400FE400))
-#define FLASH_FMPPE1_R (*((volatile unsigned long *)0x400FE404))
-#define FLASH_FMPPE2_R (*((volatile unsigned long *)0x400FE408))
-#define FLASH_FMPPE3_R (*((volatile unsigned long *)0x400FE40C))
-
-//*****************************************************************************
-//
-// System Control registers (SYSCTL)
-//
-//*****************************************************************************
-#define SYSCTL_DID0_R (*((volatile unsigned long *)0x400FE000))
-#define SYSCTL_DID1_R (*((volatile unsigned long *)0x400FE004))
-#define SYSCTL_DC0_R (*((volatile unsigned long *)0x400FE008))
-#define SYSCTL_DC1_R (*((volatile unsigned long *)0x400FE010))
-#define SYSCTL_DC2_R (*((volatile unsigned long *)0x400FE014))
-#define SYSCTL_DC3_R (*((volatile unsigned long *)0x400FE018))
-#define SYSCTL_DC4_R (*((volatile unsigned long *)0x400FE01C))
-#define SYSCTL_DC5_R (*((volatile unsigned long *)0x400FE020))
-#define SYSCTL_DC6_R (*((volatile unsigned long *)0x400FE024))
-#define SYSCTL_DC7_R (*((volatile unsigned long *)0x400FE028))
-#define SYSCTL_DC8_R (*((volatile unsigned long *)0x400FE02C))
-#define SYSCTL_PBORCTL_R (*((volatile unsigned long *)0x400FE030))
-#define SYSCTL_SRCR0_R (*((volatile unsigned long *)0x400FE040))
-#define SYSCTL_SRCR1_R (*((volatile unsigned long *)0x400FE044))
-#define SYSCTL_SRCR2_R (*((volatile unsigned long *)0x400FE048))
-#define SYSCTL_RIS_R (*((volatile unsigned long *)0x400FE050))
-#define SYSCTL_IMC_R (*((volatile unsigned long *)0x400FE054))
-#define SYSCTL_MISC_R (*((volatile unsigned long *)0x400FE058))
-#define SYSCTL_RESC_R (*((volatile unsigned long *)0x400FE05C))
-#define SYSCTL_RCC_R (*((volatile unsigned long *)0x400FE060))
-#define SYSCTL_GPIOHBCTL_R (*((volatile unsigned long *)0x400FE06C))
-#define SYSCTL_RCC2_R (*((volatile unsigned long *)0x400FE070))
-#define SYSCTL_MOSCCTL_R (*((volatile unsigned long *)0x400FE07C))
-#define SYSCTL_RCGC0_R (*((volatile unsigned long *)0x400FE100))
-#define SYSCTL_RCGC1_R (*((volatile unsigned long *)0x400FE104))
-#define SYSCTL_RCGC2_R (*((volatile unsigned long *)0x400FE108))
-#define SYSCTL_SCGC0_R (*((volatile unsigned long *)0x400FE110))
-#define SYSCTL_SCGC1_R (*((volatile unsigned long *)0x400FE114))
-#define SYSCTL_SCGC2_R (*((volatile unsigned long *)0x400FE118))
-#define SYSCTL_DCGC0_R (*((volatile unsigned long *)0x400FE120))
-#define SYSCTL_DCGC1_R (*((volatile unsigned long *)0x400FE124))
-#define SYSCTL_DCGC2_R (*((volatile unsigned long *)0x400FE128))
-#define SYSCTL_DSLPCLKCFG_R (*((volatile unsigned long *)0x400FE144))
-#define SYSCTL_SYSPROP_R (*((volatile unsigned long *)0x400FE14C))
-#define SYSCTL_PIOSCCAL_R (*((volatile unsigned long *)0x400FE150))
-#define SYSCTL_PIOSCSTAT_R (*((volatile unsigned long *)0x400FE154))
-#define SYSCTL_PLLFREQ0_R (*((volatile unsigned long *)0x400FE160))
-#define SYSCTL_PLLFREQ1_R (*((volatile unsigned long *)0x400FE164))
-#define SYSCTL_PLLSTAT_R (*((volatile unsigned long *)0x400FE168))
-#define SYSCTL_DC9_R (*((volatile unsigned long *)0x400FE190))
-#define SYSCTL_NVMSTAT_R (*((volatile unsigned long *)0x400FE1A0))
-#define SYSCTL_PPWD_R (*((volatile unsigned long *)0x400FE300))
-#define SYSCTL_PPTIMER_R (*((volatile unsigned long *)0x400FE304))
-#define SYSCTL_PPGPIO_R (*((volatile unsigned long *)0x400FE308))
-#define SYSCTL_PPDMA_R (*((volatile unsigned long *)0x400FE30C))
-#define SYSCTL_PPHIB_R (*((volatile unsigned long *)0x400FE314))
-#define SYSCTL_PPUART_R (*((volatile unsigned long *)0x400FE318))
-#define SYSCTL_PPSSI_R (*((volatile unsigned long *)0x400FE31C))
-#define SYSCTL_PPI2C_R (*((volatile unsigned long *)0x400FE320))
-#define SYSCTL_PPUSB_R (*((volatile unsigned long *)0x400FE328))
-#define SYSCTL_PPCAN_R (*((volatile unsigned long *)0x400FE334))
-#define SYSCTL_PPADC_R (*((volatile unsigned long *)0x400FE338))
-#define SYSCTL_PPACMP_R (*((volatile unsigned long *)0x400FE33C))
-#define SYSCTL_PPPWM_R (*((volatile unsigned long *)0x400FE340))
-#define SYSCTL_PPQEI_R (*((volatile unsigned long *)0x400FE344))
-#define SYSCTL_PPEEPROM_R (*((volatile unsigned long *)0x400FE358))
-#define SYSCTL_PPWTIMER_R (*((volatile unsigned long *)0x400FE35C))
-#define SYSCTL_SRWD_R (*((volatile unsigned long *)0x400FE500))
-#define SYSCTL_SRTIMER_R (*((volatile unsigned long *)0x400FE504))
-#define SYSCTL_SRGPIO_R (*((volatile unsigned long *)0x400FE508))
-#define SYSCTL_SRDMA_R (*((volatile unsigned long *)0x400FE50C))
-#define SYSCTL_SRHIB_R (*((volatile unsigned long *)0x400FE514))
-#define SYSCTL_SRUART_R (*((volatile unsigned long *)0x400FE518))
-#define SYSCTL_SRSSI_R (*((volatile unsigned long *)0x400FE51C))
-#define SYSCTL_SRI2C_R (*((volatile unsigned long *)0x400FE520))
-#define SYSCTL_SRUSB_R (*((volatile unsigned long *)0x400FE528))
-#define SYSCTL_SRCAN_R (*((volatile unsigned long *)0x400FE534))
-#define SYSCTL_SRADC_R (*((volatile unsigned long *)0x400FE538))
-#define SYSCTL_SRACMP_R (*((volatile unsigned long *)0x400FE53C))
-#define SYSCTL_SRPWM_R (*((volatile unsigned long *)0x400FE540))
-#define SYSCTL_SRQEI_R (*((volatile unsigned long *)0x400FE544))
-#define SYSCTL_SREEPROM_R (*((volatile unsigned long *)0x400FE558))
-#define SYSCTL_SRWTIMER_R (*((volatile unsigned long *)0x400FE55C))
-#define SYSCTL_RCGCWD_R (*((volatile unsigned long *)0x400FE600))
-#define SYSCTL_RCGCTIMER_R (*((volatile unsigned long *)0x400FE604))
-#define SYSCTL_RCGCGPIO_R (*((volatile unsigned long *)0x400FE608))
-#define SYSCTL_RCGCDMA_R (*((volatile unsigned long *)0x400FE60C))
-#define SYSCTL_RCGCHIB_R (*((volatile unsigned long *)0x400FE614))
-#define SYSCTL_RCGCUART_R (*((volatile unsigned long *)0x400FE618))
-#define SYSCTL_RCGCSSI_R (*((volatile unsigned long *)0x400FE61C))
-#define SYSCTL_RCGCI2C_R (*((volatile unsigned long *)0x400FE620))
-#define SYSCTL_RCGCUSB_R (*((volatile unsigned long *)0x400FE628))
-#define SYSCTL_RCGCCAN_R (*((volatile unsigned long *)0x400FE634))
-#define SYSCTL_RCGCADC_R (*((volatile unsigned long *)0x400FE638))
-#define SYSCTL_RCGCACMP_R (*((volatile unsigned long *)0x400FE63C))
-#define SYSCTL_RCGCPWM_R (*((volatile unsigned long *)0x400FE640))
-#define SYSCTL_RCGCQEI_R (*((volatile unsigned long *)0x400FE644))
-#define SYSCTL_RCGCEEPROM_R (*((volatile unsigned long *)0x400FE658))
-#define SYSCTL_RCGCWTIMER_R (*((volatile unsigned long *)0x400FE65C))
-#define SYSCTL_SCGCWD_R (*((volatile unsigned long *)0x400FE700))
-#define SYSCTL_SCGCTIMER_R (*((volatile unsigned long *)0x400FE704))
-#define SYSCTL_SCGCGPIO_R (*((volatile unsigned long *)0x400FE708))
-#define SYSCTL_SCGCDMA_R (*((volatile unsigned long *)0x400FE70C))
-#define SYSCTL_SCGCHIB_R (*((volatile unsigned long *)0x400FE714))
-#define SYSCTL_SCGCUART_R (*((volatile unsigned long *)0x400FE718))
-#define SYSCTL_SCGCSSI_R (*((volatile unsigned long *)0x400FE71C))
-#define SYSCTL_SCGCI2C_R (*((volatile unsigned long *)0x400FE720))
-#define SYSCTL_SCGCUSB_R (*((volatile unsigned long *)0x400FE728))
-#define SYSCTL_SCGCCAN_R (*((volatile unsigned long *)0x400FE734))
-#define SYSCTL_SCGCADC_R (*((volatile unsigned long *)0x400FE738))
-#define SYSCTL_SCGCACMP_R (*((volatile unsigned long *)0x400FE73C))
-#define SYSCTL_SCGCPWM_R (*((volatile unsigned long *)0x400FE740))
-#define SYSCTL_SCGCQEI_R (*((volatile unsigned long *)0x400FE744))
-#define SYSCTL_SCGCEEPROM_R (*((volatile unsigned long *)0x400FE758))
-#define SYSCTL_SCGCWTIMER_R (*((volatile unsigned long *)0x400FE75C))
-#define SYSCTL_DCGCWD_R (*((volatile unsigned long *)0x400FE800))
-#define SYSCTL_DCGCTIMER_R (*((volatile unsigned long *)0x400FE804))
-#define SYSCTL_DCGCGPIO_R (*((volatile unsigned long *)0x400FE808))
-#define SYSCTL_DCGCDMA_R (*((volatile unsigned long *)0x400FE80C))
-#define SYSCTL_DCGCHIB_R (*((volatile unsigned long *)0x400FE814))
-#define SYSCTL_DCGCUART_R (*((volatile unsigned long *)0x400FE818))
-#define SYSCTL_DCGCSSI_R (*((volatile unsigned long *)0x400FE81C))
-#define SYSCTL_DCGCI2C_R (*((volatile unsigned long *)0x400FE820))
-#define SYSCTL_DCGCUSB_R (*((volatile unsigned long *)0x400FE828))
-#define SYSCTL_DCGCCAN_R (*((volatile unsigned long *)0x400FE834))
-#define SYSCTL_DCGCADC_R (*((volatile unsigned long *)0x400FE838))
-#define SYSCTL_DCGCACMP_R (*((volatile unsigned long *)0x400FE83C))
-#define SYSCTL_DCGCPWM_R (*((volatile unsigned long *)0x400FE840))
-#define SYSCTL_DCGCQEI_R (*((volatile unsigned long *)0x400FE844))
-#define SYSCTL_DCGCEEPROM_R (*((volatile unsigned long *)0x400FE858))
-#define SYSCTL_DCGCWTIMER_R (*((volatile unsigned long *)0x400FE85C))
-#define SYSCTL_PCWD_R (*((volatile unsigned long *)0x400FE900))
-#define SYSCTL_PCTIMER_R (*((volatile unsigned long *)0x400FE904))
-#define SYSCTL_PCGPIO_R (*((volatile unsigned long *)0x400FE908))
-#define SYSCTL_PCDMA_R (*((volatile unsigned long *)0x400FE90C))
-#define SYSCTL_PCHIB_R (*((volatile unsigned long *)0x400FE914))
-#define SYSCTL_PCUART_R (*((volatile unsigned long *)0x400FE918))
-#define SYSCTL_PCSSI_R (*((volatile unsigned long *)0x400FE91C))
-#define SYSCTL_PCI2C_R (*((volatile unsigned long *)0x400FE920))
-#define SYSCTL_PCUSB_R (*((volatile unsigned long *)0x400FE928))
-#define SYSCTL_PCCAN_R (*((volatile unsigned long *)0x400FE934))
-#define SYSCTL_PCADC_R (*((volatile unsigned long *)0x400FE938))
-#define SYSCTL_PCACMP_R (*((volatile unsigned long *)0x400FE93C))
-#define SYSCTL_PCPWM_R (*((volatile unsigned long *)0x400FE940))
-#define SYSCTL_PCQEI_R (*((volatile unsigned long *)0x400FE944))
-#define SYSCTL_PCEEPROM_R (*((volatile unsigned long *)0x400FE958))
-#define SYSCTL_PCWTIMER_R (*((volatile unsigned long *)0x400FE95C))
-#define SYSCTL_PRWD_R (*((volatile unsigned long *)0x400FEA00))
-#define SYSCTL_PRTIMER_R (*((volatile unsigned long *)0x400FEA04))
-#define SYSCTL_PRGPIO_R (*((volatile unsigned long *)0x400FEA08))
-#define SYSCTL_PRDMA_R (*((volatile unsigned long *)0x400FEA0C))
-#define SYSCTL_PRHIB_R (*((volatile unsigned long *)0x400FEA14))
-#define SYSCTL_PRUART_R (*((volatile unsigned long *)0x400FEA18))
-#define SYSCTL_PRSSI_R (*((volatile unsigned long *)0x400FEA1C))
-#define SYSCTL_PRI2C_R (*((volatile unsigned long *)0x400FEA20))
-#define SYSCTL_PRUSB_R (*((volatile unsigned long *)0x400FEA28))
-#define SYSCTL_PRCAN_R (*((volatile unsigned long *)0x400FEA34))
-#define SYSCTL_PRADC_R (*((volatile unsigned long *)0x400FEA38))
-#define SYSCTL_PRACMP_R (*((volatile unsigned long *)0x400FEA3C))
-#define SYSCTL_PRPWM_R (*((volatile unsigned long *)0x400FEA40))
-#define SYSCTL_PRQEI_R (*((volatile unsigned long *)0x400FEA44))
-#define SYSCTL_PREEPROM_R (*((volatile unsigned long *)0x400FEA58))
-#define SYSCTL_PRWTIMER_R (*((volatile unsigned long *)0x400FEA5C))
-
-//*****************************************************************************
-//
-// Micro Direct Memory Access registers (UDMA)
-//
-//*****************************************************************************
-#define UDMA_STAT_R (*((volatile unsigned long *)0x400FF000))
-#define UDMA_CFG_R (*((volatile unsigned long *)0x400FF004))
-#define UDMA_CTLBASE_R (*((volatile unsigned long *)0x400FF008))
-#define UDMA_ALTBASE_R (*((volatile unsigned long *)0x400FF00C))
-#define UDMA_WAITSTAT_R (*((volatile unsigned long *)0x400FF010))
-#define UDMA_SWREQ_R (*((volatile unsigned long *)0x400FF014))
-#define UDMA_USEBURSTSET_R (*((volatile unsigned long *)0x400FF018))
-#define UDMA_USEBURSTCLR_R (*((volatile unsigned long *)0x400FF01C))
-#define UDMA_REQMASKSET_R (*((volatile unsigned long *)0x400FF020))
-#define UDMA_REQMASKCLR_R (*((volatile unsigned long *)0x400FF024))
-#define UDMA_ENASET_R (*((volatile unsigned long *)0x400FF028))
-#define UDMA_ENACLR_R (*((volatile unsigned long *)0x400FF02C))
-#define UDMA_ALTSET_R (*((volatile unsigned long *)0x400FF030))
-#define UDMA_ALTCLR_R (*((volatile unsigned long *)0x400FF034))
-#define UDMA_PRIOSET_R (*((volatile unsigned long *)0x400FF038))
-#define UDMA_PRIOCLR_R (*((volatile unsigned long *)0x400FF03C))
-#define UDMA_ERRCLR_R (*((volatile unsigned long *)0x400FF04C))
-#define UDMA_CHASGN_R (*((volatile unsigned long *)0x400FF500))
-#define UDMA_CHIS_R (*((volatile unsigned long *)0x400FF504))
-#define UDMA_CHMAP0_R (*((volatile unsigned long *)0x400FF510))
-#define UDMA_CHMAP1_R (*((volatile unsigned long *)0x400FF514))
-#define UDMA_CHMAP2_R (*((volatile unsigned long *)0x400FF518))
-#define UDMA_CHMAP3_R (*((volatile unsigned long *)0x400FF51C))
-
-//*****************************************************************************
-//
-// Micro Direct Memory Access (uDMA) offsets (UDMA)
-//
-//*****************************************************************************
-#define UDMA_SRCENDP 0x00000000 // DMA Channel Source Address End
- // Pointer
-#define UDMA_DSTENDP 0x00000004 // DMA Channel Destination Address
- // End Pointer
-#define UDMA_CHCTL 0x00000008 // DMA Channel Control Word
-
-//*****************************************************************************
-//
-// NVIC registers (NVIC)
-//
-//*****************************************************************************
-#define NVIC_INT_TYPE_R (*((volatile unsigned long *)0xE000E004))
-#define NVIC_ACTLR_R (*((volatile unsigned long *)0xE000E008))
-#define NVIC_ST_CTRL_R (*((volatile unsigned long *)0xE000E010))
-#define NVIC_ST_RELOAD_R (*((volatile unsigned long *)0xE000E014))
-#define NVIC_ST_CURRENT_R (*((volatile unsigned long *)0xE000E018))
-#define NVIC_ST_CAL_R (*((volatile unsigned long *)0xE000E01C))
-#define NVIC_EN0_R (*((volatile unsigned long *)0xE000E100))
-#define NVIC_EN1_R (*((volatile unsigned long *)0xE000E104))
-#define NVIC_EN2_R (*((volatile unsigned long *)0xE000E108))
-#define NVIC_EN3_R (*((volatile unsigned long *)0xE000E10C))
-#define NVIC_EN4_R (*((volatile unsigned long *)0xE000E110))
-#define NVIC_DIS0_R (*((volatile unsigned long *)0xE000E180))
-#define NVIC_DIS1_R (*((volatile unsigned long *)0xE000E184))
-#define NVIC_DIS2_R (*((volatile unsigned long *)0xE000E188))
-#define NVIC_DIS3_R (*((volatile unsigned long *)0xE000E18C))
-#define NVIC_DIS4_R (*((volatile unsigned long *)0xE000E190))
-#define NVIC_PEND0_R (*((volatile unsigned long *)0xE000E200))
-#define NVIC_PEND1_R (*((volatile unsigned long *)0xE000E204))
-#define NVIC_PEND2_R (*((volatile unsigned long *)0xE000E208))
-#define NVIC_PEND3_R (*((volatile unsigned long *)0xE000E20C))
-#define NVIC_PEND4_R (*((volatile unsigned long *)0xE000E210))
-#define NVIC_UNPEND0_R (*((volatile unsigned long *)0xE000E280))
-#define NVIC_UNPEND1_R (*((volatile unsigned long *)0xE000E284))
-#define NVIC_UNPEND2_R (*((volatile unsigned long *)0xE000E288))
-#define NVIC_UNPEND3_R (*((volatile unsigned long *)0xE000E28C))
-#define NVIC_UNPEND4_R (*((volatile unsigned long *)0xE000E290))
-#define NVIC_ACTIVE0_R (*((volatile unsigned long *)0xE000E300))
-#define NVIC_ACTIVE1_R (*((volatile unsigned long *)0xE000E304))
-#define NVIC_ACTIVE2_R (*((volatile unsigned long *)0xE000E308))
-#define NVIC_ACTIVE3_R (*((volatile unsigned long *)0xE000E30C))
-#define NVIC_ACTIVE4_R (*((volatile unsigned long *)0xE000E310))
-#define NVIC_PRI0_R (*((volatile unsigned long *)0xE000E400))
-#define NVIC_PRI1_R (*((volatile unsigned long *)0xE000E404))
-#define NVIC_PRI2_R (*((volatile unsigned long *)0xE000E408))
-#define NVIC_PRI3_R (*((volatile unsigned long *)0xE000E40C))
-#define NVIC_PRI4_R (*((volatile unsigned long *)0xE000E410))
-#define NVIC_PRI5_R (*((volatile unsigned long *)0xE000E414))
-#define NVIC_PRI6_R (*((volatile unsigned long *)0xE000E418))
-#define NVIC_PRI7_R (*((volatile unsigned long *)0xE000E41C))
-#define NVIC_PRI8_R (*((volatile unsigned long *)0xE000E420))
-#define NVIC_PRI9_R (*((volatile unsigned long *)0xE000E424))
-#define NVIC_PRI10_R (*((volatile unsigned long *)0xE000E428))
-#define NVIC_PRI11_R (*((volatile unsigned long *)0xE000E42C))
-#define NVIC_PRI12_R (*((volatile unsigned long *)0xE000E430))
-#define NVIC_PRI13_R (*((volatile unsigned long *)0xE000E434))
-#define NVIC_PRI14_R (*((volatile unsigned long *)0xE000E438))
-#define NVIC_PRI15_R (*((volatile unsigned long *)0xE000E43C))
-#define NVIC_PRI16_R (*((volatile unsigned long *)0xE000E440))
-#define NVIC_PRI17_R (*((volatile unsigned long *)0xE000E444))
-#define NVIC_PRI18_R (*((volatile unsigned long *)0xE000E448))
-#define NVIC_PRI19_R (*((volatile unsigned long *)0xE000E44C))
-#define NVIC_PRI20_R (*((volatile unsigned long *)0xE000E450))
-#define NVIC_PRI21_R (*((volatile unsigned long *)0xE000E454))
-#define NVIC_PRI22_R (*((volatile unsigned long *)0xE000E458))
-#define NVIC_PRI23_R (*((volatile unsigned long *)0xE000E45C))
-#define NVIC_PRI24_R (*((volatile unsigned long *)0xE000E460))
-#define NVIC_PRI25_R (*((volatile unsigned long *)0xE000E464))
-#define NVIC_PRI26_R (*((volatile unsigned long *)0xE000E468))
-#define NVIC_PRI27_R (*((volatile unsigned long *)0xE000E46C))
-#define NVIC_PRI28_R (*((volatile unsigned long *)0xE000E470))
-#define NVIC_PRI29_R (*((volatile unsigned long *)0xE000E474))
-#define NVIC_PRI30_R (*((volatile unsigned long *)0xE000E478))
-#define NVIC_PRI31_R (*((volatile unsigned long *)0xE000E47C))
-#define NVIC_PRI32_R (*((volatile unsigned long *)0xE000E480))
-#define NVIC_CPUID_R (*((volatile unsigned long *)0xE000ED00))
-#define NVIC_INT_CTRL_R (*((volatile unsigned long *)0xE000ED04))
-#define NVIC_VTABLE_R (*((volatile unsigned long *)0xE000ED08))
-#define NVIC_APINT_R (*((volatile unsigned long *)0xE000ED0C))
-#define NVIC_SYS_CTRL_R (*((volatile unsigned long *)0xE000ED10))
-#define NVIC_CFG_CTRL_R (*((volatile unsigned long *)0xE000ED14))
-#define NVIC_SYS_PRI1_R (*((volatile unsigned long *)0xE000ED18))
-#define NVIC_SYS_PRI2_R (*((volatile unsigned long *)0xE000ED1C))
-#define NVIC_SYS_PRI3_R (*((volatile unsigned long *)0xE000ED20))
-#define NVIC_SYS_HND_CTRL_R (*((volatile unsigned long *)0xE000ED24))
-#define NVIC_FAULT_STAT_R (*((volatile unsigned long *)0xE000ED28))
-#define NVIC_HFAULT_STAT_R (*((volatile unsigned long *)0xE000ED2C))
-#define NVIC_DEBUG_STAT_R (*((volatile unsigned long *)0xE000ED30))
-#define NVIC_MM_ADDR_R (*((volatile unsigned long *)0xE000ED34))
-#define NVIC_FAULT_ADDR_R (*((volatile unsigned long *)0xE000ED38))
-#define NVIC_CPAC_R (*((volatile unsigned long *)0xE000ED88))
-#define NVIC_MPU_TYPE_R (*((volatile unsigned long *)0xE000ED90))
-#define NVIC_MPU_CTRL_R (*((volatile unsigned long *)0xE000ED94))
-#define NVIC_MPU_NUMBER_R (*((volatile unsigned long *)0xE000ED98))
-#define NVIC_MPU_BASE_R (*((volatile unsigned long *)0xE000ED9C))
-#define NVIC_MPU_ATTR_R (*((volatile unsigned long *)0xE000EDA0))
-#define NVIC_MPU_BASE1_R (*((volatile unsigned long *)0xE000EDA4))
-#define NVIC_MPU_ATTR1_R (*((volatile unsigned long *)0xE000EDA8))
-#define NVIC_MPU_BASE2_R (*((volatile unsigned long *)0xE000EDAC))
-#define NVIC_MPU_ATTR2_R (*((volatile unsigned long *)0xE000EDB0))
-#define NVIC_MPU_BASE3_R (*((volatile unsigned long *)0xE000EDB4))
-#define NVIC_MPU_ATTR3_R (*((volatile unsigned long *)0xE000EDB8))
-#define NVIC_DBG_CTRL_R (*((volatile unsigned long *)0xE000EDF0))
-#define NVIC_DBG_XFER_R (*((volatile unsigned long *)0xE000EDF4))
-#define NVIC_DBG_DATA_R (*((volatile unsigned long *)0xE000EDF8))
-#define NVIC_DBG_INT_R (*((volatile unsigned long *)0xE000EDFC))
-#define NVIC_SW_TRIG_R (*((volatile unsigned long *)0xE000EF00))
-#define NVIC_FPCC_R (*((volatile unsigned long *)0xE000EF34))
-#define NVIC_FPCA_R (*((volatile unsigned long *)0xE000EF38))
-#define NVIC_FPDSC_R (*((volatile unsigned long *)0xE000EF3C))
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the WDT_O_LOAD register.
-//
-//*****************************************************************************
-#define WDT_LOAD_M 0xFFFFFFFF // Watchdog Load Value
-#define WDT_LOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the WDT_O_VALUE register.
-//
-//*****************************************************************************
-#define WDT_VALUE_M 0xFFFFFFFF // Watchdog Value
-#define WDT_VALUE_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the WDT_O_CTL register.
-//
-//*****************************************************************************
-#define WDT_CTL_WRC 0x80000000 // Write Complete
-#define WDT_CTL_INTTYPE 0x00000004 // Watchdog Interrupt Type
-#define WDT_CTL_RESEN 0x00000002 // Watchdog Reset Enable
-#define WDT_CTL_INTEN 0x00000001 // Watchdog Interrupt Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the WDT_O_ICR register.
-//
-//*****************************************************************************
-#define WDT_ICR_M 0xFFFFFFFF // Watchdog Interrupt Clear
-#define WDT_ICR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the WDT_O_RIS register.
-//
-//*****************************************************************************
-#define WDT_RIS_WDTRIS 0x00000001 // Watchdog Raw Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the WDT_O_MIS register.
-//
-//*****************************************************************************
-#define WDT_MIS_WDTMIS 0x00000001 // Watchdog Masked Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the WDT_O_TEST register.
-//
-//*****************************************************************************
-#define WDT_TEST_STALL 0x00000100 // Watchdog Stall Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the WDT_O_LOCK register.
-//
-//*****************************************************************************
-#define WDT_LOCK_M 0xFFFFFFFF // Watchdog Lock
-#define WDT_LOCK_UNLOCKED 0x00000000 // Unlocked
-#define WDT_LOCK_LOCKED 0x00000001 // Locked
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_O_LOCK register.
-//
-//*****************************************************************************
-#define GPIO_LOCK_M 0xFFFFFFFF // GPIO Lock
-#define GPIO_LOCK_UNLOCKED 0x00000000 // The GPIOCR register is unlocked
- // and may be modified
-#define GPIO_LOCK_LOCKED 0x00000001 // The GPIOCR register is locked
- // and may not be modified
-#define GPIO_LOCK_KEY 0x4C4F434B // Unlocks the GPIO_CR register
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_O_SI register.
-//
-//*****************************************************************************
-#define GPIO_SI_SUM 0x00000001 // Summary Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port A.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PA7_M 0xF0000000 // PA7 mask
-#define GPIO_PCTL_PA7_I2C1SDA 0x30000000 // I2C1SDA on PA7
-#define GPIO_PCTL_PA7_M1PWM3 0x50000000 // M1PWM3 on PA7
-#define GPIO_PCTL_PA6_M 0x0F000000 // PA6 mask
-#define GPIO_PCTL_PA6_I2C1SCL 0x03000000 // I2C1SCL on PA6
-#define GPIO_PCTL_PA6_M1PWM2 0x05000000 // M1PWM2 on PA6
-#define GPIO_PCTL_PA5_M 0x00F00000 // PA5 mask
-#define GPIO_PCTL_PA5_SSI0TX 0x00200000 // SSI0TX on PA5
-#define GPIO_PCTL_PA4_M 0x000F0000 // PA4 mask
-#define GPIO_PCTL_PA4_SSI0RX 0x00020000 // SSI0RX on PA4
-#define GPIO_PCTL_PA3_M 0x0000F000 // PA3 mask
-#define GPIO_PCTL_PA3_SSI0FSS 0x00002000 // SSI0FSS on PA3
-#define GPIO_PCTL_PA2_M 0x00000F00 // PA2 mask
-#define GPIO_PCTL_PA2_SSI0CLK 0x00000200 // SSI0CLK on PA2
-#define GPIO_PCTL_PA1_M 0x000000F0 // PA1 mask
-#define GPIO_PCTL_PA1_U0TX 0x00000010 // U0TX on PA1
-#define GPIO_PCTL_PA1_CAN1TX 0x00000080 // CAN1TX on PA1
-#define GPIO_PCTL_PA0_M 0x0000000F // PA0 mask
-#define GPIO_PCTL_PA0_U0RX 0x00000001 // U0RX on PA0
-#define GPIO_PCTL_PA0_CAN1RX 0x00000008 // CAN1RX on PA0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port B.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PB5_M 0x00F00000 // PB5 mask
-#define GPIO_PCTL_PB5_SSI2FSS 0x00200000 // SSI2FSS on PB5
-#define GPIO_PCTL_PB5_M0PWM3 0x00400000 // M0PWM3 on PB5
-#define GPIO_PCTL_PB5_T1CCP1 0x00700000 // T1CCP1 on PB5
-#define GPIO_PCTL_PB5_CAN0TX 0x00800000 // CAN0TX on PB5
-#define GPIO_PCTL_PB4_M 0x000F0000 // PB4 mask
-#define GPIO_PCTL_PB4_SSI2CLK 0x00020000 // SSI2CLK on PB4
-#define GPIO_PCTL_PB4_M0PWM2 0x00040000 // M0PWM2 on PB4
-#define GPIO_PCTL_PB4_T1CCP0 0x00070000 // T1CCP0 on PB4
-#define GPIO_PCTL_PB4_CAN0RX 0x00080000 // CAN0RX on PB4
-#define GPIO_PCTL_PB3_M 0x0000F000 // PB3 mask
-#define GPIO_PCTL_PB3_I2C0SDA 0x00003000 // I2C0SDA on PB3
-#define GPIO_PCTL_PB3_T3CCP1 0x00007000 // T3CCP1 on PB3
-#define GPIO_PCTL_PB2_M 0x00000F00 // PB2 mask
-#define GPIO_PCTL_PB2_I2C0SCL 0x00000300 // I2C0SCL on PB2
-#define GPIO_PCTL_PB2_T3CCP0 0x00000700 // T3CCP0 on PB2
-#define GPIO_PCTL_PB1_M 0x000000F0 // PB1 mask
-#define GPIO_PCTL_PB1_U1TX 0x00000010 // U1TX on PB1
-#define GPIO_PCTL_PB1_T2CCP1 0x00000070 // T2CCP1 on PB1
-#define GPIO_PCTL_PB0_M 0x0000000F // PB0 mask
-#define GPIO_PCTL_PB0_U1RX 0x00000001 // U1RX on PB0
-#define GPIO_PCTL_PB0_T2CCP0 0x00000007 // T2CCP0 on PB0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port C.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PC7_M 0xF0000000 // PC7 mask
-#define GPIO_PCTL_PC7_U3TX 0x10000000 // U3TX on PC7
-#define GPIO_PCTL_PC7_WT1CCP1 0x70000000 // WT1CCP1 on PC7
-#define GPIO_PCTL_PC7_USB0PFLT 0x80000000 // USB0PFLT on PC7
-#define GPIO_PCTL_PC6_M 0x0F000000 // PC6 mask
-#define GPIO_PCTL_PC6_U3RX 0x01000000 // U3RX on PC6
-#define GPIO_PCTL_PC6_PHB1 0x06000000 // PHB1 on PC6
-#define GPIO_PCTL_PC6_WT1CCP0 0x07000000 // WT1CCP0 on PC6
-#define GPIO_PCTL_PC6_USB0EPEN 0x08000000 // USB0EPEN on PC6
-#define GPIO_PCTL_PC5_M 0x00F00000 // PC5 mask
-#define GPIO_PCTL_PC5_U4TX 0x00100000 // U4TX on PC5
-#define GPIO_PCTL_PC5_U1TX 0x00200000 // U1TX on PC5
-#define GPIO_PCTL_PC5_M0PWM7 0x00400000 // M0PWM7 on PC5
-#define GPIO_PCTL_PC5_PHA1 0x00600000 // PHA1 on PC5
-#define GPIO_PCTL_PC5_WT0CCP1 0x00700000 // WT0CCP1 on PC5
-#define GPIO_PCTL_PC5_U1CTS 0x00800000 // U1CTS on PC5
-#define GPIO_PCTL_PC4_M 0x000F0000 // PC4 mask
-#define GPIO_PCTL_PC4_U4RX 0x00010000 // U4RX on PC4
-#define GPIO_PCTL_PC4_U1RX 0x00020000 // U1RX on PC4
-#define GPIO_PCTL_PC4_M0PWM6 0x00040000 // M0PWM6 on PC4
-#define GPIO_PCTL_PC4_IDX1 0x00060000 // IDX1 on PC4
-#define GPIO_PCTL_PC4_WT0CCP0 0x00070000 // WT0CCP0 on PC4
-#define GPIO_PCTL_PC4_U1RTS 0x00080000 // U1RTS on PC4
-#define GPIO_PCTL_PC3_M 0x0000F000 // PC3 mask
-#define GPIO_PCTL_PC3_TDO 0x00001000 // TDO on PC3
-#define GPIO_PCTL_PC3_T5CCP1 0x00007000 // T5CCP1 on PC3
-#define GPIO_PCTL_PC2_M 0x00000F00 // PC2 mask
-#define GPIO_PCTL_PC2_TDI 0x00000100 // TDI on PC2
-#define GPIO_PCTL_PC2_T5CCP0 0x00000700 // T5CCP0 on PC2
-#define GPIO_PCTL_PC1_M 0x000000F0 // PC1 mask
-#define GPIO_PCTL_PC1_TMS 0x00000010 // TMS on PC1
-#define GPIO_PCTL_PC1_T4CCP1 0x00000070 // T4CCP1 on PC1
-#define GPIO_PCTL_PC0_M 0x0000000F // PC0 mask
-#define GPIO_PCTL_PC0_TCK 0x00000001 // TCK on PC0
-#define GPIO_PCTL_PC0_T4CCP0 0x00000007 // T4CCP0 on PC0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port D.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PD7_M 0xF0000000 // PD7 mask
-#define GPIO_PCTL_PD7_U2TX 0x10000000 // U2TX on PD7
-#define GPIO_PCTL_PD7_M0FAULT1 0x40000000 // M0FAULT1 on PD7
-#define GPIO_PCTL_PD7_PHB0 0x60000000 // PHB0 on PD7
-#define GPIO_PCTL_PD7_WT5CCP1 0x70000000 // WT5CCP1 on PD7
-#define GPIO_PCTL_PD7_NMI 0x80000000 // NMI on PD7
-#define GPIO_PCTL_PD6_M 0x0F000000 // PD6 mask
-#define GPIO_PCTL_PD6_U2RX 0x01000000 // U2RX on PD6
-#define GPIO_PCTL_PD6_M0FAULT0 0x04000000 // M0FAULT0 on PD6
-#define GPIO_PCTL_PD6_PHA0 0x06000000 // PHA0 on PD6
-#define GPIO_PCTL_PD6_WT5CCP0 0x07000000 // WT5CCP0 on PD6
-#define GPIO_PCTL_PD5_M 0x00F00000 // PD5 mask
-#define GPIO_PCTL_PD5_U6TX 0x00100000 // U6TX on PD5
-#define GPIO_PCTL_PD5_WT4CCP1 0x00700000 // WT4CCP1 on PD5
-#define GPIO_PCTL_PD4_M 0x000F0000 // PD4 mask
-#define GPIO_PCTL_PD4_U6RX 0x00010000 // U6RX on PD4
-#define GPIO_PCTL_PD4_WT4CCP0 0x00070000 // WT4CCP0 on PD4
-#define GPIO_PCTL_PD3_M 0x0000F000 // PD3 mask
-#define GPIO_PCTL_PD3_SSI3TX 0x00001000 // SSI3TX on PD3
-#define GPIO_PCTL_PD3_SSI1TX 0x00002000 // SSI1TX on PD3
-#define GPIO_PCTL_PD3_IDX0 0x00006000 // IDX0 on PD3
-#define GPIO_PCTL_PD3_WT3CCP1 0x00007000 // WT3CCP1 on PD3
-#define GPIO_PCTL_PD3_USB0PFLT 0x00008000 // USB0PFLT on PD3
-#define GPIO_PCTL_PD2_M 0x00000F00 // PD2 mask
-#define GPIO_PCTL_PD2_SSI3RX 0x00000100 // SSI3RX on PD2
-#define GPIO_PCTL_PD2_SSI1RX 0x00000200 // SSI1RX on PD2
-#define GPIO_PCTL_PD2_M0FAULT0 0x00000400 // M0FAULT0 on PD2
-#define GPIO_PCTL_PD2_WT3CCP0 0x00000700 // WT3CCP0 on PD2
-#define GPIO_PCTL_PD2_USB0EPEN 0x00000800 // USB0EPEN on PD2
-#define GPIO_PCTL_PD1_M 0x000000F0 // PD1 mask
-#define GPIO_PCTL_PD1_SSI3FSS 0x00000010 // SSI3FSS on PD1
-#define GPIO_PCTL_PD1_SSI1FSS 0x00000020 // SSI1FSS on PD1
-#define GPIO_PCTL_PD1_I2C3SDA 0x00000030 // I2C3SDA on PD1
-#define GPIO_PCTL_PD1_M0PWM7 0x00000040 // M0PWM7 on PD1
-#define GPIO_PCTL_PD1_M1PWM1 0x00000050 // M1PWM1 on PD1
-#define GPIO_PCTL_PD1_WT2CCP1 0x00000070 // WT2CCP1 on PD1
-#define GPIO_PCTL_PD0_M 0x0000000F // PD0 mask
-#define GPIO_PCTL_PD0_SSI3CLK 0x00000001 // SSI3CLK on PD0
-#define GPIO_PCTL_PD0_SSI1CLK 0x00000002 // SSI1CLK on PD0
-#define GPIO_PCTL_PD0_I2C3SCL 0x00000003 // I2C3SCL on PD0
-#define GPIO_PCTL_PD0_M0PWM6 0x00000004 // M0PWM6 on PD0
-#define GPIO_PCTL_PD0_M1PWM0 0x00000005 // M1PWM0 on PD0
-#define GPIO_PCTL_PD0_WT2CCP0 0x00000007 // WT2CCP0 on PD0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port E.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PE7_M 0xF0000000 // PE7 mask
-#define GPIO_PCTL_PE7_U1RI 0x10000000 // U1RI on PE7
-#define GPIO_PCTL_PE7_CAN1TX 0x80000000 // CAN1TX on PE7
-#define GPIO_PCTL_PE6_M 0x0F000000 // PE6 mask
-#define GPIO_PCTL_PE6_CAN1RX 0x08000000 // CAN1RX on PE6
-#define GPIO_PCTL_PE5_M 0x00F00000 // PE5 mask
-#define GPIO_PCTL_PE5_U5TX 0x00100000 // U5TX on PE5
-#define GPIO_PCTL_PE5_I2C2SDA 0x00300000 // I2C2SDA on PE5
-#define GPIO_PCTL_PE5_M0PWM5 0x00400000 // M0PWM5 on PE5
-#define GPIO_PCTL_PE5_M1PWM3 0x00500000 // M1PWM3 on PE5
-#define GPIO_PCTL_PE5_CAN0TX 0x00800000 // CAN0TX on PE5
-#define GPIO_PCTL_PE4_M 0x000F0000 // PE4 mask
-#define GPIO_PCTL_PE4_U5RX 0x00010000 // U5RX on PE4
-#define GPIO_PCTL_PE4_I2C2SCL 0x00030000 // I2C2SCL on PE4
-#define GPIO_PCTL_PE4_M0PWM4 0x00040000 // M0PWM4 on PE4
-#define GPIO_PCTL_PE4_M1PWM2 0x00050000 // M1PWM2 on PE4
-#define GPIO_PCTL_PE4_CAN0RX 0x00080000 // CAN0RX on PE4
-#define GPIO_PCTL_PE1_M 0x000000F0 // PE1 mask
-#define GPIO_PCTL_PE1_U7TX 0x00000010 // U7TX on PE1
-#define GPIO_PCTL_PE0_M 0x0000000F // PE0 mask
-#define GPIO_PCTL_PE0_U7RX 0x00000001 // U7RX on PE0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port F.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PF7_M 0xF0000000 // PF7 mask
-#define GPIO_PCTL_PF7_I2C2SDA 0x30000000 // I2C2SDA on PF7
-#define GPIO_PCTL_PF7_M1FAULT0 0x50000000 // M1FAULT0 on PF7
-#define GPIO_PCTL_PF7_T3CCP1 0x70000000 // T3CCP1 on PF7
-#define GPIO_PCTL_PF6_M 0x0F000000 // PF6 mask
-#define GPIO_PCTL_PF6_I2C2SCL 0x03000000 // I2C2SCL on PF6
-#define GPIO_PCTL_PF6_T3CCP0 0x07000000 // T3CCP0 on PF6
-#define GPIO_PCTL_PF5_M 0x00F00000 // PF5 mask
-#define GPIO_PCTL_PF5_M0FAULT3 0x00400000 // M0FAULT3 on PF5
-#define GPIO_PCTL_PF5_T2CCP1 0x00700000 // T2CCP1 on PF5
-#define GPIO_PCTL_PF5_USB0PFLT 0x00800000 // USB0PFLT on PF5
-#define GPIO_PCTL_PF4_M 0x000F0000 // PF4 mask
-#define GPIO_PCTL_PF4_U1DTR 0x00010000 // U1DTR on PF4
-#define GPIO_PCTL_PF4_M0FAULT2 0x00040000 // M0FAULT2 on PF4
-#define GPIO_PCTL_PF4_M1FAULT0 0x00050000 // M1FAULT0 on PF4
-#define GPIO_PCTL_PF4_IDX0 0x00060000 // IDX0 on PF4
-#define GPIO_PCTL_PF4_T2CCP0 0x00070000 // T2CCP0 on PF4
-#define GPIO_PCTL_PF4_USB0EPEN 0x00080000 // USB0EPEN on PF4
-#define GPIO_PCTL_PF4_TRD3 0x000E0000 // TRD3 on PF4
-#define GPIO_PCTL_PF3_M 0x0000F000 // PF3 mask
-#define GPIO_PCTL_PF3_U1DSR 0x00001000 // U1DSR on PF3
-#define GPIO_PCTL_PF3_SSI1FSS 0x00002000 // SSI1FSS on PF3
-#define GPIO_PCTL_PF3_CAN0TX 0x00003000 // CAN0TX on PF3
-#define GPIO_PCTL_PF3_M0FAULT1 0x00004000 // M0FAULT1 on PF3
-#define GPIO_PCTL_PF3_M1PWM7 0x00005000 // M1PWM7 on PF3
-#define GPIO_PCTL_PF3_T1CCP1 0x00007000 // T1CCP1 on PF3
-#define GPIO_PCTL_PF3_TRCLK 0x0000E000 // TRCLK on PF3
-#define GPIO_PCTL_PF2_M 0x00000F00 // PF2 mask
-#define GPIO_PCTL_PF2_U1DCD 0x00000100 // U1DCD on PF2
-#define GPIO_PCTL_PF2_SSI1CLK 0x00000200 // SSI1CLK on PF2
-#define GPIO_PCTL_PF2_M0FAULT0 0x00000400 // M0FAULT0 on PF2
-#define GPIO_PCTL_PF2_M1PWM6 0x00000500 // M1PWM6 on PF2
-#define GPIO_PCTL_PF2_T1CCP0 0x00000700 // T1CCP0 on PF2
-#define GPIO_PCTL_PF2_C2O 0x00000900 // C2O on PF2
-#define GPIO_PCTL_PF2_TRD0 0x00000E00 // TRD0 on PF2
-#define GPIO_PCTL_PF1_M 0x000000F0 // PF1 mask
-#define GPIO_PCTL_PF1_U1CTS 0x00000010 // U1CTS on PF1
-#define GPIO_PCTL_PF1_SSI1TX 0x00000020 // SSI1TX on PF1
-#define GPIO_PCTL_PF1_M1PWM5 0x00000050 // M1PWM5 on PF1
-#define GPIO_PCTL_PF1_PHB0 0x00000060 // PHB0 on PF1
-#define GPIO_PCTL_PF1_T0CCP1 0x00000070 // T0CCP1 on PF1
-#define GPIO_PCTL_PF1_C1O 0x00000090 // C1O on PF1
-#define GPIO_PCTL_PF1_TRD1 0x000000E0 // TRD1 on PF1
-#define GPIO_PCTL_PF0_M 0x0000000F // PF0 mask
-#define GPIO_PCTL_PF0_U1RTS 0x00000001 // U1RTS on PF0
-#define GPIO_PCTL_PF0_SSI1RX 0x00000002 // SSI1RX on PF0
-#define GPIO_PCTL_PF0_CAN0RX 0x00000003 // CAN0RX on PF0
-#define GPIO_PCTL_PF0_M1PWM4 0x00000005 // M1PWM4 on PF0
-#define GPIO_PCTL_PF0_PHA0 0x00000006 // PHA0 on PF0
-#define GPIO_PCTL_PF0_T0CCP0 0x00000007 // T0CCP0 on PF0
-#define GPIO_PCTL_PF0_NMI 0x00000008 // NMI on PF0
-#define GPIO_PCTL_PF0_C0O 0x00000009 // C0O on PF0
-#define GPIO_PCTL_PF0_TRD2 0x0000000E // TRD2 on PF0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port G.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PG7_M 0xF0000000 // PG7 mask
-#define GPIO_PCTL_PG7_I2C5SDA 0x30000000 // I2C5SDA on PG7
-#define GPIO_PCTL_PG7_M0PWM7 0x40000000 // M0PWM7 on PG7
-#define GPIO_PCTL_PG7_IDX1 0x50000000 // IDX1 on PG7
-#define GPIO_PCTL_PG7_WT1CCP1 0x70000000 // WT1CCP1 on PG7
-#define GPIO_PCTL_PG6_M 0x0F000000 // PG6 mask
-#define GPIO_PCTL_PG6_I2C5SCL 0x03000000 // I2C5SCL on PG6
-#define GPIO_PCTL_PG6_M0PWM6 0x04000000 // M0PWM6 on PG6
-#define GPIO_PCTL_PG6_WT1CCP0 0x07000000 // WT1CCP0 on PG6
-#define GPIO_PCTL_PG5_M 0x00F00000 // PG5 mask
-#define GPIO_PCTL_PG5_U2TX 0x00100000 // U2TX on PG5
-#define GPIO_PCTL_PG5_I2C1SDA 0x00300000 // I2C1SDA on PG5
-#define GPIO_PCTL_PG5_M0PWM5 0x00400000 // M0PWM5 on PG5
-#define GPIO_PCTL_PG5_M1PWM3 0x00500000 // M1PWM3 on PG5
-#define GPIO_PCTL_PG5_IDX1 0x00600000 // IDX1 on PG5
-#define GPIO_PCTL_PG5_WT0CCP1 0x00700000 // WT0CCP1 on PG5
-#define GPIO_PCTL_PG5_USB0PFLT 0x00800000 // USB0PFLT on PG5
-#define GPIO_PCTL_PG4_M 0x000F0000 // PG4 mask
-#define GPIO_PCTL_PG4_U2RX 0x00010000 // U2RX on PG4
-#define GPIO_PCTL_PG4_I2C1SCL 0x00030000 // I2C1SCL on PG4
-#define GPIO_PCTL_PG4_M0PWM4 0x00040000 // M0PWM4 on PG4
-#define GPIO_PCTL_PG4_M1PWM2 0x00050000 // M1PWM2 on PG4
-#define GPIO_PCTL_PG4_PHB1 0x00060000 // PHB1 on PG4
-#define GPIO_PCTL_PG4_WT0CCP0 0x00070000 // WT0CCP0 on PG4
-#define GPIO_PCTL_PG4_USB0EPEN 0x00080000 // USB0EPEN on PG4
-#define GPIO_PCTL_PG3_M 0x0000F000 // PG3 mask
-#define GPIO_PCTL_PG3_I2C4SDA 0x00003000 // I2C4SDA on PG3
-#define GPIO_PCTL_PG3_M0FAULT2 0x00004000 // M0FAULT2 on PG3
-#define GPIO_PCTL_PG3_M1PWM1 0x00005000 // M1PWM1 on PG3
-#define GPIO_PCTL_PG3_PHA1 0x00006000 // PHA1 on PG3
-#define GPIO_PCTL_PG3_T5CCP1 0x00007000 // T5CCP1 on PG3
-#define GPIO_PCTL_PG2_M 0x00000F00 // PG2 mask
-#define GPIO_PCTL_PG2_I2C4SCL 0x00000300 // I2C4SCL on PG2
-#define GPIO_PCTL_PG2_M0FAULT1 0x00000400 // M0FAULT1 on PG2
-#define GPIO_PCTL_PG2_M1PWM0 0x00000500 // M1PWM0 on PG2
-#define GPIO_PCTL_PG2_T5CCP0 0x00000700 // T5CCP0 on PG2
-#define GPIO_PCTL_PG1_M 0x000000F0 // PG1 mask
-#define GPIO_PCTL_PG1_I2C3SDA 0x00000030 // I2C3SDA on PG1
-#define GPIO_PCTL_PG1_M1FAULT2 0x00000050 // M1FAULT2 on PG1
-#define GPIO_PCTL_PG1_PHB1 0x00000060 // PHB1 on PG1
-#define GPIO_PCTL_PG1_T4CCP1 0x00000070 // T4CCP1 on PG1
-#define GPIO_PCTL_PG0_M 0x0000000F // PG0 mask
-#define GPIO_PCTL_PG0_I2C3SCL 0x00000003 // I2C3SCL on PG0
-#define GPIO_PCTL_PG0_M1FAULT1 0x00000005 // M1FAULT1 on PG0
-#define GPIO_PCTL_PG0_PHA1 0x00000006 // PHA1 on PG0
-#define GPIO_PCTL_PG0_T4CCP0 0x00000007 // T4CCP0 on PG0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port H.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PH7_M 0xF0000000 // PH7 mask
-#define GPIO_PCTL_PH7_SSI2TX 0x20000000 // SSI2TX on PH7
-#define GPIO_PCTL_PH7_M0PWM7 0x40000000 // M0PWM7 on PH7
-#define GPIO_PCTL_PH7_WT4CCP1 0x70000000 // WT4CCP1 on PH7
-#define GPIO_PCTL_PH6_M 0x0F000000 // PH6 mask
-#define GPIO_PCTL_PH6_SSI2RX 0x02000000 // SSI2RX on PH6
-#define GPIO_PCTL_PH6_M0PWM6 0x04000000 // M0PWM6 on PH6
-#define GPIO_PCTL_PH6_WT4CCP0 0x07000000 // WT4CCP0 on PH6
-#define GPIO_PCTL_PH5_M 0x00F00000 // PH5 mask
-#define GPIO_PCTL_PH5_SSI2FSS 0x00200000 // SSI2FSS on PH5
-#define GPIO_PCTL_PH5_M0PWM5 0x00400000 // M0PWM5 on PH5
-#define GPIO_PCTL_PH5_PHB0 0x00500000 // PHB0 on PH5
-#define GPIO_PCTL_PH5_WT3CCP1 0x00700000 // WT3CCP1 on PH5
-#define GPIO_PCTL_PH4_M 0x000F0000 // PH4 mask
-#define GPIO_PCTL_PH4_SSI2CLK 0x00020000 // SSI2CLK on PH4
-#define GPIO_PCTL_PH4_M0PWM4 0x00040000 // M0PWM4 on PH4
-#define GPIO_PCTL_PH4_PHA0 0x00050000 // PHA0 on PH4
-#define GPIO_PCTL_PH4_WT3CCP0 0x00070000 // WT3CCP0 on PH4
-#define GPIO_PCTL_PH3_M 0x0000F000 // PH3 mask
-#define GPIO_PCTL_PH3_SSI3TX 0x00002000 // SSI3TX on PH3
-#define GPIO_PCTL_PH3_M0PWM3 0x00004000 // M0PWM3 on PH3
-#define GPIO_PCTL_PH3_M0FAULT3 0x00006000 // M0FAULT3 on PH3
-#define GPIO_PCTL_PH3_WT5CCP1 0x00007000 // WT5CCP1 on PH3
-#define GPIO_PCTL_PH2_M 0x00000F00 // PH2 mask
-#define GPIO_PCTL_PH2_SSI3RX 0x00000200 // SSI3RX on PH2
-#define GPIO_PCTL_PH2_M0PWM2 0x00000400 // M0PWM2 on PH2
-#define GPIO_PCTL_PH2_M0FAULT2 0x00000600 // M0FAULT2 on PH2
-#define GPIO_PCTL_PH2_WT5CCP0 0x00000700 // WT5CCP0 on PH2
-#define GPIO_PCTL_PH1_M 0x000000F0 // PH1 mask
-#define GPIO_PCTL_PH1_SSI3FSS 0x00000020 // SSI3FSS on PH1
-#define GPIO_PCTL_PH1_M0PWM1 0x00000040 // M0PWM1 on PH1
-#define GPIO_PCTL_PH1_IDX0 0x00000050 // IDX0 on PH1
-#define GPIO_PCTL_PH1_M0FAULT1 0x00000060 // M0FAULT1 on PH1
-#define GPIO_PCTL_PH1_WT2CCP1 0x00000070 // WT2CCP1 on PH1
-#define GPIO_PCTL_PH0_M 0x0000000F // PH0 mask
-#define GPIO_PCTL_PH0_SSI3CLK 0x00000002 // SSI3CLK on PH0
-#define GPIO_PCTL_PH0_M0PWM0 0x00000004 // M0PWM0 on PH0
-#define GPIO_PCTL_PH0_M0FAULT0 0x00000006 // M0FAULT0 on PH0
-#define GPIO_PCTL_PH0_WT2CCP0 0x00000007 // WT2CCP0 on PH0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port J.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PJ5_M 0x00F00000 // PJ5 mask
-#define GPIO_PCTL_PJ5_U6TX 0x00100000 // U6TX on PJ5
-#define GPIO_PCTL_PJ5_T3CCP1 0x00700000 // T3CCP1 on PJ5
-#define GPIO_PCTL_PJ4_M 0x000F0000 // PJ4 mask
-#define GPIO_PCTL_PJ4_U6RX 0x00010000 // U6RX on PJ4
-#define GPIO_PCTL_PJ4_T3CCP0 0x00070000 // T3CCP0 on PJ4
-#define GPIO_PCTL_PJ3_M 0x0000F000 // PJ3 mask
-#define GPIO_PCTL_PJ3_U5TX 0x00001000 // U5TX on PJ3
-#define GPIO_PCTL_PJ3_T2CCP1 0x00007000 // T2CCP1 on PJ3
-#define GPIO_PCTL_PJ2_M 0x00000F00 // PJ2 mask
-#define GPIO_PCTL_PJ2_U5RX 0x00000100 // U5RX on PJ2
-#define GPIO_PCTL_PJ2_IDX0 0x00000500 // IDX0 on PJ2
-#define GPIO_PCTL_PJ2_T2CCP0 0x00000700 // T2CCP0 on PJ2
-#define GPIO_PCTL_PJ1_M 0x000000F0 // PJ1 mask
-#define GPIO_PCTL_PJ1_U4TX 0x00000010 // U4TX on PJ1
-#define GPIO_PCTL_PJ1_T1CCP1 0x00000070 // T1CCP1 on PJ1
-#define GPIO_PCTL_PJ0_M 0x0000000F // PJ0 mask
-#define GPIO_PCTL_PJ0_U4RX 0x00000001 // U4RX on PJ0
-#define GPIO_PCTL_PJ0_T1CCP0 0x00000007 // T1CCP0 on PJ0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port K.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PK7_M 0xF0000000 // PK7 Mask
-#define GPIO_PCTL_PK7_M0FAULT3 0x60000000 // M0FAULT3 on PK7
-#define GPIO_PCTL_PK7_WT1CCP1 0x70000000 // WT1CCP1 on PK7
-#define GPIO_PCTL_PK6_M 0x0F000000 // PK6 Mask
-#define GPIO_PCTL_PK6_M0FAULT2 0x06000000 // M0FAULT2 on PK6
-#define GPIO_PCTL_PK6_WT1CCP0 0x07000000 // WT1CCP0 on PK6
-#define GPIO_PCTL_PK6_C2O 0x08000000 // C2O on PK6
-#define GPIO_PCTL_PK5_M 0x00F00000 // PK5 Mask
-#define GPIO_PCTL_PK5_U7TX 0x00100000 // U7TX on PK5
-#define GPIO_PCTL_PK5_M0FAULT1 0x00600000 // M0FAULT1 on PK5
-#define GPIO_PCTL_PK5_C1O 0x00800000 // C1O on PK5
-#define GPIO_PCTL_PK4_M 0x000F0000 // PK4 Mask
-#define GPIO_PCTL_PK4_U7RX 0x00010000 // U7RX on PK4
-#define GPIO_PCTL_PK4_M0FAULT0 0x00060000 // M0FAULT0 on PK4
-#define GPIO_PCTL_PK4_RTCCLK 0x00070000 // RTCCLK on PK4
-#define GPIO_PCTL_PK4_C0O 0x00080000 // C0O on PK4
-#define GPIO_PCTL_PK3_M 0x0000F000 // PK3 Mask
-#define GPIO_PCTL_PK3_SSI3TX 0x00002000 // SSI3TX on PK3
-#define GPIO_PCTL_PK3_M1FAULT3 0x00006000 // M1FAULT3 on PK3
-#define GPIO_PCTL_PK2_M 0x00000F00 // PK2 Mask
-#define GPIO_PCTL_PK2_SSI3RX 0x00000200 // SSI3RX on PK2
-#define GPIO_PCTL_PK2_M1FAULT2 0x00000600 // M1FAULT2 on PK2
-#define GPIO_PCTL_PK1_M 0x000000F0 // PK1 Mask
-#define GPIO_PCTL_PK1_SSI3FSS 0x00000020 // SSI3FSS on PK1
-#define GPIO_PCTL_PK1_M1FAULT1 0x00000060 // M1FAULT1 on PK1
-#define GPIO_PCTL_PK0_M 0x0000000F // PK0 Mask
-#define GPIO_PCTL_PK0_SSI3CLK 0x00000002 // SSI3CLK on PK0
-#define GPIO_PCTL_PK0_M1FAULT0 0x00000006 // M1FAULT0 on PK0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port L.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PL7_M 0xF0000000 // PL7 Mask
-#define GPIO_PCTL_PL7_T3CCP1 0x70000000 // T3CCP1 on PL7
-#define GPIO_PCTL_PL7_WT3CCP1 0x80000000 // WT3CCP1 on PL7
-#define GPIO_PCTL_PL6_M 0x0F000000 // PL6 Mask
-#define GPIO_PCTL_PL6_T3CCP0 0x07000000 // T3CCP0 on PL6
-#define GPIO_PCTL_PL6_WT3CCP0 0x08000000 // WT3CCP0 on PL6
-#define GPIO_PCTL_PL5_M 0x00F00000 // PL5 Mask
-#define GPIO_PCTL_PL5_T2CCP1 0x00700000 // T2CCP1 on PL5
-#define GPIO_PCTL_PL5_WT2CCP1 0x00800000 // WT2CCP1 on PL5
-#define GPIO_PCTL_PL5_LPC0RESET_N \
- 0x00F00000 // LPC0RESET_N on PL5
-#define GPIO_PCTL_PL4_M 0x000F0000 // PL4 Mask
-#define GPIO_PCTL_PL4_T2CCP0 0x00070000 // T2CCP0 on PL4
-#define GPIO_PCTL_PL4_WT2CCP0 0x00080000 // WT2CCP0 on PL4
-#define GPIO_PCTL_PL4_LPC0FRAME_N \
- 0x000F0000 // LPC0FRAME_N on PL4
-#define GPIO_PCTL_PL3_M 0x0000F000 // PL3 Mask
-#define GPIO_PCTL_PL3_T1CCP1 0x00007000 // T1CCP1 on PL3
-#define GPIO_PCTL_PL3_WT1CCP1 0x00008000 // WT1CCP1 on PL3
-#define GPIO_PCTL_PL2_M 0x00000F00 // PL2 Mask
-#define GPIO_PCTL_PL2_T1CCP0 0x00000700 // T1CCP0 on PL2
-#define GPIO_PCTL_PL2_WT1CCP0 0x00000800 // WT1CCP0 on PL2
-#define GPIO_PCTL_PL1_M 0x000000F0 // PL1 Mask
-#define GPIO_PCTL_PL1_T0CCP1 0x00000070 // T0CCP1 on PL1
-#define GPIO_PCTL_PL1_WT0CCP1 0x00000080 // WT0CCP1 on PL1
-#define GPIO_PCTL_PL0_M 0x0000000F // PL0 Mask
-#define GPIO_PCTL_PL0_T0CCP0 0x00000007 // T0CCP0 on PL0
-#define GPIO_PCTL_PL0_WT0CCP0 0x00000008 // WT0CCP0 on PL0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port M.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PM7_M 0xF0000000 // PM7 Mask
-#define GPIO_PCTL_PM7_M0PWM5 0x20000000 // M0PWM5 on PM7
-#define GPIO_PCTL_PM7_WT0CCP1 0x70000000 // WT0CCP1 on PM7
-#define GPIO_PCTL_PM6_M 0x0F000000 // PM6 Mask
-#define GPIO_PCTL_PM6_M0PWM4 0x02000000 // M0PWM4 on PM6
-#define GPIO_PCTL_PM6_WT0CCP0 0x07000000 // WT0CCP0 on PM6
-#define GPIO_PCTL_PM3_M 0x0000F000 // PM3 Mask
-#define GPIO_PCTL_PM3_T5CCP1 0x00007000 // T5CCP1 on PM3
-#define GPIO_PCTL_PM3_WT5CCP1 0x00008000 // WT5CCP1 on PM3
-#define GPIO_PCTL_PM2_M 0x00000F00 // PM2 Mask
-#define GPIO_PCTL_PM2_T5CCP0 0x00000700 // T5CCP0 on PM2
-#define GPIO_PCTL_PM2_WT5CCP0 0x00000800 // WT5CCP0 on PM2
-#define GPIO_PCTL_PM2_LPC0CLKRUN_N \
- 0x00000F00 // LPC0CLKRUN_N on PM2
-#define GPIO_PCTL_PM1_M 0x000000F0 // PM1 Mask
-#define GPIO_PCTL_PM1_T4CCP1 0x00000070 // T4CCP1 on PM1
-#define GPIO_PCTL_PM1_WT4CCP1 0x00000080 // WT4CCP1 on PM1
-#define GPIO_PCTL_PM1_LPC0SCI_N 0x000000F0 // LPC0SCI_N on PM1
-#define GPIO_PCTL_PM0_M 0x0000000F // PM0 Mask
-#define GPIO_PCTL_PM0_T4CCP0 0x00000007 // T4CCP0 on PM0
-#define GPIO_PCTL_PM0_WT4CCP0 0x00000008 // WT4CCP0 on PM0
-#define GPIO_PCTL_PM0_LPC0PD_N 0x0000000F // LPC0PD_N on PM0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port N.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PN7_M 0xF0000000 // PN7 Mask
-#define GPIO_PCTL_PN7_M1PWM7 0x20000000 // M1PWM7 on PN7
-#define GPIO_PCTL_PN7_WT4CCP1 0x70000000 // WT4CCP1 on PN7
-#define GPIO_PCTL_PN6_M 0x0F000000 // PN6 Mask
-#define GPIO_PCTL_PN6_M1PWM6 0x02000000 // M1PWM6 on PN6
-#define GPIO_PCTL_PN6_WT4CCP0 0x07000000 // WT4CCP0 on PN6
-#define GPIO_PCTL_PN5_M 0x00F00000 // PN5 Mask
-#define GPIO_PCTL_PN5_M1PWM5 0x00200000 // M1PWM5 on PN5
-#define GPIO_PCTL_PN5_WT3CCP1 0x00700000 // WT3CCP1 on PN5
-#define GPIO_PCTL_PN4_M 0x000F0000 // PN4 Mask
-#define GPIO_PCTL_PN4_M1PWM4 0x00020000 // M1PWM4 on PN4
-#define GPIO_PCTL_PN4_WT3CCP0 0x00070000 // WT3CCP0 on PN4
-#define GPIO_PCTL_PN3_M 0x0000F000 // PN3 Mask
-#define GPIO_PCTL_PN3_M0PWM7 0x00002000 // M0PWM7 on PN3
-#define GPIO_PCTL_PN3_WT2CCP1 0x00007000 // WT2CCP1 on PN3
-#define GPIO_PCTL_PN2_M 0x00000F00 // PN2 Mask
-#define GPIO_PCTL_PN2_M0PWM6 0x00000200 // M0PWM6 on PN2
-#define GPIO_PCTL_PN2_WT2CCP0 0x00000700 // WT2CCP0 on PN2
-#define GPIO_PCTL_PN1_M 0x000000F0 // PN1 Mask
-#define GPIO_PCTL_PN1_CAN0TX 0x00000010 // CAN0TX on PN1
-#define GPIO_PCTL_PN0_M 0x0000000F // PN0 Mask
-#define GPIO_PCTL_PN0_CAN0RX 0x00000001 // CAN0RX on PN0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the GPIO_PCTL register for
-// port P.
-//
-//*****************************************************************************
-#define GPIO_PCTL_PP2_M 0x00000F00 // PP2 Mask
-#define GPIO_PCTL_PP2_M0PWM2 0x00000100 // M0PWM2 on PP2
-#define GPIO_PCTL_PP2_T5CCP0 0x00000700 // T5CCP0 on PP2
-#define GPIO_PCTL_PP1_M 0x000000F0 // PP1 Mask
-#define GPIO_PCTL_PP1_M0PWM1 0x00000010 // M0PWM1 on PP1
-#define GPIO_PCTL_PP1_T4CCP1 0x00000070 // T4CCP1 on PP1
-#define GPIO_PCTL_PP0_M 0x0000000F // PP0 Mask
-#define GPIO_PCTL_PP0_M0PWM0 0x00000001 // M0PWM0 on PP0
-#define GPIO_PCTL_PP0_T4CCP0 0x00000007 // T4CCP0 on PP0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_CR0 register.
-//
-//*****************************************************************************
-#define SSI_CR0_SCR_M 0x0000FF00 // SSI Serial Clock Rate
-#define SSI_CR0_SPH 0x00000080 // SSI Serial Clock Phase
-#define SSI_CR0_SPO 0x00000040 // SSI Serial Clock Polarity
-#define SSI_CR0_FRF_M 0x00000030 // SSI Frame Format Select
-#define SSI_CR0_FRF_MOTO 0x00000000 // Freescale SPI Frame Format
-#define SSI_CR0_FRF_TI 0x00000010 // Texas Instruments Synchronous
- // Serial Frame Format
-#define SSI_CR0_FRF_NMW 0x00000020 // MICROWIRE Frame Format
-#define SSI_CR0_DSS_M 0x0000000F // SSI Data Size Select
-#define SSI_CR0_DSS_4 0x00000003 // 4-bit data
-#define SSI_CR0_DSS_5 0x00000004 // 5-bit data
-#define SSI_CR0_DSS_6 0x00000005 // 6-bit data
-#define SSI_CR0_DSS_7 0x00000006 // 7-bit data
-#define SSI_CR0_DSS_8 0x00000007 // 8-bit data
-#define SSI_CR0_DSS_9 0x00000008 // 9-bit data
-#define SSI_CR0_DSS_10 0x00000009 // 10-bit data
-#define SSI_CR0_DSS_11 0x0000000A // 11-bit data
-#define SSI_CR0_DSS_12 0x0000000B // 12-bit data
-#define SSI_CR0_DSS_13 0x0000000C // 13-bit data
-#define SSI_CR0_DSS_14 0x0000000D // 14-bit data
-#define SSI_CR0_DSS_15 0x0000000E // 15-bit data
-#define SSI_CR0_DSS_16 0x0000000F // 16-bit data
-#define SSI_CR0_SCR_S 8
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_CR1 register.
-//
-//*****************************************************************************
-#define SSI_CR1_EOT 0x00000010 // End of Transmission
-#define SSI_CR1_SOD 0x00000008 // SSI Slave Mode Output Disable
-#define SSI_CR1_MS 0x00000004 // SSI Master/Slave Select
-#define SSI_CR1_SSE 0x00000002 // SSI Synchronous Serial Port
- // Enable
-#define SSI_CR1_LBM 0x00000001 // SSI Loopback Mode
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_DR register.
-//
-//*****************************************************************************
-#define SSI_DR_DATA_M 0x0000FFFF // SSI Receive/Transmit Data
-#define SSI_DR_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_SR register.
-//
-//*****************************************************************************
-#define SSI_SR_BSY 0x00000010 // SSI Busy Bit
-#define SSI_SR_RFF 0x00000008 // SSI Receive FIFO Full
-#define SSI_SR_RNE 0x00000004 // SSI Receive FIFO Not Empty
-#define SSI_SR_TNF 0x00000002 // SSI Transmit FIFO Not Full
-#define SSI_SR_TFE 0x00000001 // SSI Transmit FIFO Empty
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_CPSR register.
-//
-//*****************************************************************************
-#define SSI_CPSR_CPSDVSR_M 0x000000FF // SSI Clock Prescale Divisor
-#define SSI_CPSR_CPSDVSR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_IM register.
-//
-//*****************************************************************************
-#define SSI_IM_TXIM 0x00000008 // SSI Transmit FIFO Interrupt Mask
-#define SSI_IM_RXIM 0x00000004 // SSI Receive FIFO Interrupt Mask
-#define SSI_IM_RTIM 0x00000002 // SSI Receive Time-Out Interrupt
- // Mask
-#define SSI_IM_RORIM 0x00000001 // SSI Receive Overrun Interrupt
- // Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_RIS register.
-//
-//*****************************************************************************
-#define SSI_RIS_TXRIS 0x00000008 // SSI Transmit FIFO Raw Interrupt
- // Status
-#define SSI_RIS_RXRIS 0x00000004 // SSI Receive FIFO Raw Interrupt
- // Status
-#define SSI_RIS_RTRIS 0x00000002 // SSI Receive Time-Out Raw
- // Interrupt Status
-#define SSI_RIS_RORRIS 0x00000001 // SSI Receive Overrun Raw
- // Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_MIS register.
-//
-//*****************************************************************************
-#define SSI_MIS_TXMIS 0x00000008 // SSI Transmit FIFO Masked
- // Interrupt Status
-#define SSI_MIS_RXMIS 0x00000004 // SSI Receive FIFO Masked
- // Interrupt Status
-#define SSI_MIS_RTMIS 0x00000002 // SSI Receive Time-Out Masked
- // Interrupt Status
-#define SSI_MIS_RORMIS 0x00000001 // SSI Receive Overrun Masked
- // Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_ICR register.
-//
-//*****************************************************************************
-#define SSI_ICR_RTIC 0x00000002 // SSI Receive Time-Out Interrupt
- // Clear
-#define SSI_ICR_RORIC 0x00000001 // SSI Receive Overrun Interrupt
- // Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_DMACTL register.
-//
-//*****************************************************************************
-#define SSI_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
-#define SSI_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SSI_O_CC register.
-//
-//*****************************************************************************
-#define SSI_CC_CS_M 0x0000000F // SSI Baud Clock Source
-#define SSI_CC_CS_SYSPLL 0x00000000 // Either the system clock (if the
- // PLL bypass is in effect) or the
- // PLL output (default)
-#define SSI_CC_CS_PIOSC 0x00000001 // PIOSC
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_DR register.
-//
-//*****************************************************************************
-#define UART_DR_OE 0x00000800 // UART Overrun Error
-#define UART_DR_BE 0x00000400 // UART Break Error
-#define UART_DR_PE 0x00000200 // UART Parity Error
-#define UART_DR_FE 0x00000100 // UART Framing Error
-#define UART_DR_DATA_M 0x000000FF // Data Transmitted or Received
-#define UART_DR_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_RSR register.
-//
-//*****************************************************************************
-#define UART_RSR_OE 0x00000008 // UART Overrun Error
-#define UART_RSR_BE 0x00000004 // UART Break Error
-#define UART_RSR_PE 0x00000002 // UART Parity Error
-#define UART_RSR_FE 0x00000001 // UART Framing Error
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_ECR register.
-//
-//*****************************************************************************
-#define UART_ECR_DATA_M 0x000000FF // Error Clear
-#define UART_ECR_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_FR register.
-//
-//*****************************************************************************
-#define UART_FR_RI 0x00000100 // Ring Indicator
-#define UART_FR_TXFE 0x00000080 // UART Transmit FIFO Empty
-#define UART_FR_RXFF 0x00000040 // UART Receive FIFO Full
-#define UART_FR_TXFF 0x00000020 // UART Transmit FIFO Full
-#define UART_FR_RXFE 0x00000010 // UART Receive FIFO Empty
-#define UART_FR_BUSY 0x00000008 // UART Busy
-#define UART_FR_DCD 0x00000004 // Data Carrier Detect
-#define UART_FR_DSR 0x00000002 // Data Set Ready
-#define UART_FR_CTS 0x00000001 // Clear To Send
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_ILPR register.
-//
-//*****************************************************************************
-#define UART_ILPR_ILPDVSR_M 0x000000FF // IrDA Low-Power Divisor
-#define UART_ILPR_ILPDVSR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_IBRD register.
-//
-//*****************************************************************************
-#define UART_IBRD_DIVINT_M 0x0000FFFF // Integer Baud-Rate Divisor
-#define UART_IBRD_DIVINT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_FBRD register.
-//
-//*****************************************************************************
-#define UART_FBRD_DIVFRAC_M 0x0000003F // Fractional Baud-Rate Divisor
-#define UART_FBRD_DIVFRAC_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_LCRH register.
-//
-//*****************************************************************************
-#define UART_LCRH_SPS 0x00000080 // UART Stick Parity Select
-#define UART_LCRH_WLEN_M 0x00000060 // UART Word Length
-#define UART_LCRH_WLEN_5 0x00000000 // 5 bits (default)
-#define UART_LCRH_WLEN_6 0x00000020 // 6 bits
-#define UART_LCRH_WLEN_7 0x00000040 // 7 bits
-#define UART_LCRH_WLEN_8 0x00000060 // 8 bits
-#define UART_LCRH_FEN 0x00000010 // UART Enable FIFOs
-#define UART_LCRH_STP2 0x00000008 // UART Two Stop Bits Select
-#define UART_LCRH_EPS 0x00000004 // UART Even Parity Select
-#define UART_LCRH_PEN 0x00000002 // UART Parity Enable
-#define UART_LCRH_BRK 0x00000001 // UART Send Break
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_CTL register.
-//
-//*****************************************************************************
-#define UART_CTL_CTSEN 0x00008000 // Enable Clear To Send
-#define UART_CTL_RTSEN 0x00004000 // Enable Request to Send
-#define UART_CTL_RTS 0x00000800 // Request to Send
-#define UART_CTL_DTR 0x00000400 // Data Terminal Ready
-#define UART_CTL_RXE 0x00000200 // UART Receive Enable
-#define UART_CTL_TXE 0x00000100 // UART Transmit Enable
-#define UART_CTL_LBE 0x00000080 // UART Loop Back Enable
-#define UART_CTL_LIN 0x00000040 // LIN Mode Enable
-#define UART_CTL_HSE 0x00000020 // High-Speed Enable
-#define UART_CTL_EOT 0x00000010 // End of Transmission
-#define UART_CTL_SMART 0x00000008 // ISO 7816 Smart Card Support
-#define UART_CTL_SIRLP 0x00000004 // UART SIR Low-Power Mode
-#define UART_CTL_SIREN 0x00000002 // UART SIR Enable
-#define UART_CTL_UARTEN 0x00000001 // UART Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_IFLS register.
-//
-//*****************************************************************************
-#define UART_IFLS_RX_M 0x00000038 // UART Receive Interrupt FIFO
- // Level Select
-#define UART_IFLS_RX1_8 0x00000000 // RX FIFO >= 1/8 full
-#define UART_IFLS_RX2_8 0x00000008 // RX FIFO >= 1/4 full
-#define UART_IFLS_RX4_8 0x00000010 // RX FIFO >= 1/2 full (default)
-#define UART_IFLS_RX6_8 0x00000018 // RX FIFO >= 3/4 full
-#define UART_IFLS_RX7_8 0x00000020 // RX FIFO >= 7/8 full
-#define UART_IFLS_TX_M 0x00000007 // UART Transmit Interrupt FIFO
- // Level Select
-#define UART_IFLS_TX1_8 0x00000000 // TX FIFO <= 1/8 full
-#define UART_IFLS_TX2_8 0x00000001 // TX FIFO <= 1/4 full
-#define UART_IFLS_TX4_8 0x00000002 // TX FIFO <= 1/2 full (default)
-#define UART_IFLS_TX6_8 0x00000003 // TX FIFO <= 3/4 full
-#define UART_IFLS_TX7_8 0x00000004 // TX FIFO <= 7/8 full
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_IM register.
-//
-//*****************************************************************************
-#define UART_IM_LME5IM 0x00008000 // LIN Mode Edge 5 Interrupt Mask
-#define UART_IM_LME1IM 0x00004000 // LIN Mode Edge 1 Interrupt Mask
-#define UART_IM_LMSBIM 0x00002000 // LIN Mode Sync Break Interrupt
- // Mask
-#define UART_IM_9BITIM 0x00001000 // 9-Bit Mode Interrupt Mask
-#define UART_IM_OEIM 0x00000400 // UART Overrun Error Interrupt
- // Mask
-#define UART_IM_BEIM 0x00000200 // UART Break Error Interrupt Mask
-#define UART_IM_PEIM 0x00000100 // UART Parity Error Interrupt Mask
-#define UART_IM_FEIM 0x00000080 // UART Framing Error Interrupt
- // Mask
-#define UART_IM_RTIM 0x00000040 // UART Receive Time-Out Interrupt
- // Mask
-#define UART_IM_TXIM 0x00000020 // UART Transmit Interrupt Mask
-#define UART_IM_RXIM 0x00000010 // UART Receive Interrupt Mask
-#define UART_IM_DSRMIM 0x00000008 // UART Data Set Ready Modem
- // Interrupt Mask
-#define UART_IM_DCDMIM 0x00000004 // UART Data Carrier Detect Modem
- // Interrupt Mask
-#define UART_IM_CTSMIM 0x00000002 // UART Clear to Send Modem
- // Interrupt Mask
-#define UART_IM_RIMIM 0x00000001 // UART Ring Indicator Modem
- // Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_RIS register.
-//
-//*****************************************************************************
-#define UART_RIS_LME5RIS 0x00008000 // LIN Mode Edge 5 Raw Interrupt
- // Status
-#define UART_RIS_LME1RIS 0x00004000 // LIN Mode Edge 1 Raw Interrupt
- // Status
-#define UART_RIS_LMSBRIS 0x00002000 // LIN Mode Sync Break Raw
- // Interrupt Status
-#define UART_RIS_9BITRIS 0x00001000 // 9-Bit Mode Raw Interrupt Status
-#define UART_RIS_OERIS 0x00000400 // UART Overrun Error Raw Interrupt
- // Status
-#define UART_RIS_BERIS 0x00000200 // UART Break Error Raw Interrupt
- // Status
-#define UART_RIS_PERIS 0x00000100 // UART Parity Error Raw Interrupt
- // Status
-#define UART_RIS_FERIS 0x00000080 // UART Framing Error Raw Interrupt
- // Status
-#define UART_RIS_RTRIS 0x00000040 // UART Receive Time-Out Raw
- // Interrupt Status
-#define UART_RIS_TXRIS 0x00000020 // UART Transmit Raw Interrupt
- // Status
-#define UART_RIS_RXRIS 0x00000010 // UART Receive Raw Interrupt
- // Status
-#define UART_RIS_DSRRIS 0x00000008 // UART Data Set Ready Modem Raw
- // Interrupt Status
-#define UART_RIS_DCDRIS 0x00000004 // UART Data Carrier Detect Modem
- // Raw Interrupt Status
-#define UART_RIS_CTSRIS 0x00000002 // UART Clear to Send Modem Raw
- // Interrupt Status
-#define UART_RIS_RIRIS 0x00000001 // UART Ring Indicator Modem Raw
- // Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_MIS register.
-//
-//*****************************************************************************
-#define UART_MIS_LME5MIS 0x00008000 // LIN Mode Edge 5 Masked Interrupt
- // Status
-#define UART_MIS_LME1MIS 0x00004000 // LIN Mode Edge 1 Masked Interrupt
- // Status
-#define UART_MIS_LMSBMIS 0x00002000 // LIN Mode Sync Break Masked
- // Interrupt Status
-#define UART_MIS_9BITMIS 0x00001000 // 9-Bit Mode Masked Interrupt
- // Status
-#define UART_MIS_OEMIS 0x00000400 // UART Overrun Error Masked
- // Interrupt Status
-#define UART_MIS_BEMIS 0x00000200 // UART Break Error Masked
- // Interrupt Status
-#define UART_MIS_PEMIS 0x00000100 // UART Parity Error Masked
- // Interrupt Status
-#define UART_MIS_FEMIS 0x00000080 // UART Framing Error Masked
- // Interrupt Status
-#define UART_MIS_RTMIS 0x00000040 // UART Receive Time-Out Masked
- // Interrupt Status
-#define UART_MIS_TXMIS 0x00000020 // UART Transmit Masked Interrupt
- // Status
-#define UART_MIS_RXMIS 0x00000010 // UART Receive Masked Interrupt
- // Status
-#define UART_MIS_DSRMIS 0x00000008 // UART Data Set Ready Modem Masked
- // Interrupt Status
-#define UART_MIS_DCDMIS 0x00000004 // UART Data Carrier Detect Modem
- // Masked Interrupt Status
-#define UART_MIS_CTSMIS 0x00000002 // UART Clear to Send Modem Masked
- // Interrupt Status
-#define UART_MIS_RIMIS 0x00000001 // UART Ring Indicator Modem Masked
- // Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_ICR register.
-//
-//*****************************************************************************
-#define UART_ICR_LME5IC 0x00008000 // LIN Mode Edge 5 Interrupt Clear
-#define UART_ICR_LME1IC 0x00004000 // LIN Mode Edge 1 Interrupt Clear
-#define UART_ICR_LMSBIC 0x00002000 // LIN Mode Sync Break Interrupt
- // Clear
-#define UART_ICR_9BITIC 0x00001000 // 9-Bit Mode Interrupt Clear
-#define UART_ICR_OEIC 0x00000400 // Overrun Error Interrupt Clear
-#define UART_ICR_BEIC 0x00000200 // Break Error Interrupt Clear
-#define UART_ICR_PEIC 0x00000100 // Parity Error Interrupt Clear
-#define UART_ICR_FEIC 0x00000080 // Framing Error Interrupt Clear
-#define UART_ICR_RTIC 0x00000040 // Receive Time-Out Interrupt Clear
-#define UART_ICR_TXIC 0x00000020 // Transmit Interrupt Clear
-#define UART_ICR_RXIC 0x00000010 // Receive Interrupt Clear
-#define UART_ICR_DSRMIC 0x00000008 // UART Data Set Ready Modem
- // Interrupt Clear
-#define UART_ICR_DCDMIC 0x00000004 // UART Data Carrier Detect Modem
- // Interrupt Clear
-#define UART_ICR_CTSMIC 0x00000002 // UART Clear to Send Modem
- // Interrupt Clear
-#define UART_ICR_RIMIC 0x00000001 // UART Ring Indicator Modem
- // Interrupt Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_DMACTL register.
-//
-//*****************************************************************************
-#define UART_DMACTL_DMAERR 0x00000004 // DMA on Error
-#define UART_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
-#define UART_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_LCTL register.
-//
-//*****************************************************************************
-#define UART_LCTL_BLEN_M 0x00000030 // Sync Break Length
-#define UART_LCTL_BLEN_13T 0x00000000 // Sync break length is 13T bits
- // (default)
-#define UART_LCTL_BLEN_14T 0x00000010 // Sync break length is 14T bits
-#define UART_LCTL_BLEN_15T 0x00000020 // Sync break length is 15T bits
-#define UART_LCTL_BLEN_16T 0x00000030 // Sync break length is 16T bits
-#define UART_LCTL_MASTER 0x00000001 // LIN Master Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_LSS register.
-//
-//*****************************************************************************
-#define UART_LSS_TSS_M 0x0000FFFF // Timer Snap Shot
-#define UART_LSS_TSS_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_LTIM register.
-//
-//*****************************************************************************
-#define UART_LTIM_TIMER_M 0x0000FFFF // Timer Value
-#define UART_LTIM_TIMER_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_9BITADDR
-// register.
-//
-//*****************************************************************************
-#define UART_9BITADDR_9BITEN 0x00008000 // Enable 9-Bit Mode
-#define UART_9BITADDR_ADDR_M 0x000000FF // Self Address for 9-Bit Mode
-#define UART_9BITADDR_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_9BITAMASK
-// register.
-//
-//*****************************************************************************
-#define UART_9BITAMASK_RANGE_M 0x0000FF00 // Self Address Range for 9-Bit
- // Mode
-#define UART_9BITAMASK_MASK_M 0x000000FF // Self Address Mask for 9-Bit Mode
-#define UART_9BITAMASK_RANGE_S 8
-#define UART_9BITAMASK_MASK_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_PP register.
-//
-//*****************************************************************************
-#define UART_PP_NB 0x00000002 // 9-Bit Support
-#define UART_PP_SC 0x00000001 // Smart Card Support
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UART_O_CC register.
-//
-//*****************************************************************************
-#define UART_CC_CS_M 0x0000000F // UART Baud Clock Source
-#define UART_CC_CS_SYSCLK 0x00000000 // The system clock (default)
-#define UART_CC_CS_PIOSC 0x00000001 // PIOSC
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MSA register.
-//
-//*****************************************************************************
-#define I2C_MSA_SA_M 0x000000FE // I2C Slave Address
-#define I2C_MSA_RS 0x00000001 // Receive not send
-#define I2C_MSA_SA_S 1
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_SOAR register.
-//
-//*****************************************************************************
-#define I2C_SOAR_OAR_M 0x0000007F // I2C Slave Own Address
-#define I2C_SOAR_OAR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_SCSR register.
-//
-//*****************************************************************************
-#define I2C_SCSR_OAR2SEL 0x00000008 // OAR2 Address Matched
-#define I2C_SCSR_FBR 0x00000004 // First Byte Received
-#define I2C_SCSR_TREQ 0x00000002 // Transmit Request
-#define I2C_SCSR_DA 0x00000001 // Device Active
-#define I2C_SCSR_RREQ 0x00000001 // Receive Request
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MCS register.
-//
-//*****************************************************************************
-#define I2C_MCS_CLKTO 0x00000080 // Clock Timeout Error
-#define I2C_MCS_BUSBSY 0x00000040 // Bus Busy
-#define I2C_MCS_IDLE 0x00000020 // I2C Idle
-#define I2C_MCS_ARBLST 0x00000010 // Arbitration Lost
-#define I2C_MCS_ACK 0x00000008 // Data Acknowledge Enable
-#define I2C_MCS_DATACK 0x00000008 // Acknowledge Data
-#define I2C_MCS_ADRACK 0x00000004 // Acknowledge Address
-#define I2C_MCS_STOP 0x00000004 // Generate STOP
-#define I2C_MCS_START 0x00000002 // Generate START
-#define I2C_MCS_ERROR 0x00000002 // Error
-#define I2C_MCS_RUN 0x00000001 // I2C Master Enable
-#define I2C_MCS_BUSY 0x00000001 // I2C Busy
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_SDR register.
-//
-//*****************************************************************************
-#define I2C_SDR_DATA_M 0x000000FF // Data for Transfer
-#define I2C_SDR_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MDR register.
-//
-//*****************************************************************************
-#define I2C_MDR_DATA_M 0x000000FF // Data Transferred
-#define I2C_MDR_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MTPR register.
-//
-//*****************************************************************************
-#define I2C_MTPR_TPR_M 0x0000007F // SCL Clock Period
-#define I2C_MTPR_TPR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_SIMR register.
-//
-//*****************************************************************************
-#define I2C_SIMR_STOPIM 0x00000004 // Stop Condition Interrupt Mask
-#define I2C_SIMR_STARTIM 0x00000002 // Start Condition Interrupt Mask
-#define I2C_SIMR_DATAIM 0x00000001 // Data Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_SRIS register.
-//
-//*****************************************************************************
-#define I2C_SRIS_STOPRIS 0x00000004 // Stop Condition Raw Interrupt
- // Status
-#define I2C_SRIS_STARTRIS 0x00000002 // Start Condition Raw Interrupt
- // Status
-#define I2C_SRIS_DATARIS 0x00000001 // Data Raw Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MIMR register.
-//
-//*****************************************************************************
-#define I2C_MIMR_CLKIM 0x00000002 // Clock Timeout Interrupt Mask
-#define I2C_MIMR_IM 0x00000001 // Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MRIS register.
-//
-//*****************************************************************************
-#define I2C_MRIS_CLKRIS 0x00000002 // Clock Timeout Raw Interrupt
- // Status
-#define I2C_MRIS_RIS 0x00000001 // Raw Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_SMIS register.
-//
-//*****************************************************************************
-#define I2C_SMIS_STOPMIS 0x00000004 // Stop Condition Masked Interrupt
- // Status
-#define I2C_SMIS_STARTMIS 0x00000002 // Start Condition Masked Interrupt
- // Status
-#define I2C_SMIS_DATAMIS 0x00000001 // Data Masked Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_SICR register.
-//
-//*****************************************************************************
-#define I2C_SICR_STOPIC 0x00000004 // Stop Condition Interrupt Clear
-#define I2C_SICR_STARTIC 0x00000002 // Start Condition Interrupt Clear
-#define I2C_SICR_DATAIC 0x00000001 // Data Interrupt Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MMIS register.
-//
-//*****************************************************************************
-#define I2C_MMIS_CLKMIS 0x00000002 // Clock Timeout Masked Interrupt
- // Status
-#define I2C_MMIS_MIS 0x00000001 // Masked Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MICR register.
-//
-//*****************************************************************************
-#define I2C_MICR_CLKIC 0x00000002 // Clock Timeout Interrupt Clear
-#define I2C_MICR_IC 0x00000001 // Interrupt Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_SOAR2 register.
-//
-//*****************************************************************************
-#define I2C_SOAR2_OAR2EN 0x00000080 // I2C Slave Own Address 2 Enable
-#define I2C_SOAR2_OAR2_M 0x0000007F // I2C Slave Own Address 2
-#define I2C_SOAR2_OAR2_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MCR register.
-//
-//*****************************************************************************
-#define I2C_MCR_SFE 0x00000020 // I2C Slave Function Enable
-#define I2C_MCR_MFE 0x00000010 // I2C Master Function Enable
-#define I2C_MCR_LPBK 0x00000001 // I2C Loopback
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_SACKCTL register.
-//
-//*****************************************************************************
-#define I2C_SACKCTL_ACKOVAL 0x00000002 // I2C Slave ACK Override Value
-#define I2C_SACKCTL_ACKOEN 0x00000001 // I2C Slave ACK Override Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MCLKOCNT register.
-//
-//*****************************************************************************
-#define I2C_MCLKOCNT_CNTL_M 0x000000FF // I2C Master Count
-#define I2C_MCLKOCNT_CNTL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_MBMON register.
-//
-//*****************************************************************************
-#define I2C_MBMON_SDA 0x00000002 // I2C SDA Status
-#define I2C_MBMON_SCL 0x00000001 // I2C SCL Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the I2C_O_PP register.
-//
-//*****************************************************************************
-#define I2C_PP_HS 0x00000001 // High-Speed Capable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_CTL register.
-//
-//*****************************************************************************
-#define PWM_CTL_GLOBALSYNC3 0x00000008 // Update PWM Generator 3
-#define PWM_CTL_GLOBALSYNC2 0x00000004 // Update PWM Generator 2
-#define PWM_CTL_GLOBALSYNC1 0x00000002 // Update PWM Generator 1
-#define PWM_CTL_GLOBALSYNC0 0x00000001 // Update PWM Generator 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_SYNC register.
-//
-//*****************************************************************************
-#define PWM_SYNC_SYNC3 0x00000008 // Reset Generator 3 Counter
-#define PWM_SYNC_SYNC2 0x00000004 // Reset Generator 2 Counter
-#define PWM_SYNC_SYNC1 0x00000002 // Reset Generator 1 Counter
-#define PWM_SYNC_SYNC0 0x00000001 // Reset Generator 0 Counter
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_ENABLE register.
-//
-//*****************************************************************************
-#define PWM_ENABLE_PWM7EN 0x00000080 // PWM7 Output Enable
-#define PWM_ENABLE_PWM6EN 0x00000040 // PWM6 Output Enable
-#define PWM_ENABLE_PWM5EN 0x00000020 // PWM5 Output Enable
-#define PWM_ENABLE_PWM4EN 0x00000010 // PWM4 Output Enable
-#define PWM_ENABLE_PWM3EN 0x00000008 // PWM3 Output Enable
-#define PWM_ENABLE_PWM2EN 0x00000004 // PWM2 Output Enable
-#define PWM_ENABLE_PWM1EN 0x00000002 // PWM1 Output Enable
-#define PWM_ENABLE_PWM0EN 0x00000001 // PWM0 Output Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_INVERT register.
-//
-//*****************************************************************************
-#define PWM_INVERT_PWM7INV 0x00000080 // Invert PWM7 Signal
-#define PWM_INVERT_PWM6INV 0x00000040 // Invert PWM6 Signal
-#define PWM_INVERT_PWM5INV 0x00000020 // Invert PWM5 Signal
-#define PWM_INVERT_PWM4INV 0x00000010 // Invert PWM4 Signal
-#define PWM_INVERT_PWM3INV 0x00000008 // Invert PWM3 Signal
-#define PWM_INVERT_PWM2INV 0x00000004 // Invert PWM2 Signal
-#define PWM_INVERT_PWM1INV 0x00000002 // Invert PWM1 Signal
-#define PWM_INVERT_PWM0INV 0x00000001 // Invert PWM0 Signal
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_FAULT register.
-//
-//*****************************************************************************
-#define PWM_FAULT_FAULT7 0x00000080 // PWM7 Fault
-#define PWM_FAULT_FAULT6 0x00000040 // PWM6 Fault
-#define PWM_FAULT_FAULT5 0x00000020 // PWM5 Fault
-#define PWM_FAULT_FAULT4 0x00000010 // PWM4 Fault
-#define PWM_FAULT_FAULT3 0x00000008 // PWM3 Fault
-#define PWM_FAULT_FAULT2 0x00000004 // PWM2 Fault
-#define PWM_FAULT_FAULT1 0x00000002 // PWM1 Fault
-#define PWM_FAULT_FAULT0 0x00000001 // PWM0 Fault
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_INTEN register.
-//
-//*****************************************************************************
-#define PWM_INTEN_INTFAULT3 0x00080000 // Interrupt Fault 3
-#define PWM_INTEN_INTFAULT2 0x00040000 // Interrupt Fault 2
-#define PWM_INTEN_INTFAULT1 0x00020000 // Interrupt Fault 1
-#define PWM_INTEN_INTFAULT0 0x00010000 // Interrupt Fault 0
-#define PWM_INTEN_INTPWM3 0x00000008 // PWM3 Interrupt Enable
-#define PWM_INTEN_INTPWM2 0x00000004 // PWM2 Interrupt Enable
-#define PWM_INTEN_INTPWM1 0x00000002 // PWM1 Interrupt Enable
-#define PWM_INTEN_INTPWM0 0x00000001 // PWM0 Interrupt Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_RIS register.
-//
-//*****************************************************************************
-#define PWM_RIS_INTFAULT3 0x00080000 // Interrupt Fault PWM 3
-#define PWM_RIS_INTFAULT2 0x00040000 // Interrupt Fault PWM 2
-#define PWM_RIS_INTFAULT1 0x00020000 // Interrupt Fault PWM 1
-#define PWM_RIS_INTFAULT0 0x00010000 // Interrupt Fault PWM 0
-#define PWM_RIS_INTPWM3 0x00000008 // PWM3 Interrupt Asserted
-#define PWM_RIS_INTPWM2 0x00000004 // PWM2 Interrupt Asserted
-#define PWM_RIS_INTPWM1 0x00000002 // PWM1 Interrupt Asserted
-#define PWM_RIS_INTPWM0 0x00000001 // PWM0 Interrupt Asserted
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_ISC register.
-//
-//*****************************************************************************
-#define PWM_ISC_INTFAULT3 0x00080000 // FAULT3 Interrupt Asserted
-#define PWM_ISC_INTFAULT2 0x00040000 // FAULT2 Interrupt Asserted
-#define PWM_ISC_INTFAULT1 0x00020000 // FAULT1 Interrupt Asserted
-#define PWM_ISC_INTFAULT0 0x00010000 // FAULT0 Interrupt Asserted
-#define PWM_ISC_INTPWM3 0x00000008 // PWM3 Interrupt Status
-#define PWM_ISC_INTPWM2 0x00000004 // PWM2 Interrupt Status
-#define PWM_ISC_INTPWM1 0x00000002 // PWM1 Interrupt Status
-#define PWM_ISC_INTPWM0 0x00000001 // PWM0 Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_STATUS register.
-//
-//*****************************************************************************
-#define PWM_STATUS_FAULT3 0x00000008 // Generator 3 Fault Status
-#define PWM_STATUS_FAULT2 0x00000004 // Generator 2 Fault Status
-#define PWM_STATUS_FAULT1 0x00000002 // Generator 1 Fault Status
-#define PWM_STATUS_FAULT0 0x00000001 // Generator 0 Fault Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_FAULTVAL register.
-//
-//*****************************************************************************
-#define PWM_FAULTVAL_PWM7 0x00000080 // PWM7 Fault Value
-#define PWM_FAULTVAL_PWM6 0x00000040 // PWM6 Fault Value
-#define PWM_FAULTVAL_PWM5 0x00000020 // PWM5 Fault Value
-#define PWM_FAULTVAL_PWM4 0x00000010 // PWM4 Fault Value
-#define PWM_FAULTVAL_PWM3 0x00000008 // PWM3 Fault Value
-#define PWM_FAULTVAL_PWM2 0x00000004 // PWM2 Fault Value
-#define PWM_FAULTVAL_PWM1 0x00000002 // PWM1 Fault Value
-#define PWM_FAULTVAL_PWM0 0x00000001 // PWM0 Fault Value
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_ENUPD register.
-//
-//*****************************************************************************
-#define PWM_ENUPD_ENUPD7_M 0x0000C000 // PWM7 Enable Update Mode
-#define PWM_ENUPD_ENUPD7_IMM 0x00000000 // Immediate
-#define PWM_ENUPD_ENUPD7_LSYNC 0x00008000 // Locally Synchronized
-#define PWM_ENUPD_ENUPD7_GSYNC 0x0000C000 // Globally Synchronized
-#define PWM_ENUPD_ENUPD6_M 0x00003000 // PWM6 Enable Update Mode
-#define PWM_ENUPD_ENUPD6_IMM 0x00000000 // Immediate
-#define PWM_ENUPD_ENUPD6_LSYNC 0x00002000 // Locally Synchronized
-#define PWM_ENUPD_ENUPD6_GSYNC 0x00003000 // Globally Synchronized
-#define PWM_ENUPD_ENUPD5_M 0x00000C00 // PWM5 Enable Update Mode
-#define PWM_ENUPD_ENUPD5_IMM 0x00000000 // Immediate
-#define PWM_ENUPD_ENUPD5_LSYNC 0x00000800 // Locally Synchronized
-#define PWM_ENUPD_ENUPD5_GSYNC 0x00000C00 // Globally Synchronized
-#define PWM_ENUPD_ENUPD4_M 0x00000300 // PWM4 Enable Update Mode
-#define PWM_ENUPD_ENUPD4_IMM 0x00000000 // Immediate
-#define PWM_ENUPD_ENUPD4_LSYNC 0x00000200 // Locally Synchronized
-#define PWM_ENUPD_ENUPD4_GSYNC 0x00000300 // Globally Synchronized
-#define PWM_ENUPD_ENUPD3_M 0x000000C0 // PWM3 Enable Update Mode
-#define PWM_ENUPD_ENUPD3_IMM 0x00000000 // Immediate
-#define PWM_ENUPD_ENUPD3_LSYNC 0x00000080 // Locally Synchronized
-#define PWM_ENUPD_ENUPD3_GSYNC 0x000000C0 // Globally Synchronized
-#define PWM_ENUPD_ENUPD2_M 0x00000030 // PWM2 Enable Update Mode
-#define PWM_ENUPD_ENUPD2_IMM 0x00000000 // Immediate
-#define PWM_ENUPD_ENUPD2_LSYNC 0x00000020 // Locally Synchronized
-#define PWM_ENUPD_ENUPD2_GSYNC 0x00000030 // Globally Synchronized
-#define PWM_ENUPD_ENUPD1_M 0x0000000C // PWM1 Enable Update Mode
-#define PWM_ENUPD_ENUPD1_IMM 0x00000000 // Immediate
-#define PWM_ENUPD_ENUPD1_LSYNC 0x00000008 // Locally Synchronized
-#define PWM_ENUPD_ENUPD1_GSYNC 0x0000000C // Globally Synchronized
-#define PWM_ENUPD_ENUPD0_M 0x00000003 // PWM0 Enable Update Mode
-#define PWM_ENUPD_ENUPD0_IMM 0x00000000 // Immediate
-#define PWM_ENUPD_ENUPD0_LSYNC 0x00000002 // Locally Synchronized
-#define PWM_ENUPD_ENUPD0_GSYNC 0x00000003 // Globally Synchronized
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_CTL register.
-//
-//*****************************************************************************
-#define PWM_X_CTL_LATCH 0x00040000 // Latch Fault Input
-#define PWM_X_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
-#define PWM_X_CTL_FLTSRC 0x00010000 // Fault Condition Source
-#define PWM_X_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
-#define PWM_X_CTL_DBFALLUPD_I 0x00000000 // Immediate
-#define PWM_X_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
-#define PWM_X_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
-#define PWM_X_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
-#define PWM_X_CTL_DBRISEUPD_I 0x00000000 // Immediate
-#define PWM_X_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
-#define PWM_X_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
-#define PWM_X_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
-#define PWM_X_CTL_DBCTLUPD_I 0x00000000 // Immediate
-#define PWM_X_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
-#define PWM_X_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
-#define PWM_X_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
-#define PWM_X_CTL_GENBUPD_I 0x00000000 // Immediate
-#define PWM_X_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
-#define PWM_X_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
-#define PWM_X_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
-#define PWM_X_CTL_GENAUPD_I 0x00000000 // Immediate
-#define PWM_X_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
-#define PWM_X_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
-#define PWM_X_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
-#define PWM_X_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
-#define PWM_X_CTL_LOADUPD 0x00000008 // Load Register Update Mode
-#define PWM_X_CTL_DEBUG 0x00000004 // Debug Mode
-#define PWM_X_CTL_MODE 0x00000002 // Counter Mode
-#define PWM_X_CTL_ENABLE 0x00000001 // PWM Block Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_INTEN register.
-//
-//*****************************************************************************
-#define PWM_X_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
- // Down
-#define PWM_X_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
-#define PWM_X_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
- // Down
-#define PWM_X_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
-#define PWM_X_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
-#define PWM_X_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
-#define PWM_X_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
- // Down
-#define PWM_X_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
- // Up
-#define PWM_X_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
- // Down
-#define PWM_X_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
- // Up
-#define PWM_X_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
-#define PWM_X_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_RIS register.
-//
-//*****************************************************************************
-#define PWM_X_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
- // Status
-#define PWM_X_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
-#define PWM_X_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
- // Status
-#define PWM_X_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
-#define PWM_X_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
-#define PWM_X_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_ISC register.
-//
-//*****************************************************************************
-#define PWM_X_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
-#define PWM_X_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
-#define PWM_X_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
-#define PWM_X_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
-#define PWM_X_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
-#define PWM_X_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_LOAD register.
-//
-//*****************************************************************************
-#define PWM_X_LOAD_M 0x0000FFFF // Counter Load Value
-#define PWM_X_LOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_COUNT register.
-//
-//*****************************************************************************
-#define PWM_X_COUNT_M 0x0000FFFF // Counter Value
-#define PWM_X_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_CMPA register.
-//
-//*****************************************************************************
-#define PWM_X_CMPA_M 0x0000FFFF // Comparator A Value
-#define PWM_X_CMPA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_CMPB register.
-//
-//*****************************************************************************
-#define PWM_X_CMPB_M 0x0000FFFF // Comparator B Value
-#define PWM_X_CMPB_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_GENA register.
-//
-//*****************************************************************************
-#define PWM_X_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
-#define PWM_X_GENA_ACTCMPBD_NONE \
- 0x00000000 // Do nothing
-#define PWM_X_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
-#define PWM_X_GENA_ACTCMPBD_ZERO \
- 0x00000800 // Drive pwmA Low
-#define PWM_X_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
-#define PWM_X_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
-#define PWM_X_GENA_ACTCMPBU_NONE \
- 0x00000000 // Do nothing
-#define PWM_X_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
-#define PWM_X_GENA_ACTCMPBU_ZERO \
- 0x00000200 // Drive pwmA Low
-#define PWM_X_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
-#define PWM_X_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
-#define PWM_X_GENA_ACTCMPAD_NONE \
- 0x00000000 // Do nothing
-#define PWM_X_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
-#define PWM_X_GENA_ACTCMPAD_ZERO \
- 0x00000080 // Drive pwmA Low
-#define PWM_X_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
-#define PWM_X_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
-#define PWM_X_GENA_ACTCMPAU_NONE \
- 0x00000000 // Do nothing
-#define PWM_X_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
-#define PWM_X_GENA_ACTCMPAU_ZERO \
- 0x00000020 // Drive pwmA Low
-#define PWM_X_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
-#define PWM_X_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
-#define PWM_X_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
-#define PWM_X_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
-#define PWM_X_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
-#define PWM_X_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
-#define PWM_X_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
-#define PWM_X_GENA_ACTZERO_NONE 0x00000000 // Do nothing
-#define PWM_X_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
-#define PWM_X_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
-#define PWM_X_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_GENB register.
-//
-//*****************************************************************************
-#define PWM_X_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
-#define PWM_X_GENB_ACTCMPBD_NONE \
- 0x00000000 // Do nothing
-#define PWM_X_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
-#define PWM_X_GENB_ACTCMPBD_ZERO \
- 0x00000800 // Drive pwmB Low
-#define PWM_X_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
-#define PWM_X_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
-#define PWM_X_GENB_ACTCMPBU_NONE \
- 0x00000000 // Do nothing
-#define PWM_X_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
-#define PWM_X_GENB_ACTCMPBU_ZERO \
- 0x00000200 // Drive pwmB Low
-#define PWM_X_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
-#define PWM_X_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
-#define PWM_X_GENB_ACTCMPAD_NONE \
- 0x00000000 // Do nothing
-#define PWM_X_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
-#define PWM_X_GENB_ACTCMPAD_ZERO \
- 0x00000080 // Drive pwmB Low
-#define PWM_X_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
-#define PWM_X_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
-#define PWM_X_GENB_ACTCMPAU_NONE \
- 0x00000000 // Do nothing
-#define PWM_X_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
-#define PWM_X_GENB_ACTCMPAU_ZERO \
- 0x00000020 // Drive pwmB Low
-#define PWM_X_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
-#define PWM_X_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
-#define PWM_X_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
-#define PWM_X_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
-#define PWM_X_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
-#define PWM_X_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
-#define PWM_X_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
-#define PWM_X_GENB_ACTZERO_NONE 0x00000000 // Do nothing
-#define PWM_X_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
-#define PWM_X_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
-#define PWM_X_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_DBCTL register.
-//
-//*****************************************************************************
-#define PWM_X_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_DBRISE register.
-//
-//*****************************************************************************
-#define PWM_X_DBRISE_DELAY_M 0x00000FFF // Dead-Band Rise Delay
-#define PWM_X_DBRISE_DELAY_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_DBFALL register.
-//
-//*****************************************************************************
-#define PWM_X_DBFALL_DELAY_M 0x00000FFF // Dead-Band Fall Delay
-#define PWM_X_DBFALL_DELAY_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_FLTSRC0
-// register.
-//
-//*****************************************************************************
-#define PWM_X_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
-#define PWM_X_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
-#define PWM_X_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
-#define PWM_X_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_FLTSRC1
-// register.
-//
-//*****************************************************************************
-#define PWM_X_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
-#define PWM_X_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
-#define PWM_X_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
-#define PWM_X_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
-#define PWM_X_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
-#define PWM_X_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
-#define PWM_X_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
-#define PWM_X_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_MINFLTPER
-// register.
-//
-//*****************************************************************************
-#define PWM_X_MINFLTPER_M 0x0000FFFF // Minimum Fault Period
-#define PWM_X_MINFLTPER_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_FLTSEN register.
-//
-//*****************************************************************************
-#define PWM_X_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
-#define PWM_X_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
-#define PWM_X_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
-#define PWM_X_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_FLTSTAT0
-// register.
-//
-//*****************************************************************************
-#define PWM_X_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
-#define PWM_X_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
-#define PWM_X_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
-#define PWM_X_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_X_FLTSTAT1
-// register.
-//
-//*****************************************************************************
-#define PWM_X_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
-#define PWM_X_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
-#define PWM_X_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
-#define PWM_X_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
-#define PWM_X_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
-#define PWM_X_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
-#define PWM_X_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
-#define PWM_X_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_PP register.
-//
-//*****************************************************************************
-#define PWM_PP_ONE 0x00000400 // One-Shot Mode
-#define PWM_PP_EFAULT 0x00000200 // Extended Fault
-#define PWM_PP_ESYNC 0x00000100 // Extended Synchronization
-#define PWM_PP_FCNT_M 0x000000F0 // Fault Inputs
-#define PWM_PP_GCNT_M 0x0000000F // Generators
-#define PWM_PP_FCNT_S 4
-#define PWM_PP_GCNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the PWM_O_PC register.
-//
-//*****************************************************************************
-#define PWM_PC_USEOPWMDIV 0x00000100 // Enable PWM Clock Divisor
-#define PWM_PC_PWMDIV_M 0x000000FF // PWM Clock Divisor
-#define PWM_PC_PWMDIV_2 0x00000000 // /2
-#define PWM_PC_PWMDIV_4 0x00000001 // /4
-#define PWM_PC_PWMDIV_8 0x00000002 // /8
-#define PWM_PC_PWMDIV_16 0x00000003 // /16
-#define PWM_PC_PWMDIV_32 0x00000004 // /32
-#define PWM_PC_PWMDIV_64 0x00000007 // /64 (default)
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_CTL register.
-//
-//*****************************************************************************
-#define QEI_CTL_FILTCNT_M 0x000F0000 // Input Filter Prescale Count
-#define QEI_CTL_FILTEN 0x00002000 // Enable Input Filter
-#define QEI_CTL_STALLEN 0x00001000 // Stall QEI
-#define QEI_CTL_INVI 0x00000800 // Invert Index Pulse
-#define QEI_CTL_INVB 0x00000400 // Invert PhB
-#define QEI_CTL_INVA 0x00000200 // Invert PhA
-#define QEI_CTL_VELDIV_M 0x000001C0 // Predivide Velocity
-#define QEI_CTL_VELDIV_1 0x00000000 // QEI clock /1
-#define QEI_CTL_VELDIV_2 0x00000040 // QEI clock /2
-#define QEI_CTL_VELDIV_4 0x00000080 // QEI clock /4
-#define QEI_CTL_VELDIV_8 0x000000C0 // QEI clock /8
-#define QEI_CTL_VELDIV_16 0x00000100 // QEI clock /16
-#define QEI_CTL_VELDIV_32 0x00000140 // QEI clock /32
-#define QEI_CTL_VELDIV_64 0x00000180 // QEI clock /64
-#define QEI_CTL_VELDIV_128 0x000001C0 // QEI clock /128
-#define QEI_CTL_VELEN 0x00000020 // Capture Velocity
-#define QEI_CTL_RESMODE 0x00000010 // Reset Mode
-#define QEI_CTL_CAPMODE 0x00000008 // Capture Mode
-#define QEI_CTL_SIGMODE 0x00000004 // Signal Mode
-#define QEI_CTL_SWAP 0x00000002 // Swap Signals
-#define QEI_CTL_ENABLE 0x00000001 // Enable QEI
-#define QEI_CTL_FILTCNT_S 16
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_STAT register.
-//
-//*****************************************************************************
-#define QEI_STAT_DIRECTION 0x00000002 // Direction of Rotation
-#define QEI_STAT_ERROR 0x00000001 // Error Detected
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_POS register.
-//
-//*****************************************************************************
-#define QEI_POS_M 0xFFFFFFFF // Current Position Integrator
- // Value
-#define QEI_POS_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_MAXPOS register.
-//
-//*****************************************************************************
-#define QEI_MAXPOS_M 0xFFFFFFFF // Maximum Position Integrator
- // Value
-#define QEI_MAXPOS_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_LOAD register.
-//
-//*****************************************************************************
-#define QEI_LOAD_M 0xFFFFFFFF // Velocity Timer Load Value
-#define QEI_LOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_TIME register.
-//
-//*****************************************************************************
-#define QEI_TIME_M 0xFFFFFFFF // Velocity Timer Current Value
-#define QEI_TIME_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_COUNT register.
-//
-//*****************************************************************************
-#define QEI_COUNT_M 0xFFFFFFFF // Velocity Pulse Count
-#define QEI_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_SPEED register.
-//
-//*****************************************************************************
-#define QEI_SPEED_M 0xFFFFFFFF // Velocity
-#define QEI_SPEED_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_INTEN register.
-//
-//*****************************************************************************
-#define QEI_INTEN_ERROR 0x00000008 // Phase Error Interrupt Enable
-#define QEI_INTEN_DIR 0x00000004 // Direction Change Interrupt
- // Enable
-#define QEI_INTEN_TIMER 0x00000002 // Timer Expires Interrupt Enable
-#define QEI_INTEN_INDEX 0x00000001 // Index Pulse Detected Interrupt
- // Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_RIS register.
-//
-//*****************************************************************************
-#define QEI_RIS_ERROR 0x00000008 // Phase Error Detected
-#define QEI_RIS_DIR 0x00000004 // Direction Change Detected
-#define QEI_RIS_TIMER 0x00000002 // Velocity Timer Expired
-#define QEI_RIS_INDEX 0x00000001 // Index Pulse Asserted
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the QEI_O_ISC register.
-//
-//*****************************************************************************
-#define QEI_ISC_ERROR 0x00000008 // Phase Error Interrupt
-#define QEI_ISC_DIR 0x00000004 // Direction Change Interrupt
-#define QEI_ISC_TIMER 0x00000002 // Velocity Timer Expired Interrupt
-#define QEI_ISC_INDEX 0x00000001 // Index Pulse Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_CFG register.
-//
-//*****************************************************************************
-#define TIMER_CFG_M 0x00000007 // GPTM Configuration
-#define TIMER_CFG_32_BIT_TIMER 0x00000000 // 32-bit timer configuration
-#define TIMER_CFG_32_BIT_RTC 0x00000001 // 32-bit real-time clock (RTC)
- // counter configuration
-#define TIMER_CFG_16_BIT 0x00000004 // 16-bit timer configuration. The
- // function is controlled by bits
- // 1:0 of GPTMTAMR and GPTMTBMR
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TAMR register.
-//
-//*****************************************************************************
-#define TIMER_TAMR_TAPLO 0x00000800 // GPTM Timer A PWM Legacy
- // Operation
-#define TIMER_TAMR_TAMRSU 0x00000400 // GPTM Timer A Match Register
- // Update
-#define TIMER_TAMR_TAPWMIE 0x00000200 // GPTM Timer A PWM Interrupt
- // Enable
-#define TIMER_TAMR_TAILD 0x00000100 // GPTM Timer A Interval Load Write
-#define TIMER_TAMR_TASNAPS 0x00000080 // GPTM Timer A Snap-Shot Mode
-#define TIMER_TAMR_TAWOT 0x00000040 // GPTM Timer A Wait-on-Trigger
-#define TIMER_TAMR_TAMIE 0x00000020 // GPTM Timer A Match Interrupt
- // Enable
-#define TIMER_TAMR_TACDIR 0x00000010 // GPTM Timer A Count Direction
-#define TIMER_TAMR_TAAMS 0x00000008 // GPTM Timer A Alternate Mode
- // Select
-#define TIMER_TAMR_TACMR 0x00000004 // GPTM Timer A Capture Mode
-#define TIMER_TAMR_TAMR_M 0x00000003 // GPTM Timer A Mode
-#define TIMER_TAMR_TAMR_1_SHOT 0x00000001 // One-Shot Timer mode
-#define TIMER_TAMR_TAMR_PERIOD 0x00000002 // Periodic Timer mode
-#define TIMER_TAMR_TAMR_CAP 0x00000003 // Capture mode
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TBMR register.
-//
-//*****************************************************************************
-#define TIMER_TBMR_TBPLO 0x00000800 // GPTM Timer B PWM Legacy
- // Operation
-#define TIMER_TBMR_TBMRSU 0x00000400 // GPTM Timer B Match Register
- // Update
-#define TIMER_TBMR_TBPWMIE 0x00000200 // GPTM Timer B PWM Interrupt
- // Enable
-#define TIMER_TBMR_TBILD 0x00000100 // GPTM Timer B Interval Load Write
-#define TIMER_TBMR_TBSNAPS 0x00000080 // GPTM Timer B Snap-Shot Mode
-#define TIMER_TBMR_TBWOT 0x00000040 // GPTM Timer B Wait-on-Trigger
-#define TIMER_TBMR_TBMIE 0x00000020 // GPTM Timer B Match Interrupt
- // Enable
-#define TIMER_TBMR_TBCDIR 0x00000010 // GPTM Timer B Count Direction
-#define TIMER_TBMR_TBAMS 0x00000008 // GPTM Timer B Alternate Mode
- // Select
-#define TIMER_TBMR_TBCMR 0x00000004 // GPTM Timer B Capture Mode
-#define TIMER_TBMR_TBMR_M 0x00000003 // GPTM Timer B Mode
-#define TIMER_TBMR_TBMR_1_SHOT 0x00000001 // One-Shot Timer mode
-#define TIMER_TBMR_TBMR_PERIOD 0x00000002 // Periodic Timer mode
-#define TIMER_TBMR_TBMR_CAP 0x00000003 // Capture mode
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_CTL register.
-//
-//*****************************************************************************
-#define TIMER_CTL_TBPWML 0x00004000 // GPTM Timer B PWM Output Level
-#define TIMER_CTL_TBOTE 0x00002000 // GPTM Timer B Output Trigger
- // Enable
-#define TIMER_CTL_TBEVENT_M 0x00000C00 // GPTM Timer B Event Mode
-#define TIMER_CTL_TBEVENT_POS 0x00000000 // Positive edge
-#define TIMER_CTL_TBEVENT_NEG 0x00000400 // Negative edge
-#define TIMER_CTL_TBEVENT_BOTH 0x00000C00 // Both edges
-#define TIMER_CTL_TBSTALL 0x00000200 // GPTM Timer B Stall Enable
-#define TIMER_CTL_TBEN 0x00000100 // GPTM Timer B Enable
-#define TIMER_CTL_TAPWML 0x00000040 // GPTM Timer A PWM Output Level
-#define TIMER_CTL_TAOTE 0x00000020 // GPTM Timer A Output Trigger
- // Enable
-#define TIMER_CTL_RTCEN 0x00000010 // GPTM RTC Enable
-#define TIMER_CTL_TAEVENT_M 0x0000000C // GPTM Timer A Event Mode
-#define TIMER_CTL_TAEVENT_POS 0x00000000 // Positive edge
-#define TIMER_CTL_TAEVENT_NEG 0x00000004 // Negative edge
-#define TIMER_CTL_TAEVENT_BOTH 0x0000000C // Both edges
-#define TIMER_CTL_TASTALL 0x00000002 // GPTM Timer A Stall Enable
-#define TIMER_CTL_TAEN 0x00000001 // GPTM Timer A Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_SYNC register.
-//
-//*****************************************************************************
-#define TIMER_SYNC_SYNCWT5_M 0x00C00000 // Synchronize GPTM 32/64-Bit Timer
- // 5
-#define TIMER_SYNC_SYNCWT5_NONE 0x00000000 // GPTM 32/64-Bit Timer 5 is not
- // affected
-#define TIMER_SYNC_SYNCWT5_TA 0x00400000 // A timeout event for Timer A of
- // GPTM 32/64-Bit Timer 5 is
- // triggered
-#define TIMER_SYNC_SYNCWT5_TB 0x00800000 // A timeout event for Timer B of
- // GPTM 32/64-Bit Timer 5 is
- // triggered
-#define TIMER_SYNC_SYNCWT5_TATB 0x00C00000 // A timeout event for both Timer A
- // and Timer B of GPTM 32/64-Bit
- // Timer 5 is triggered
-#define TIMER_SYNC_SYNCWT4_M 0x00300000 // Synchronize GPTM 32/64-Bit Timer
- // 4
-#define TIMER_SYNC_SYNCWT4_NONE 0x00000000 // GPTM 32/64-Bit Timer 4 is not
- // affected
-#define TIMER_SYNC_SYNCWT4_TA 0x00100000 // A timeout event for Timer A of
- // GPTM 32/64-Bit Timer 4 is
- // triggered
-#define TIMER_SYNC_SYNCWT4_TB 0x00200000 // A timeout event for Timer B of
- // GPTM 32/64-Bit Timer 4 is
- // triggered
-#define TIMER_SYNC_SYNCWT4_TATB 0x00300000 // A timeout event for both Timer A
- // and Timer B of GPTM 32/64-Bit
- // Timer 4 is triggered
-#define TIMER_SYNC_SYNCWT3_M 0x000C0000 // Synchronize GPTM 32/64-Bit Timer
- // 3
-#define TIMER_SYNC_SYNCWT3_NONE 0x00000000 // GPTM 32/64-Bit Timer 3 is not
- // affected
-#define TIMER_SYNC_SYNCWT3_TA 0x00040000 // A timeout event for Timer A of
- // GPTM 32/64-Bit Timer 3 is
- // triggered
-#define TIMER_SYNC_SYNCWT3_TB 0x00080000 // A timeout event for Timer B of
- // GPTM 32/64-Bit Timer 3 is
- // triggered
-#define TIMER_SYNC_SYNCWT3_TATB 0x000C0000 // A timeout event for both Timer A
- // and Timer B of GPTM 32/64-Bit
- // Timer 3 is triggered
-#define TIMER_SYNC_SYNCWT2_M 0x00030000 // Synchronize GPTM 32/64-Bit Timer
- // 2
-#define TIMER_SYNC_SYNCWT2_NONE 0x00000000 // GPTM 32/64-Bit Timer 2 is not
- // affected
-#define TIMER_SYNC_SYNCWT2_TA 0x00010000 // A timeout event for Timer A of
- // GPTM 32/64-Bit Timer 2 is
- // triggered
-#define TIMER_SYNC_SYNCWT2_TB 0x00020000 // A timeout event for Timer B of
- // GPTM 32/64-Bit Timer 2 is
- // triggered
-#define TIMER_SYNC_SYNCWT2_TATB 0x00030000 // A timeout event for both Timer A
- // and Timer B of GPTM 32/64-Bit
- // Timer 2 is triggered
-#define TIMER_SYNC_SYNCWT1_M 0x0000C000 // Synchronize GPTM 32/64-Bit Timer
- // 1
-#define TIMER_SYNC_SYNCWT1_NONE 0x00000000 // GPTM 32/64-Bit Timer 1 is not
- // affected
-#define TIMER_SYNC_SYNCWT1_TA 0x00004000 // A timeout event for Timer A of
- // GPTM 32/64-Bit Timer 1 is
- // triggered
-#define TIMER_SYNC_SYNCWT1_TB 0x00008000 // A timeout event for Timer B of
- // GPTM 32/64-Bit Timer 1 is
- // triggered
-#define TIMER_SYNC_SYNCWT1_TATB 0x0000C000 // A timeout event for both Timer A
- // and Timer B of GPTM 32/64-Bit
- // Timer 1 is triggered
-#define TIMER_SYNC_SYNCWT0_M 0x00003000 // Synchronize GPTM 32/64-Bit Timer
- // 0
-#define TIMER_SYNC_SYNCWT0_NONE 0x00000000 // GPTM 32/64-Bit Timer 0 is not
- // affected
-#define TIMER_SYNC_SYNCWT0_TA 0x00001000 // A timeout event for Timer A of
- // GPTM 32/64-Bit Timer 0 is
- // triggered
-#define TIMER_SYNC_SYNCWT0_TB 0x00002000 // A timeout event for Timer B of
- // GPTM 32/64-Bit Timer 0 is
- // triggered
-#define TIMER_SYNC_SYNCWT0_TATB 0x00003000 // A timeout event for both Timer A
- // and Timer B of GPTM 32/64-Bit
- // Timer 0 is triggered
-#define TIMER_SYNC_SYNCT5_M 0x00000C00 // Synchronize GPTM 16/32-Bit Timer
- // 5
-#define TIMER_SYNC_SYNCT5_NONE 0x00000000 // GPTM 16/32-Bit Timer 5 is not
- // affected
-#define TIMER_SYNC_SYNCT5_TA 0x00000400 // A timeout event for Timer A of
- // GPTM 16/32-Bit Timer 5 is
- // triggered
-#define TIMER_SYNC_SYNCT5_TB 0x00000800 // A timeout event for Timer B of
- // GPTM 16/32-Bit Timer 5 is
- // triggered
-#define TIMER_SYNC_SYNCT5_TATB 0x00000C00 // A timeout event for both Timer A
- // and Timer B of GPTM 16/32-Bit
- // Timer 5 is triggered
-#define TIMER_SYNC_SYNCT4_M 0x00000300 // Synchronize GPTM 16/32-Bit Timer
- // 4
-#define TIMER_SYNC_SYNCT4_NONE 0x00000000 // GPTM 16/32-Bit Timer 4 is not
- // affected
-#define TIMER_SYNC_SYNCT4_TA 0x00000100 // A timeout event for Timer A of
- // GPTM 16/32-Bit Timer 4 is
- // triggered
-#define TIMER_SYNC_SYNCT4_TB 0x00000200 // A timeout event for Timer B of
- // GPTM 16/32-Bit Timer 4 is
- // triggered
-#define TIMER_SYNC_SYNCT4_TATB 0x00000300 // A timeout event for both Timer A
- // and Timer B of GPTM 16/32-Bit
- // Timer 4 is triggered
-#define TIMER_SYNC_SYNCT3_M 0x000000C0 // Synchronize GPTM 16/32-Bit Timer
- // 3
-#define TIMER_SYNC_SYNCT3_NONE 0x00000000 // GPTM 16/32-Bit Timer 3 is not
- // affected
-#define TIMER_SYNC_SYNCT3_TA 0x00000040 // A timeout event for Timer A of
- // GPTM 16/32-Bit Timer 3 is
- // triggered
-#define TIMER_SYNC_SYNCT3_TB 0x00000080 // A timeout event for Timer B of
- // GPTM 16/32-Bit Timer 3 is
- // triggered
-#define TIMER_SYNC_SYNCT3_TATB 0x000000C0 // A timeout event for both Timer A
- // and Timer B of GPTM 16/32-Bit
- // Timer 3 is triggered
-#define TIMER_SYNC_SYNCT2_M 0x00000030 // Synchronize GPTM 16/32-Bit Timer
- // 2
-#define TIMER_SYNC_SYNCT2_NONE 0x00000000 // GPTM 16/32-Bit Timer 2 is not
- // affected
-#define TIMER_SYNC_SYNCT2_TA 0x00000010 // A timeout event for Timer A of
- // GPTM 16/32-Bit Timer 2 is
- // triggered
-#define TIMER_SYNC_SYNCT2_TB 0x00000020 // A timeout event for Timer B of
- // GPTM 16/32-Bit Timer 2 is
- // triggered
-#define TIMER_SYNC_SYNCT2_TATB 0x00000030 // A timeout event for both Timer A
- // and Timer B of GPTM 16/32-Bit
- // Timer 2 is triggered
-#define TIMER_SYNC_SYNCT1_M 0x0000000C // Synchronize GPTM 16/32-Bit Timer
- // 1
-#define TIMER_SYNC_SYNCT1_NONE 0x00000000 // GPTM 16/32-Bit Timer 1 is not
- // affected
-#define TIMER_SYNC_SYNCT1_TA 0x00000004 // A timeout event for Timer A of
- // GPTM 16/32-Bit Timer 1 is
- // triggered
-#define TIMER_SYNC_SYNCT1_TB 0x00000008 // A timeout event for Timer B of
- // GPTM 16/32-Bit Timer 1 is
- // triggered
-#define TIMER_SYNC_SYNCT1_TATB 0x0000000C // A timeout event for both Timer A
- // and Timer B of GPTM 16/32-Bit
- // Timer 1 is triggered
-#define TIMER_SYNC_SYNCT0_M 0x00000003 // Synchronize GPTM 16/32-Bit Timer
- // 0
-#define TIMER_SYNC_SYNCT0_NONE 0x00000000 // GPTM 16/32-Bit Timer 0 is not
- // affected
-#define TIMER_SYNC_SYNCT0_TA 0x00000001 // A timeout event for Timer A of
- // GPTM 16/32-Bit Timer 0 is
- // triggered
-#define TIMER_SYNC_SYNCT0_TB 0x00000002 // A timeout event for Timer B of
- // GPTM 16/32-Bit Timer 0 is
- // triggered
-#define TIMER_SYNC_SYNCT0_TATB 0x00000003 // A timeout event for both Timer A
- // and Timer B of GPTM 16/32-Bit
- // Timer 0 is triggered
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_IMR register.
-//
-//*****************************************************************************
-#define TIMER_IMR_WUEIM 0x00010000 // 32/64-Bit GPTM Write Update
- // Error Interrupt Mask
-#define TIMER_IMR_TBMIM 0x00000800 // GPTM Timer B Mode Match
- // Interrupt Mask
-#define TIMER_IMR_CBEIM 0x00000400 // GPTM Capture B Event Interrupt
- // Mask
-#define TIMER_IMR_CBMIM 0x00000200 // GPTM Capture B Match Interrupt
- // Mask
-#define TIMER_IMR_TBTOIM 0x00000100 // GPTM Timer B Time-Out Interrupt
- // Mask
-#define TIMER_IMR_TAMIM 0x00000010 // GPTM Timer A Mode Match
- // Interrupt Mask
-#define TIMER_IMR_RTCIM 0x00000008 // GPTM RTC Interrupt Mask
-#define TIMER_IMR_CAEIM 0x00000004 // GPTM Capture A Event Interrupt
- // Mask
-#define TIMER_IMR_CAMIM 0x00000002 // GPTM Capture A Match Interrupt
- // Mask
-#define TIMER_IMR_TATOIM 0x00000001 // GPTM Timer A Time-Out Interrupt
- // Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_RIS register.
-//
-//*****************************************************************************
-#define TIMER_RIS_WUERIS 0x00010000 // 32/64-Bit GPTM Write Update
- // Error Raw Interrupt Status
-#define TIMER_RIS_TBMRIS 0x00000800 // GPTM Timer B Mode Match Raw
- // Interrupt
-#define TIMER_RIS_CBERIS 0x00000400 // GPTM Capture B Event Raw
- // Interrupt
-#define TIMER_RIS_CBMRIS 0x00000200 // GPTM Capture B Match Raw
- // Interrupt
-#define TIMER_RIS_TBTORIS 0x00000100 // GPTM Timer B Time-Out Raw
- // Interrupt
-#define TIMER_RIS_TAMRIS 0x00000010 // GPTM Timer A Mode Match Raw
- // Interrupt
-#define TIMER_RIS_RTCRIS 0x00000008 // GPTM RTC Raw Interrupt
-#define TIMER_RIS_CAERIS 0x00000004 // GPTM Capture A Event Raw
- // Interrupt
-#define TIMER_RIS_CAMRIS 0x00000002 // GPTM Capture A Match Raw
- // Interrupt
-#define TIMER_RIS_TATORIS 0x00000001 // GPTM Timer A Time-Out Raw
- // Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_MIS register.
-//
-//*****************************************************************************
-#define TIMER_MIS_WUEMIS 0x00010000 // 32/64-Bit GPTM Write Update
- // Error Masked Interrupt Status
-#define TIMER_MIS_TBMMIS 0x00000800 // GPTM Timer B Mode Match Masked
- // Interrupt
-#define TIMER_MIS_CBEMIS 0x00000400 // GPTM Capture B Event Masked
- // Interrupt
-#define TIMER_MIS_CBMMIS 0x00000200 // GPTM Capture B Match Masked
- // Interrupt
-#define TIMER_MIS_TBTOMIS 0x00000100 // GPTM Timer B Time-Out Masked
- // Interrupt
-#define TIMER_MIS_TAMMIS 0x00000010 // GPTM Timer A Mode Match Masked
- // Interrupt
-#define TIMER_MIS_RTCMIS 0x00000008 // GPTM RTC Masked Interrupt
-#define TIMER_MIS_CAEMIS 0x00000004 // GPTM Capture A Event Masked
- // Interrupt
-#define TIMER_MIS_CAMMIS 0x00000002 // GPTM Capture A Match Masked
- // Interrupt
-#define TIMER_MIS_TATOMIS 0x00000001 // GPTM Timer A Time-Out Masked
- // Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_ICR register.
-//
-//*****************************************************************************
-#define TIMER_ICR_WUECINT 0x00010000 // 32/64-Bit GPTM Write Update
- // Error Interrupt Clear
-#define TIMER_ICR_TBMCINT 0x00000800 // GPTM Timer B Mode Match
- // Interrupt Clear
-#define TIMER_ICR_CBECINT 0x00000400 // GPTM Capture B Event Interrupt
- // Clear
-#define TIMER_ICR_CBMCINT 0x00000200 // GPTM Capture B Match Interrupt
- // Clear
-#define TIMER_ICR_TBTOCINT 0x00000100 // GPTM Timer B Time-Out Interrupt
- // Clear
-#define TIMER_ICR_TAMCINT 0x00000010 // GPTM Timer A Mode Match
- // Interrupt Clear
-#define TIMER_ICR_RTCCINT 0x00000008 // GPTM RTC Interrupt Clear
-#define TIMER_ICR_CAECINT 0x00000004 // GPTM Capture A Event Interrupt
- // Clear
-#define TIMER_ICR_CAMCINT 0x00000002 // GPTM Capture A Match Interrupt
- // Clear
-#define TIMER_ICR_TATOCINT 0x00000001 // GPTM Timer A Time-Out Raw
- // Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TAILR register.
-//
-//*****************************************************************************
-#define TIMER_TAILR_M 0xFFFFFFFF // GPTM Timer A Interval Load
- // Register
-#define TIMER_TAILR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TBILR register.
-//
-//*****************************************************************************
-#define TIMER_TBILR_M 0xFFFFFFFF // GPTM Timer B Interval Load
- // Register
-#define TIMER_TBILR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TAMATCHR
-// register.
-//
-//*****************************************************************************
-#define TIMER_TAMATCHR_TAMR_M 0xFFFFFFFF // GPTM Timer A Match Register
-#define TIMER_TAMATCHR_TAMR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TBMATCHR
-// register.
-//
-//*****************************************************************************
-#define TIMER_TBMATCHR_TBMR_M 0xFFFFFFFF // GPTM Timer B Match Register
-#define TIMER_TBMATCHR_TBMR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TAPR register.
-//
-//*****************************************************************************
-#define TIMER_TAPR_TAPSRH_M 0x0000FF00 // GPTM Timer A Prescale High Byte
-#define TIMER_TAPR_TAPSR_M 0x000000FF // GPTM Timer A Prescale
-#define TIMER_TAPR_TAPSRH_S 8
-#define TIMER_TAPR_TAPSR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TBPR register.
-//
-//*****************************************************************************
-#define TIMER_TBPR_TBPSRH_M 0x0000FF00 // GPTM Timer B Prescale High Byte
-#define TIMER_TBPR_TBPSR_M 0x000000FF // GPTM Timer B Prescale
-#define TIMER_TBPR_TBPSRH_S 8
-#define TIMER_TBPR_TBPSR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TAPMR register.
-//
-//*****************************************************************************
-#define TIMER_TAPMR_TAPSMRH_M 0x0000FF00 // GPTM Timer A Prescale Match High
- // Byte
-#define TIMER_TAPMR_TAPSMR_M 0x000000FF // GPTM TimerA Prescale Match
-#define TIMER_TAPMR_TAPSMRH_S 8
-#define TIMER_TAPMR_TAPSMR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TBPMR register.
-//
-//*****************************************************************************
-#define TIMER_TBPMR_TBPSMRH_M 0x0000FF00 // GPTM Timer B Prescale Match High
- // Byte
-#define TIMER_TBPMR_TBPSMR_M 0x000000FF // GPTM TimerB Prescale Match
-#define TIMER_TBPMR_TBPSMRH_S 8
-#define TIMER_TBPMR_TBPSMR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TAR register.
-//
-//*****************************************************************************
-#define TIMER_TAR_M 0xFFFFFFFF // GPTM Timer A Register
-#define TIMER_TAR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TBR register.
-//
-//*****************************************************************************
-#define TIMER_TBR_M 0xFFFFFFFF // GPTM Timer B Register
-#define TIMER_TBR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TAV register.
-//
-//*****************************************************************************
-#define TIMER_TAV_M 0xFFFFFFFF // GPTM Timer A Value
-#define TIMER_TAV_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TBV register.
-//
-//*****************************************************************************
-#define TIMER_TBV_M 0xFFFFFFFF // GPTM Timer B Value
-#define TIMER_TBV_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_RTCPD register.
-//
-//*****************************************************************************
-#define TIMER_RTCPD_RTCPD_M 0x0000FFFF // RTC Predivide Counter Value
-#define TIMER_RTCPD_RTCPD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TAPS register.
-//
-//*****************************************************************************
-#define TIMER_TAPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Snapshot
-#define TIMER_TAPS_PSS_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TBPS register.
-//
-//*****************************************************************************
-#define TIMER_TBPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Value
-#define TIMER_TBPS_PSS_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TAPV register.
-//
-//*****************************************************************************
-#define TIMER_TAPV_PSV_M 0x0000FFFF // GPTM Timer A Prescaler Value
-#define TIMER_TAPV_PSV_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_TBPV register.
-//
-//*****************************************************************************
-#define TIMER_TBPV_PSV_M 0x0000FFFF // GPTM Timer B Prescaler Value
-#define TIMER_TBPV_PSV_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the TIMER_O_PP register.
-//
-//*****************************************************************************
-#define TIMER_PP_SIZE_M 0x0000000F // Count Size
-#define TIMER_PP_SIZE_16 0x00000000 // Timer A and Timer B counters are
- // 16 bits each with an 8-bit
- // prescale counter
-#define TIMER_PP_SIZE_32 0x00000001 // Timer A and Timer B counters are
- // 32 bits each with a 16-bit
- // prescale counter
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_ACTSS register.
-//
-//*****************************************************************************
-#define ADC_ACTSS_ASEN3 0x00000008 // ADC SS3 Enable
-#define ADC_ACTSS_ASEN2 0x00000004 // ADC SS2 Enable
-#define ADC_ACTSS_ASEN1 0x00000002 // ADC SS1 Enable
-#define ADC_ACTSS_ASEN0 0x00000001 // ADC SS0 Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_RIS register.
-//
-//*****************************************************************************
-#define ADC_RIS_INRDC 0x00010000 // Digital Comparator Raw Interrupt
- // Status
-#define ADC_RIS_INR3 0x00000008 // SS3 Raw Interrupt Status
-#define ADC_RIS_INR2 0x00000004 // SS2 Raw Interrupt Status
-#define ADC_RIS_INR1 0x00000002 // SS1 Raw Interrupt Status
-#define ADC_RIS_INR0 0x00000001 // SS0 Raw Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_IM register.
-//
-//*****************************************************************************
-#define ADC_IM_DCONSS3 0x00080000 // Digital Comparator Interrupt on
- // SS3
-#define ADC_IM_DCONSS2 0x00040000 // Digital Comparator Interrupt on
- // SS2
-#define ADC_IM_DCONSS1 0x00020000 // Digital Comparator Interrupt on
- // SS1
-#define ADC_IM_DCONSS0 0x00010000 // Digital Comparator Interrupt on
- // SS0
-#define ADC_IM_MASK3 0x00000008 // SS3 Interrupt Mask
-#define ADC_IM_MASK2 0x00000004 // SS2 Interrupt Mask
-#define ADC_IM_MASK1 0x00000002 // SS1 Interrupt Mask
-#define ADC_IM_MASK0 0x00000001 // SS0 Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_ISC register.
-//
-//*****************************************************************************
-#define ADC_ISC_DCINSS3 0x00080000 // Digital Comparator Interrupt
- // Status on SS3
-#define ADC_ISC_DCINSS2 0x00040000 // Digital Comparator Interrupt
- // Status on SS2
-#define ADC_ISC_DCINSS1 0x00020000 // Digital Comparator Interrupt
- // Status on SS1
-#define ADC_ISC_DCINSS0 0x00010000 // Digital Comparator Interrupt
- // Status on SS0
-#define ADC_ISC_IN3 0x00000008 // SS3 Interrupt Status and Clear
-#define ADC_ISC_IN2 0x00000004 // SS2 Interrupt Status and Clear
-#define ADC_ISC_IN1 0x00000002 // SS1 Interrupt Status and Clear
-#define ADC_ISC_IN0 0x00000001 // SS0 Interrupt Status and Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_OSTAT register.
-//
-//*****************************************************************************
-#define ADC_OSTAT_OV3 0x00000008 // SS3 FIFO Overflow
-#define ADC_OSTAT_OV2 0x00000004 // SS2 FIFO Overflow
-#define ADC_OSTAT_OV1 0x00000002 // SS1 FIFO Overflow
-#define ADC_OSTAT_OV0 0x00000001 // SS0 FIFO Overflow
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_EMUX register.
-//
-//*****************************************************************************
-#define ADC_EMUX_EM3_M 0x0000F000 // SS3 Trigger Select
-#define ADC_EMUX_EM3_PROCESSOR 0x00000000 // Processor (default)
-#define ADC_EMUX_EM3_COMP0 0x00001000 // Analog Comparator 0
-#define ADC_EMUX_EM3_COMP1 0x00002000 // Analog Comparator 1
-#define ADC_EMUX_EM3_COMP2 0x00003000 // Analog Comparator 2
-#define ADC_EMUX_EM3_EXTERNAL 0x00004000 // External (GPIO PB4)
-#define ADC_EMUX_EM3_TIMER 0x00005000 // Timer
-#define ADC_EMUX_EM3_PWM0 0x00006000 // PWM0
-#define ADC_EMUX_EM3_PWM1 0x00007000 // PWM1
-#define ADC_EMUX_EM3_PWM2 0x00008000 // PWM2
-#define ADC_EMUX_EM3_PWM3 0x00009000 // PWM3
-#define ADC_EMUX_EM3_ALWAYS 0x0000F000 // Always (continuously sample)
-#define ADC_EMUX_EM2_M 0x00000F00 // SS2 Trigger Select
-#define ADC_EMUX_EM2_PROCESSOR 0x00000000 // Processor (default)
-#define ADC_EMUX_EM2_COMP0 0x00000100 // Analog Comparator 0
-#define ADC_EMUX_EM2_COMP1 0x00000200 // Analog Comparator 1
-#define ADC_EMUX_EM2_COMP2 0x00000300 // Analog Comparator 2
-#define ADC_EMUX_EM2_EXTERNAL 0x00000400 // External (GPIO PB4)
-#define ADC_EMUX_EM2_TIMER 0x00000500 // Timer
-#define ADC_EMUX_EM2_PWM0 0x00000600 // PWM0
-#define ADC_EMUX_EM2_PWM1 0x00000700 // PWM1
-#define ADC_EMUX_EM2_PWM2 0x00000800 // PWM2
-#define ADC_EMUX_EM2_PWM3 0x00000900 // PWM3
-#define ADC_EMUX_EM2_ALWAYS 0x00000F00 // Always (continuously sample)
-#define ADC_EMUX_EM1_M 0x000000F0 // SS1 Trigger Select
-#define ADC_EMUX_EM1_PROCESSOR 0x00000000 // Processor (default)
-#define ADC_EMUX_EM1_COMP0 0x00000010 // Analog Comparator 0
-#define ADC_EMUX_EM1_COMP1 0x00000020 // Analog Comparator 1
-#define ADC_EMUX_EM1_COMP2 0x00000030 // Analog Comparator 2
-#define ADC_EMUX_EM1_EXTERNAL 0x00000040 // External (GPIO PB4)
-#define ADC_EMUX_EM1_TIMER 0x00000050 // Timer
-#define ADC_EMUX_EM1_PWM0 0x00000060 // PWM0
-#define ADC_EMUX_EM1_PWM1 0x00000070 // PWM1
-#define ADC_EMUX_EM1_PWM2 0x00000080 // PWM2
-#define ADC_EMUX_EM1_PWM3 0x00000090 // PWM3
-#define ADC_EMUX_EM1_ALWAYS 0x000000F0 // Always (continuously sample)
-#define ADC_EMUX_EM0_M 0x0000000F // SS0 Trigger Select
-#define ADC_EMUX_EM0_PROCESSOR 0x00000000 // Processor (default)
-#define ADC_EMUX_EM0_COMP0 0x00000001 // Analog Comparator 0
-#define ADC_EMUX_EM0_COMP1 0x00000002 // Analog Comparator 1
-#define ADC_EMUX_EM0_COMP2 0x00000003 // Analog Comparator 2
-#define ADC_EMUX_EM0_EXTERNAL 0x00000004 // External (GPIO PB4)
-#define ADC_EMUX_EM0_TIMER 0x00000005 // Timer
-#define ADC_EMUX_EM0_PWM0 0x00000006 // PWM0
-#define ADC_EMUX_EM0_PWM1 0x00000007 // PWM1
-#define ADC_EMUX_EM0_PWM2 0x00000008 // PWM2
-#define ADC_EMUX_EM0_PWM3 0x00000009 // PWM3
-#define ADC_EMUX_EM0_ALWAYS 0x0000000F // Always (continuously sample)
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_USTAT register.
-//
-//*****************************************************************************
-#define ADC_USTAT_UV3 0x00000008 // SS3 FIFO Underflow
-#define ADC_USTAT_UV2 0x00000004 // SS2 FIFO Underflow
-#define ADC_USTAT_UV1 0x00000002 // SS1 FIFO Underflow
-#define ADC_USTAT_UV0 0x00000001 // SS0 FIFO Underflow
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_TSSEL register.
-//
-//*****************************************************************************
-#define ADC_TSSEL_PS3_M 0x03000000 // PWM Unit Select
-#define ADC_TSSEL_PS3_0 0x00000000 // PWM Unit 0
-#define ADC_TSSEL_PS3_1 0x01000000 // PWM Unit 1
-#define ADC_TSSEL_PS2_M 0x00030000 // PWM Unit Select
-#define ADC_TSSEL_PS2_0 0x00000000 // PWM Unit 0
-#define ADC_TSSEL_PS2_1 0x00010000 // PWM Unit 1
-#define ADC_TSSEL_PS1_M 0x00000300 // PWM Unit Select
-#define ADC_TSSEL_PS1_0 0x00000000 // PWM Unit 0
-#define ADC_TSSEL_PS1_1 0x00000100 // PWM Unit 1
-#define ADC_TSSEL_PS0_M 0x00000003 // PWM Unit Select
-#define ADC_TSSEL_PS0_0 0x00000000 // PWM Unit 0
-#define ADC_TSSEL_PS0_1 0x00000001 // PWM Unit 1
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSPRI register.
-//
-//*****************************************************************************
-#define ADC_SSPRI_SS3_M 0x00003000 // SS3 Priority
-#define ADC_SSPRI_SS3_1ST 0x00000000 // First priority
-#define ADC_SSPRI_SS3_2ND 0x00001000 // Second priority
-#define ADC_SSPRI_SS3_3RD 0x00002000 // Third priority
-#define ADC_SSPRI_SS3_4TH 0x00003000 // Fourth priority
-#define ADC_SSPRI_SS2_M 0x00000300 // SS2 Priority
-#define ADC_SSPRI_SS2_1ST 0x00000000 // First priority
-#define ADC_SSPRI_SS2_2ND 0x00000100 // Second priority
-#define ADC_SSPRI_SS2_3RD 0x00000200 // Third priority
-#define ADC_SSPRI_SS2_4TH 0x00000300 // Fourth priority
-#define ADC_SSPRI_SS1_M 0x00000030 // SS1 Priority
-#define ADC_SSPRI_SS1_1ST 0x00000000 // First priority
-#define ADC_SSPRI_SS1_2ND 0x00000010 // Second priority
-#define ADC_SSPRI_SS1_3RD 0x00000020 // Third priority
-#define ADC_SSPRI_SS1_4TH 0x00000030 // Fourth priority
-#define ADC_SSPRI_SS0_M 0x00000003 // SS0 Priority
-#define ADC_SSPRI_SS0_1ST 0x00000000 // First priority
-#define ADC_SSPRI_SS0_2ND 0x00000001 // Second priority
-#define ADC_SSPRI_SS0_3RD 0x00000002 // Third priority
-#define ADC_SSPRI_SS0_4TH 0x00000003 // Fourth priority
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SPC register.
-//
-//*****************************************************************************
-#define ADC_SPC_PHASE_M 0x0000000F // Phase Difference
-#define ADC_SPC_PHASE_0 0x00000000 // ADC sample lags by 0.0
-#define ADC_SPC_PHASE_22_5 0x00000001 // ADC sample lags by 22.5
-#define ADC_SPC_PHASE_45 0x00000002 // ADC sample lags by 45.0
-#define ADC_SPC_PHASE_67_5 0x00000003 // ADC sample lags by 67.5
-#define ADC_SPC_PHASE_90 0x00000004 // ADC sample lags by 90.0
-#define ADC_SPC_PHASE_112_5 0x00000005 // ADC sample lags by 112.5
-#define ADC_SPC_PHASE_135 0x00000006 // ADC sample lags by 135.0
-#define ADC_SPC_PHASE_157_5 0x00000007 // ADC sample lags by 157.5
-#define ADC_SPC_PHASE_180 0x00000008 // ADC sample lags by 180.0
-#define ADC_SPC_PHASE_202_5 0x00000009 // ADC sample lags by 202.5
-#define ADC_SPC_PHASE_225 0x0000000A // ADC sample lags by 225.0
-#define ADC_SPC_PHASE_247_5 0x0000000B // ADC sample lags by 247.5
-#define ADC_SPC_PHASE_270 0x0000000C // ADC sample lags by 270.0
-#define ADC_SPC_PHASE_292_5 0x0000000D // ADC sample lags by 292.5
-#define ADC_SPC_PHASE_315 0x0000000E // ADC sample lags by 315.0
-#define ADC_SPC_PHASE_337_5 0x0000000F // ADC sample lags by 337.5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_PSSI register.
-//
-//*****************************************************************************
-#define ADC_PSSI_GSYNC 0x80000000 // Global Synchronize
-#define ADC_PSSI_SYNCWAIT 0x08000000 // Synchronize Wait
-#define ADC_PSSI_SS3 0x00000008 // SS3 Initiate
-#define ADC_PSSI_SS2 0x00000004 // SS2 Initiate
-#define ADC_PSSI_SS1 0x00000002 // SS1 Initiate
-#define ADC_PSSI_SS0 0x00000001 // SS0 Initiate
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SAC register.
-//
-//*****************************************************************************
-#define ADC_SAC_AVG_M 0x00000007 // Hardware Averaging Control
-#define ADC_SAC_AVG_OFF 0x00000000 // No hardware oversampling
-#define ADC_SAC_AVG_2X 0x00000001 // 2x hardware oversampling
-#define ADC_SAC_AVG_4X 0x00000002 // 4x hardware oversampling
-#define ADC_SAC_AVG_8X 0x00000003 // 8x hardware oversampling
-#define ADC_SAC_AVG_16X 0x00000004 // 16x hardware oversampling
-#define ADC_SAC_AVG_32X 0x00000005 // 32x hardware oversampling
-#define ADC_SAC_AVG_64X 0x00000006 // 64x hardware oversampling
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCISC register.
-//
-//*****************************************************************************
-#define ADC_DCISC_DCINT7 0x00000080 // Digital Comparator 7 Interrupt
- // Status and Clear
-#define ADC_DCISC_DCINT6 0x00000040 // Digital Comparator 6 Interrupt
- // Status and Clear
-#define ADC_DCISC_DCINT5 0x00000020 // Digital Comparator 5 Interrupt
- // Status and Clear
-#define ADC_DCISC_DCINT4 0x00000010 // Digital Comparator 4 Interrupt
- // Status and Clear
-#define ADC_DCISC_DCINT3 0x00000008 // Digital Comparator 3 Interrupt
- // Status and Clear
-#define ADC_DCISC_DCINT2 0x00000004 // Digital Comparator 2 Interrupt
- // Status and Clear
-#define ADC_DCISC_DCINT1 0x00000002 // Digital Comparator 1 Interrupt
- // Status and Clear
-#define ADC_DCISC_DCINT0 0x00000001 // Digital Comparator 0 Interrupt
- // Status and Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_CTL register.
-//
-//*****************************************************************************
-#define ADC_CTL_VREF_M 0x00000003 // Voltage Reference Select
-#define ADC_CTL_VREF_INTERNAL 0x00000000 // The internal reference as the
- // voltage reference
-#define ADC_CTL_VREF_EXT_3V 0x00000001 // A 3.0 V external VREFA input is
- // the voltage reference. The ADC
- // conversion range is 0.0 V to the
- // external reference value
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSMUX0 register.
-//
-//*****************************************************************************
-#define ADC_SSMUX0_MUX7_M 0xF0000000 // 8th Sample Input Select
-#define ADC_SSMUX0_MUX6_M 0x0F000000 // 7th Sample Input Select
-#define ADC_SSMUX0_MUX5_M 0x00F00000 // 6th Sample Input Select
-#define ADC_SSMUX0_MUX4_M 0x000F0000 // 5th Sample Input Select
-#define ADC_SSMUX0_MUX3_M 0x0000F000 // 4th Sample Input Select
-#define ADC_SSMUX0_MUX2_M 0x00000F00 // 3rd Sample Input Select
-#define ADC_SSMUX0_MUX1_M 0x000000F0 // 2nd Sample Input Select
-#define ADC_SSMUX0_MUX0_M 0x0000000F // 1st Sample Input Select
-#define ADC_SSMUX0_MUX7_S 28
-#define ADC_SSMUX0_MUX6_S 24
-#define ADC_SSMUX0_MUX5_S 20
-#define ADC_SSMUX0_MUX4_S 16
-#define ADC_SSMUX0_MUX3_S 12
-#define ADC_SSMUX0_MUX2_S 8
-#define ADC_SSMUX0_MUX1_S 4
-#define ADC_SSMUX0_MUX0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSCTL0 register.
-//
-//*****************************************************************************
-#define ADC_SSCTL0_TS7 0x80000000 // 8th Sample Temp Sensor Select
-#define ADC_SSCTL0_IE7 0x40000000 // 8th Sample Interrupt Enable
-#define ADC_SSCTL0_END7 0x20000000 // 8th Sample is End of Sequence
-#define ADC_SSCTL0_D7 0x10000000 // 8th Sample Diff Input Select
-#define ADC_SSCTL0_TS6 0x08000000 // 7th Sample Temp Sensor Select
-#define ADC_SSCTL0_IE6 0x04000000 // 7th Sample Interrupt Enable
-#define ADC_SSCTL0_END6 0x02000000 // 7th Sample is End of Sequence
-#define ADC_SSCTL0_D6 0x01000000 // 7th Sample Diff Input Select
-#define ADC_SSCTL0_TS5 0x00800000 // 6th Sample Temp Sensor Select
-#define ADC_SSCTL0_IE5 0x00400000 // 6th Sample Interrupt Enable
-#define ADC_SSCTL0_END5 0x00200000 // 6th Sample is End of Sequence
-#define ADC_SSCTL0_D5 0x00100000 // 6th Sample Diff Input Select
-#define ADC_SSCTL0_TS4 0x00080000 // 5th Sample Temp Sensor Select
-#define ADC_SSCTL0_IE4 0x00040000 // 5th Sample Interrupt Enable
-#define ADC_SSCTL0_END4 0x00020000 // 5th Sample is End of Sequence
-#define ADC_SSCTL0_D4 0x00010000 // 5th Sample Diff Input Select
-#define ADC_SSCTL0_TS3 0x00008000 // 4th Sample Temp Sensor Select
-#define ADC_SSCTL0_IE3 0x00004000 // 4th Sample Interrupt Enable
-#define ADC_SSCTL0_END3 0x00002000 // 4th Sample is End of Sequence
-#define ADC_SSCTL0_D3 0x00001000 // 4th Sample Diff Input Select
-#define ADC_SSCTL0_TS2 0x00000800 // 3rd Sample Temp Sensor Select
-#define ADC_SSCTL0_IE2 0x00000400 // 3rd Sample Interrupt Enable
-#define ADC_SSCTL0_END2 0x00000200 // 3rd Sample is End of Sequence
-#define ADC_SSCTL0_D2 0x00000100 // 3rd Sample Diff Input Select
-#define ADC_SSCTL0_TS1 0x00000080 // 2nd Sample Temp Sensor Select
-#define ADC_SSCTL0_IE1 0x00000040 // 2nd Sample Interrupt Enable
-#define ADC_SSCTL0_END1 0x00000020 // 2nd Sample is End of Sequence
-#define ADC_SSCTL0_D1 0x00000010 // 2nd Sample Diff Input Select
-#define ADC_SSCTL0_TS0 0x00000008 // 1st Sample Temp Sensor Select
-#define ADC_SSCTL0_IE0 0x00000004 // 1st Sample Interrupt Enable
-#define ADC_SSCTL0_END0 0x00000002 // 1st Sample is End of Sequence
-#define ADC_SSCTL0_D0 0x00000001 // 1st Sample Diff Input Select
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSFIFO0 register.
-//
-//*****************************************************************************
-#define ADC_SSFIFO0_DATA_M 0x00000FFF // Conversion Result Data
-#define ADC_SSFIFO0_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSFSTAT0 register.
-//
-//*****************************************************************************
-#define ADC_SSFSTAT0_FULL 0x00001000 // FIFO Full
-#define ADC_SSFSTAT0_EMPTY 0x00000100 // FIFO Empty
-#define ADC_SSFSTAT0_HPTR_M 0x000000F0 // FIFO Head Pointer
-#define ADC_SSFSTAT0_TPTR_M 0x0000000F // FIFO Tail Pointer
-#define ADC_SSFSTAT0_HPTR_S 4
-#define ADC_SSFSTAT0_TPTR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSOP0 register.
-//
-//*****************************************************************************
-#define ADC_SSOP0_S7DCOP 0x10000000 // Sample 7 Digital Comparator
- // Operation
-#define ADC_SSOP0_S6DCOP 0x01000000 // Sample 6 Digital Comparator
- // Operation
-#define ADC_SSOP0_S5DCOP 0x00100000 // Sample 5 Digital Comparator
- // Operation
-#define ADC_SSOP0_S4DCOP 0x00010000 // Sample 4 Digital Comparator
- // Operation
-#define ADC_SSOP0_S3DCOP 0x00001000 // Sample 3 Digital Comparator
- // Operation
-#define ADC_SSOP0_S2DCOP 0x00000100 // Sample 2 Digital Comparator
- // Operation
-#define ADC_SSOP0_S1DCOP 0x00000010 // Sample 1 Digital Comparator
- // Operation
-#define ADC_SSOP0_S0DCOP 0x00000001 // Sample 0 Digital Comparator
- // Operation
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSDC0 register.
-//
-//*****************************************************************************
-#define ADC_SSDC0_S7DCSEL_M 0xF0000000 // Sample 7 Digital Comparator
- // Select
-#define ADC_SSDC0_S6DCSEL_M 0x0F000000 // Sample 6 Digital Comparator
- // Select
-#define ADC_SSDC0_S5DCSEL_M 0x00F00000 // Sample 5 Digital Comparator
- // Select
-#define ADC_SSDC0_S4DCSEL_M 0x000F0000 // Sample 4 Digital Comparator
- // Select
-#define ADC_SSDC0_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
- // Select
-#define ADC_SSDC0_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
- // Select
-#define ADC_SSDC0_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
- // Select
-#define ADC_SSDC0_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
- // Select
-#define ADC_SSDC0_S6DCSEL_S 24
-#define ADC_SSDC0_S5DCSEL_S 20
-#define ADC_SSDC0_S4DCSEL_S 16
-#define ADC_SSDC0_S3DCSEL_S 12
-#define ADC_SSDC0_S2DCSEL_S 8
-#define ADC_SSDC0_S1DCSEL_S 4
-#define ADC_SSDC0_S0DCSEL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSEMUX0 register.
-//
-//*****************************************************************************
-#define ADC_SSEMUX0_EMUX7 0x10000000 // 8th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX0_EMUX6 0x01000000 // 7th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX0_EMUX5 0x00100000 // 6th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX0_EMUX4 0x00010000 // 5th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX0_EMUX3 0x00001000 // 4th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX0_EMUX2 0x00000100 // 3rd Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX0_EMUX1 0x00000010 // 2th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX0_EMUX0 0x00000001 // 1st Sample Input Select (Upper
- // Bit)
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSMUX1 register.
-//
-//*****************************************************************************
-#define ADC_SSMUX1_MUX3_M 0x0000F000 // 4th Sample Input Select
-#define ADC_SSMUX1_MUX2_M 0x00000F00 // 3rd Sample Input Select
-#define ADC_SSMUX1_MUX1_M 0x000000F0 // 2nd Sample Input Select
-#define ADC_SSMUX1_MUX0_M 0x0000000F // 1st Sample Input Select
-#define ADC_SSMUX1_MUX3_S 12
-#define ADC_SSMUX1_MUX2_S 8
-#define ADC_SSMUX1_MUX1_S 4
-#define ADC_SSMUX1_MUX0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSCTL1 register.
-//
-//*****************************************************************************
-#define ADC_SSCTL1_TS3 0x00008000 // 4th Sample Temp Sensor Select
-#define ADC_SSCTL1_IE3 0x00004000 // 4th Sample Interrupt Enable
-#define ADC_SSCTL1_END3 0x00002000 // 4th Sample is End of Sequence
-#define ADC_SSCTL1_D3 0x00001000 // 4th Sample Diff Input Select
-#define ADC_SSCTL1_TS2 0x00000800 // 3rd Sample Temp Sensor Select
-#define ADC_SSCTL1_IE2 0x00000400 // 3rd Sample Interrupt Enable
-#define ADC_SSCTL1_END2 0x00000200 // 3rd Sample is End of Sequence
-#define ADC_SSCTL1_D2 0x00000100 // 3rd Sample Diff Input Select
-#define ADC_SSCTL1_TS1 0x00000080 // 2nd Sample Temp Sensor Select
-#define ADC_SSCTL1_IE1 0x00000040 // 2nd Sample Interrupt Enable
-#define ADC_SSCTL1_END1 0x00000020 // 2nd Sample is End of Sequence
-#define ADC_SSCTL1_D1 0x00000010 // 2nd Sample Diff Input Select
-#define ADC_SSCTL1_TS0 0x00000008 // 1st Sample Temp Sensor Select
-#define ADC_SSCTL1_IE0 0x00000004 // 1st Sample Interrupt Enable
-#define ADC_SSCTL1_END0 0x00000002 // 1st Sample is End of Sequence
-#define ADC_SSCTL1_D0 0x00000001 // 1st Sample Diff Input Select
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSFIFO1 register.
-//
-//*****************************************************************************
-#define ADC_SSFIFO1_DATA_M 0x00000FFF // Conversion Result Data
-#define ADC_SSFIFO1_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSFSTAT1 register.
-//
-//*****************************************************************************
-#define ADC_SSFSTAT1_FULL 0x00001000 // FIFO Full
-#define ADC_SSFSTAT1_EMPTY 0x00000100 // FIFO Empty
-#define ADC_SSFSTAT1_HPTR_M 0x000000F0 // FIFO Head Pointer
-#define ADC_SSFSTAT1_TPTR_M 0x0000000F // FIFO Tail Pointer
-#define ADC_SSFSTAT1_HPTR_S 4
-#define ADC_SSFSTAT1_TPTR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSOP1 register.
-//
-//*****************************************************************************
-#define ADC_SSOP1_S3DCOP 0x00001000 // Sample 3 Digital Comparator
- // Operation
-#define ADC_SSOP1_S2DCOP 0x00000100 // Sample 2 Digital Comparator
- // Operation
-#define ADC_SSOP1_S1DCOP 0x00000010 // Sample 1 Digital Comparator
- // Operation
-#define ADC_SSOP1_S0DCOP 0x00000001 // Sample 0 Digital Comparator
- // Operation
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSDC1 register.
-//
-//*****************************************************************************
-#define ADC_SSDC1_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
- // Select
-#define ADC_SSDC1_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
- // Select
-#define ADC_SSDC1_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
- // Select
-#define ADC_SSDC1_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
- // Select
-#define ADC_SSDC1_S2DCSEL_S 8
-#define ADC_SSDC1_S1DCSEL_S 4
-#define ADC_SSDC1_S0DCSEL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSEMUX1 register.
-//
-//*****************************************************************************
-#define ADC_SSEMUX1_EMUX3 0x00001000 // 4th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX1_EMUX2 0x00000100 // 3rd Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX1_EMUX1 0x00000010 // 2th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX1_EMUX0 0x00000001 // 1st Sample Input Select (Upper
- // Bit)
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSMUX2 register.
-//
-//*****************************************************************************
-#define ADC_SSMUX2_MUX3_M 0x0000F000 // 4th Sample Input Select
-#define ADC_SSMUX2_MUX2_M 0x00000F00 // 3rd Sample Input Select
-#define ADC_SSMUX2_MUX1_M 0x000000F0 // 2nd Sample Input Select
-#define ADC_SSMUX2_MUX0_M 0x0000000F // 1st Sample Input Select
-#define ADC_SSMUX2_MUX3_S 12
-#define ADC_SSMUX2_MUX2_S 8
-#define ADC_SSMUX2_MUX1_S 4
-#define ADC_SSMUX2_MUX0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSCTL2 register.
-//
-//*****************************************************************************
-#define ADC_SSCTL2_TS3 0x00008000 // 4th Sample Temp Sensor Select
-#define ADC_SSCTL2_IE3 0x00004000 // 4th Sample Interrupt Enable
-#define ADC_SSCTL2_END3 0x00002000 // 4th Sample is End of Sequence
-#define ADC_SSCTL2_D3 0x00001000 // 4th Sample Diff Input Select
-#define ADC_SSCTL2_TS2 0x00000800 // 3rd Sample Temp Sensor Select
-#define ADC_SSCTL2_IE2 0x00000400 // 3rd Sample Interrupt Enable
-#define ADC_SSCTL2_END2 0x00000200 // 3rd Sample is End of Sequence
-#define ADC_SSCTL2_D2 0x00000100 // 3rd Sample Diff Input Select
-#define ADC_SSCTL2_TS1 0x00000080 // 2nd Sample Temp Sensor Select
-#define ADC_SSCTL2_IE1 0x00000040 // 2nd Sample Interrupt Enable
-#define ADC_SSCTL2_END1 0x00000020 // 2nd Sample is End of Sequence
-#define ADC_SSCTL2_D1 0x00000010 // 2nd Sample Diff Input Select
-#define ADC_SSCTL2_TS0 0x00000008 // 1st Sample Temp Sensor Select
-#define ADC_SSCTL2_IE0 0x00000004 // 1st Sample Interrupt Enable
-#define ADC_SSCTL2_END0 0x00000002 // 1st Sample is End of Sequence
-#define ADC_SSCTL2_D0 0x00000001 // 1st Sample Diff Input Select
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSFIFO2 register.
-//
-//*****************************************************************************
-#define ADC_SSFIFO2_DATA_M 0x00000FFF // Conversion Result Data
-#define ADC_SSFIFO2_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSFSTAT2 register.
-//
-//*****************************************************************************
-#define ADC_SSFSTAT2_FULL 0x00001000 // FIFO Full
-#define ADC_SSFSTAT2_EMPTY 0x00000100 // FIFO Empty
-#define ADC_SSFSTAT2_HPTR_M 0x000000F0 // FIFO Head Pointer
-#define ADC_SSFSTAT2_TPTR_M 0x0000000F // FIFO Tail Pointer
-#define ADC_SSFSTAT2_HPTR_S 4
-#define ADC_SSFSTAT2_TPTR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSOP2 register.
-//
-//*****************************************************************************
-#define ADC_SSOP2_S3DCOP 0x00001000 // Sample 3 Digital Comparator
- // Operation
-#define ADC_SSOP2_S2DCOP 0x00000100 // Sample 2 Digital Comparator
- // Operation
-#define ADC_SSOP2_S1DCOP 0x00000010 // Sample 1 Digital Comparator
- // Operation
-#define ADC_SSOP2_S0DCOP 0x00000001 // Sample 0 Digital Comparator
- // Operation
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSDC2 register.
-//
-//*****************************************************************************
-#define ADC_SSDC2_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
- // Select
-#define ADC_SSDC2_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
- // Select
-#define ADC_SSDC2_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
- // Select
-#define ADC_SSDC2_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
- // Select
-#define ADC_SSDC2_S2DCSEL_S 8
-#define ADC_SSDC2_S1DCSEL_S 4
-#define ADC_SSDC2_S0DCSEL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSEMUX2 register.
-//
-//*****************************************************************************
-#define ADC_SSEMUX2_EMUX3 0x00001000 // 4th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX2_EMUX2 0x00000100 // 3rd Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX2_EMUX1 0x00000010 // 2th Sample Input Select (Upper
- // Bit)
-#define ADC_SSEMUX2_EMUX0 0x00000001 // 1st Sample Input Select (Upper
- // Bit)
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSMUX3 register.
-//
-//*****************************************************************************
-#define ADC_SSMUX3_MUX0_M 0x0000000F // 1st Sample Input Select
-#define ADC_SSMUX3_MUX0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSCTL3 register.
-//
-//*****************************************************************************
-#define ADC_SSCTL3_TS0 0x00000008 // 1st Sample Temp Sensor Select
-#define ADC_SSCTL3_IE0 0x00000004 // 1st Sample Interrupt Enable
-#define ADC_SSCTL3_END0 0x00000002 // 1st Sample is End of Sequence
-#define ADC_SSCTL3_D0 0x00000001 // 1st Sample Diff Input Select
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSFIFO3 register.
-//
-//*****************************************************************************
-#define ADC_SSFIFO3_DATA_M 0x00000FFF // Conversion Result Data
-#define ADC_SSFIFO3_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSFSTAT3 register.
-//
-//*****************************************************************************
-#define ADC_SSFSTAT3_FULL 0x00001000 // FIFO Full
-#define ADC_SSFSTAT3_EMPTY 0x00000100 // FIFO Empty
-#define ADC_SSFSTAT3_HPTR_M 0x000000F0 // FIFO Head Pointer
-#define ADC_SSFSTAT3_TPTR_M 0x0000000F // FIFO Tail Pointer
-#define ADC_SSFSTAT3_HPTR_S 4
-#define ADC_SSFSTAT3_TPTR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSOP3 register.
-//
-//*****************************************************************************
-#define ADC_SSOP3_S0DCOP 0x00000001 // Sample 0 Digital Comparator
- // Operation
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSDC3 register.
-//
-//*****************************************************************************
-#define ADC_SSDC3_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
- // Select
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_SSEMUX3 register.
-//
-//*****************************************************************************
-#define ADC_SSEMUX3_EMUX0 0x00000001 // 1st Sample Input Select (Upper
- // Bit)
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCRIC register.
-//
-//*****************************************************************************
-#define ADC_DCRIC_DCTRIG7 0x00800000 // Digital Comparator Trigger 7
-#define ADC_DCRIC_DCTRIG6 0x00400000 // Digital Comparator Trigger 6
-#define ADC_DCRIC_DCTRIG5 0x00200000 // Digital Comparator Trigger 5
-#define ADC_DCRIC_DCTRIG4 0x00100000 // Digital Comparator Trigger 4
-#define ADC_DCRIC_DCTRIG3 0x00080000 // Digital Comparator Trigger 3
-#define ADC_DCRIC_DCTRIG2 0x00040000 // Digital Comparator Trigger 2
-#define ADC_DCRIC_DCTRIG1 0x00020000 // Digital Comparator Trigger 1
-#define ADC_DCRIC_DCTRIG0 0x00010000 // Digital Comparator Trigger 0
-#define ADC_DCRIC_DCINT7 0x00000080 // Digital Comparator Interrupt 7
-#define ADC_DCRIC_DCINT6 0x00000040 // Digital Comparator Interrupt 6
-#define ADC_DCRIC_DCINT5 0x00000020 // Digital Comparator Interrupt 5
-#define ADC_DCRIC_DCINT4 0x00000010 // Digital Comparator Interrupt 4
-#define ADC_DCRIC_DCINT3 0x00000008 // Digital Comparator Interrupt 3
-#define ADC_DCRIC_DCINT2 0x00000004 // Digital Comparator Interrupt 2
-#define ADC_DCRIC_DCINT1 0x00000002 // Digital Comparator Interrupt 1
-#define ADC_DCRIC_DCINT0 0x00000001 // Digital Comparator Interrupt 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCTL0 register.
-//
-//*****************************************************************************
-#define ADC_DCCTL0_CTE 0x00001000 // Comparison Trigger Enable
-#define ADC_DCCTL0_CTC_M 0x00000C00 // Comparison Trigger Condition
-#define ADC_DCCTL0_CTC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL0_CTC_MID 0x00000400 // Mid Band
-#define ADC_DCCTL0_CTC_HIGH 0x00000C00 // High Band
-#define ADC_DCCTL0_CTM_M 0x00000300 // Comparison Trigger Mode
-#define ADC_DCCTL0_CTM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL0_CTM_ONCE 0x00000100 // Once
-#define ADC_DCCTL0_CTM_HALWAYS 0x00000200 // Hysteresis Always
-#define ADC_DCCTL0_CTM_HONCE 0x00000300 // Hysteresis Once
-#define ADC_DCCTL0_CIE 0x00000010 // Comparison Interrupt Enable
-#define ADC_DCCTL0_CIC_M 0x0000000C // Comparison Interrupt Condition
-#define ADC_DCCTL0_CIC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL0_CIC_MID 0x00000004 // Mid Band
-#define ADC_DCCTL0_CIC_HIGH 0x0000000C // High Band
-#define ADC_DCCTL0_CIM_M 0x00000003 // Comparison Interrupt Mode
-#define ADC_DCCTL0_CIM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL0_CIM_ONCE 0x00000001 // Once
-#define ADC_DCCTL0_CIM_HALWAYS 0x00000002 // Hysteresis Always
-#define ADC_DCCTL0_CIM_HONCE 0x00000003 // Hysteresis Once
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCTL1 register.
-//
-//*****************************************************************************
-#define ADC_DCCTL1_CTE 0x00001000 // Comparison Trigger Enable
-#define ADC_DCCTL1_CTC_M 0x00000C00 // Comparison Trigger Condition
-#define ADC_DCCTL1_CTC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL1_CTC_MID 0x00000400 // Mid Band
-#define ADC_DCCTL1_CTC_HIGH 0x00000C00 // High Band
-#define ADC_DCCTL1_CTM_M 0x00000300 // Comparison Trigger Mode
-#define ADC_DCCTL1_CTM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL1_CTM_ONCE 0x00000100 // Once
-#define ADC_DCCTL1_CTM_HALWAYS 0x00000200 // Hysteresis Always
-#define ADC_DCCTL1_CTM_HONCE 0x00000300 // Hysteresis Once
-#define ADC_DCCTL1_CIE 0x00000010 // Comparison Interrupt Enable
-#define ADC_DCCTL1_CIC_M 0x0000000C // Comparison Interrupt Condition
-#define ADC_DCCTL1_CIC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL1_CIC_MID 0x00000004 // Mid Band
-#define ADC_DCCTL1_CIC_HIGH 0x0000000C // High Band
-#define ADC_DCCTL1_CIM_M 0x00000003 // Comparison Interrupt Mode
-#define ADC_DCCTL1_CIM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL1_CIM_ONCE 0x00000001 // Once
-#define ADC_DCCTL1_CIM_HALWAYS 0x00000002 // Hysteresis Always
-#define ADC_DCCTL1_CIM_HONCE 0x00000003 // Hysteresis Once
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCTL2 register.
-//
-//*****************************************************************************
-#define ADC_DCCTL2_CTE 0x00001000 // Comparison Trigger Enable
-#define ADC_DCCTL2_CTC_M 0x00000C00 // Comparison Trigger Condition
-#define ADC_DCCTL2_CTC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL2_CTC_MID 0x00000400 // Mid Band
-#define ADC_DCCTL2_CTC_HIGH 0x00000C00 // High Band
-#define ADC_DCCTL2_CTM_M 0x00000300 // Comparison Trigger Mode
-#define ADC_DCCTL2_CTM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL2_CTM_ONCE 0x00000100 // Once
-#define ADC_DCCTL2_CTM_HALWAYS 0x00000200 // Hysteresis Always
-#define ADC_DCCTL2_CTM_HONCE 0x00000300 // Hysteresis Once
-#define ADC_DCCTL2_CIE 0x00000010 // Comparison Interrupt Enable
-#define ADC_DCCTL2_CIC_M 0x0000000C // Comparison Interrupt Condition
-#define ADC_DCCTL2_CIC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL2_CIC_MID 0x00000004 // Mid Band
-#define ADC_DCCTL2_CIC_HIGH 0x0000000C // High Band
-#define ADC_DCCTL2_CIM_M 0x00000003 // Comparison Interrupt Mode
-#define ADC_DCCTL2_CIM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL2_CIM_ONCE 0x00000001 // Once
-#define ADC_DCCTL2_CIM_HALWAYS 0x00000002 // Hysteresis Always
-#define ADC_DCCTL2_CIM_HONCE 0x00000003 // Hysteresis Once
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCTL3 register.
-//
-//*****************************************************************************
-#define ADC_DCCTL3_CTE 0x00001000 // Comparison Trigger Enable
-#define ADC_DCCTL3_CTC_M 0x00000C00 // Comparison Trigger Condition
-#define ADC_DCCTL3_CTC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL3_CTC_MID 0x00000400 // Mid Band
-#define ADC_DCCTL3_CTC_HIGH 0x00000C00 // High Band
-#define ADC_DCCTL3_CTM_M 0x00000300 // Comparison Trigger Mode
-#define ADC_DCCTL3_CTM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL3_CTM_ONCE 0x00000100 // Once
-#define ADC_DCCTL3_CTM_HALWAYS 0x00000200 // Hysteresis Always
-#define ADC_DCCTL3_CTM_HONCE 0x00000300 // Hysteresis Once
-#define ADC_DCCTL3_CIE 0x00000010 // Comparison Interrupt Enable
-#define ADC_DCCTL3_CIC_M 0x0000000C // Comparison Interrupt Condition
-#define ADC_DCCTL3_CIC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL3_CIC_MID 0x00000004 // Mid Band
-#define ADC_DCCTL3_CIC_HIGH 0x0000000C // High Band
-#define ADC_DCCTL3_CIM_M 0x00000003 // Comparison Interrupt Mode
-#define ADC_DCCTL3_CIM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL3_CIM_ONCE 0x00000001 // Once
-#define ADC_DCCTL3_CIM_HALWAYS 0x00000002 // Hysteresis Always
-#define ADC_DCCTL3_CIM_HONCE 0x00000003 // Hysteresis Once
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCTL4 register.
-//
-//*****************************************************************************
-#define ADC_DCCTL4_CTE 0x00001000 // Comparison Trigger Enable
-#define ADC_DCCTL4_CTC_M 0x00000C00 // Comparison Trigger Condition
-#define ADC_DCCTL4_CTC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL4_CTC_MID 0x00000400 // Mid Band
-#define ADC_DCCTL4_CTC_HIGH 0x00000C00 // High Band
-#define ADC_DCCTL4_CTM_M 0x00000300 // Comparison Trigger Mode
-#define ADC_DCCTL4_CTM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL4_CTM_ONCE 0x00000100 // Once
-#define ADC_DCCTL4_CTM_HALWAYS 0x00000200 // Hysteresis Always
-#define ADC_DCCTL4_CTM_HONCE 0x00000300 // Hysteresis Once
-#define ADC_DCCTL4_CIE 0x00000010 // Comparison Interrupt Enable
-#define ADC_DCCTL4_CIC_M 0x0000000C // Comparison Interrupt Condition
-#define ADC_DCCTL4_CIC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL4_CIC_MID 0x00000004 // Mid Band
-#define ADC_DCCTL4_CIC_HIGH 0x0000000C // High Band
-#define ADC_DCCTL4_CIM_M 0x00000003 // Comparison Interrupt Mode
-#define ADC_DCCTL4_CIM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL4_CIM_ONCE 0x00000001 // Once
-#define ADC_DCCTL4_CIM_HALWAYS 0x00000002 // Hysteresis Always
-#define ADC_DCCTL4_CIM_HONCE 0x00000003 // Hysteresis Once
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCTL5 register.
-//
-//*****************************************************************************
-#define ADC_DCCTL5_CTE 0x00001000 // Comparison Trigger Enable
-#define ADC_DCCTL5_CTC_M 0x00000C00 // Comparison Trigger Condition
-#define ADC_DCCTL5_CTC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL5_CTC_MID 0x00000400 // Mid Band
-#define ADC_DCCTL5_CTC_HIGH 0x00000C00 // High Band
-#define ADC_DCCTL5_CTM_M 0x00000300 // Comparison Trigger Mode
-#define ADC_DCCTL5_CTM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL5_CTM_ONCE 0x00000100 // Once
-#define ADC_DCCTL5_CTM_HALWAYS 0x00000200 // Hysteresis Always
-#define ADC_DCCTL5_CTM_HONCE 0x00000300 // Hysteresis Once
-#define ADC_DCCTL5_CIE 0x00000010 // Comparison Interrupt Enable
-#define ADC_DCCTL5_CIC_M 0x0000000C // Comparison Interrupt Condition
-#define ADC_DCCTL5_CIC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL5_CIC_MID 0x00000004 // Mid Band
-#define ADC_DCCTL5_CIC_HIGH 0x0000000C // High Band
-#define ADC_DCCTL5_CIM_M 0x00000003 // Comparison Interrupt Mode
-#define ADC_DCCTL5_CIM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL5_CIM_ONCE 0x00000001 // Once
-#define ADC_DCCTL5_CIM_HALWAYS 0x00000002 // Hysteresis Always
-#define ADC_DCCTL5_CIM_HONCE 0x00000003 // Hysteresis Once
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCTL6 register.
-//
-//*****************************************************************************
-#define ADC_DCCTL6_CTE 0x00001000 // Comparison Trigger Enable
-#define ADC_DCCTL6_CTC_M 0x00000C00 // Comparison Trigger Condition
-#define ADC_DCCTL6_CTC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL6_CTC_MID 0x00000400 // Mid Band
-#define ADC_DCCTL6_CTC_HIGH 0x00000C00 // High Band
-#define ADC_DCCTL6_CTM_M 0x00000300 // Comparison Trigger Mode
-#define ADC_DCCTL6_CTM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL6_CTM_ONCE 0x00000100 // Once
-#define ADC_DCCTL6_CTM_HALWAYS 0x00000200 // Hysteresis Always
-#define ADC_DCCTL6_CTM_HONCE 0x00000300 // Hysteresis Once
-#define ADC_DCCTL6_CIE 0x00000010 // Comparison Interrupt Enable
-#define ADC_DCCTL6_CIC_M 0x0000000C // Comparison Interrupt Condition
-#define ADC_DCCTL6_CIC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL6_CIC_MID 0x00000004 // Mid Band
-#define ADC_DCCTL6_CIC_HIGH 0x0000000C // High Band
-#define ADC_DCCTL6_CIM_M 0x00000003 // Comparison Interrupt Mode
-#define ADC_DCCTL6_CIM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL6_CIM_ONCE 0x00000001 // Once
-#define ADC_DCCTL6_CIM_HALWAYS 0x00000002 // Hysteresis Always
-#define ADC_DCCTL6_CIM_HONCE 0x00000003 // Hysteresis Once
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCTL7 register.
-//
-//*****************************************************************************
-#define ADC_DCCTL7_CTE 0x00001000 // Comparison Trigger Enable
-#define ADC_DCCTL7_CTC_M 0x00000C00 // Comparison Trigger Condition
-#define ADC_DCCTL7_CTC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL7_CTC_MID 0x00000400 // Mid Band
-#define ADC_DCCTL7_CTC_HIGH 0x00000C00 // High Band
-#define ADC_DCCTL7_CTM_M 0x00000300 // Comparison Trigger Mode
-#define ADC_DCCTL7_CTM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL7_CTM_ONCE 0x00000100 // Once
-#define ADC_DCCTL7_CTM_HALWAYS 0x00000200 // Hysteresis Always
-#define ADC_DCCTL7_CTM_HONCE 0x00000300 // Hysteresis Once
-#define ADC_DCCTL7_CIE 0x00000010 // Comparison Interrupt Enable
-#define ADC_DCCTL7_CIC_M 0x0000000C // Comparison Interrupt Condition
-#define ADC_DCCTL7_CIC_LOW 0x00000000 // Low Band
-#define ADC_DCCTL7_CIC_MID 0x00000004 // Mid Band
-#define ADC_DCCTL7_CIC_HIGH 0x0000000C // High Band
-#define ADC_DCCTL7_CIM_M 0x00000003 // Comparison Interrupt Mode
-#define ADC_DCCTL7_CIM_ALWAYS 0x00000000 // Always
-#define ADC_DCCTL7_CIM_ONCE 0x00000001 // Once
-#define ADC_DCCTL7_CIM_HALWAYS 0x00000002 // Hysteresis Always
-#define ADC_DCCTL7_CIM_HONCE 0x00000003 // Hysteresis Once
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCMP0 register.
-//
-//*****************************************************************************
-#define ADC_DCCMP0_COMP1_M 0x0FFF0000 // Compare 1
-#define ADC_DCCMP0_COMP0_M 0x00000FFF // Compare 0
-#define ADC_DCCMP0_COMP1_S 16
-#define ADC_DCCMP0_COMP0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCMP1 register.
-//
-//*****************************************************************************
-#define ADC_DCCMP1_COMP1_M 0x0FFF0000 // Compare 1
-#define ADC_DCCMP1_COMP0_M 0x00000FFF // Compare 0
-#define ADC_DCCMP1_COMP1_S 16
-#define ADC_DCCMP1_COMP0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCMP2 register.
-//
-//*****************************************************************************
-#define ADC_DCCMP2_COMP1_M 0x0FFF0000 // Compare 1
-#define ADC_DCCMP2_COMP0_M 0x00000FFF // Compare 0
-#define ADC_DCCMP2_COMP1_S 16
-#define ADC_DCCMP2_COMP0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCMP3 register.
-//
-//*****************************************************************************
-#define ADC_DCCMP3_COMP1_M 0x0FFF0000 // Compare 1
-#define ADC_DCCMP3_COMP0_M 0x00000FFF // Compare 0
-#define ADC_DCCMP3_COMP1_S 16
-#define ADC_DCCMP3_COMP0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCMP4 register.
-//
-//*****************************************************************************
-#define ADC_DCCMP4_COMP1_M 0x0FFF0000 // Compare 1
-#define ADC_DCCMP4_COMP0_M 0x00000FFF // Compare 0
-#define ADC_DCCMP4_COMP1_S 16
-#define ADC_DCCMP4_COMP0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCMP5 register.
-//
-//*****************************************************************************
-#define ADC_DCCMP5_COMP1_M 0x0FFF0000 // Compare 1
-#define ADC_DCCMP5_COMP0_M 0x00000FFF // Compare 0
-#define ADC_DCCMP5_COMP1_S 16
-#define ADC_DCCMP5_COMP0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCMP6 register.
-//
-//*****************************************************************************
-#define ADC_DCCMP6_COMP1_M 0x0FFF0000 // Compare 1
-#define ADC_DCCMP6_COMP0_M 0x00000FFF // Compare 0
-#define ADC_DCCMP6_COMP1_S 16
-#define ADC_DCCMP6_COMP0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_DCCMP7 register.
-//
-//*****************************************************************************
-#define ADC_DCCMP7_COMP1_M 0x0FFF0000 // Compare 1
-#define ADC_DCCMP7_COMP0_M 0x00000FFF // Compare 0
-#define ADC_DCCMP7_COMP1_S 16
-#define ADC_DCCMP7_COMP0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_PP register.
-//
-//*****************************************************************************
-#define ADC_PP_TS 0x00800000 // Temperature Sensor
-#define ADC_PP_RSL_M 0x007C0000 // Resolution
-#define ADC_PP_TYPE_M 0x00030000 // ADC Architecture
-#define ADC_PP_TYPE_SAR 0x00000000 // SAR
-#define ADC_PP_DC_M 0x0000FC00 // Digital Comparator Count
-#define ADC_PP_CH_M 0x000003F0 // ADC Channel Count
-#define ADC_PP_MSR_M 0x0000000F // Maximum ADC Sample Rate
-#define ADC_PP_MSR_125K 0x00000001 // 125 ksps
-#define ADC_PP_MSR_250K 0x00000003 // 250 ksps
-#define ADC_PP_MSR_500K 0x00000005 // 500 ksps
-#define ADC_PP_MSR_1M 0x00000007 // 1 Msps
-#define ADC_PP_RSL_S 18
-#define ADC_PP_DC_S 10
-#define ADC_PP_CH_S 4
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_PC register.
-//
-//*****************************************************************************
-#define ADC_PC_SR_M 0x0000000F // ADC Sample Rate
-#define ADC_PC_SR_125K 0x00000001 // 125 ksps
-#define ADC_PC_SR_250K 0x00000003 // 250 ksps
-#define ADC_PC_SR_500K 0x00000005 // 500 ksps
-#define ADC_PC_SR_1M 0x00000007 // 1 Msps
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the ADC_O_CC register.
-//
-//*****************************************************************************
-#define ADC_CC_CS_M 0x0000000F // ADC Clock Source
-#define ADC_CC_CS_SYSPLL 0x00000000 // Either the system clock (if the
- // PLL bypass is in effect) or the
- // 16 MHz clock derived from PLL /
- // 25 (default)
-#define ADC_CC_CS_PIOSC 0x00000001 // PIOSC
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACMIS register.
-//
-//*****************************************************************************
-#define COMP_ACMIS_IN2 0x00000004 // Comparator 2 Masked Interrupt
- // Status
-#define COMP_ACMIS_IN1 0x00000002 // Comparator 1 Masked Interrupt
- // Status
-#define COMP_ACMIS_IN0 0x00000001 // Comparator 0 Masked Interrupt
- // Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACRIS register.
-//
-//*****************************************************************************
-#define COMP_ACRIS_IN2 0x00000004 // Comparator 2 Interrupt Status
-#define COMP_ACRIS_IN1 0x00000002 // Comparator 1 Interrupt Status
-#define COMP_ACRIS_IN0 0x00000001 // Comparator 0 Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACINTEN register.
-//
-//*****************************************************************************
-#define COMP_ACINTEN_IN2 0x00000004 // Comparator 2 Interrupt Enable
-#define COMP_ACINTEN_IN1 0x00000002 // Comparator 1 Interrupt Enable
-#define COMP_ACINTEN_IN0 0x00000001 // Comparator 0 Interrupt Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACREFCTL
-// register.
-//
-//*****************************************************************************
-#define COMP_ACREFCTL_EN 0x00000200 // Resistor Ladder Enable
-#define COMP_ACREFCTL_RNG 0x00000100 // Resistor Ladder Range
-#define COMP_ACREFCTL_VREF_M 0x0000000F // Resistor Ladder Voltage Ref
-#define COMP_ACREFCTL_VREF_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACSTAT0 register.
-//
-//*****************************************************************************
-#define COMP_ACSTAT0_OVAL 0x00000002 // Comparator Output Value
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACCTL0 register.
-//
-//*****************************************************************************
-#define COMP_ACCTL0_TOEN 0x00000800 // Trigger Output Enable
-#define COMP_ACCTL0_ASRCP_M 0x00000600 // Analog Source Positive
-#define COMP_ACCTL0_ASRCP_PIN 0x00000000 // Pin value of Cn+
-#define COMP_ACCTL0_ASRCP_PIN0 0x00000200 // Pin value of C0+
-#define COMP_ACCTL0_ASRCP_REF 0x00000400 // Internal voltage reference
- // (VIREF)
-#define COMP_ACCTL0_TSLVAL 0x00000080 // Trigger Sense Level Value
-#define COMP_ACCTL0_TSEN_M 0x00000060 // Trigger Sense
-#define COMP_ACCTL0_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
-#define COMP_ACCTL0_TSEN_FALL 0x00000020 // Falling edge
-#define COMP_ACCTL0_TSEN_RISE 0x00000040 // Rising edge
-#define COMP_ACCTL0_TSEN_BOTH 0x00000060 // Either edge
-#define COMP_ACCTL0_ISLVAL 0x00000010 // Interrupt Sense Level Value
-#define COMP_ACCTL0_ISEN_M 0x0000000C // Interrupt Sense
-#define COMP_ACCTL0_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
-#define COMP_ACCTL0_ISEN_FALL 0x00000004 // Falling edge
-#define COMP_ACCTL0_ISEN_RISE 0x00000008 // Rising edge
-#define COMP_ACCTL0_ISEN_BOTH 0x0000000C // Either edge
-#define COMP_ACCTL0_CINV 0x00000002 // Comparator Output Invert
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACSTAT1 register.
-//
-//*****************************************************************************
-#define COMP_ACSTAT1_OVAL 0x00000002 // Comparator Output Value
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACCTL1 register.
-//
-//*****************************************************************************
-#define COMP_ACCTL1_TOEN 0x00000800 // Trigger Output Enable
-#define COMP_ACCTL1_ASRCP_M 0x00000600 // Analog Source Positive
-#define COMP_ACCTL1_ASRCP_PIN 0x00000000 // Pin value of Cn+
-#define COMP_ACCTL1_ASRCP_PIN0 0x00000200 // Pin value of C0+
-#define COMP_ACCTL1_ASRCP_REF 0x00000400 // Internal voltage reference
- // (VIREF)
-#define COMP_ACCTL1_TSLVAL 0x00000080 // Trigger Sense Level Value
-#define COMP_ACCTL1_TSEN_M 0x00000060 // Trigger Sense
-#define COMP_ACCTL1_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
-#define COMP_ACCTL1_TSEN_FALL 0x00000020 // Falling edge
-#define COMP_ACCTL1_TSEN_RISE 0x00000040 // Rising edge
-#define COMP_ACCTL1_TSEN_BOTH 0x00000060 // Either edge
-#define COMP_ACCTL1_ISLVAL 0x00000010 // Interrupt Sense Level Value
-#define COMP_ACCTL1_ISEN_M 0x0000000C // Interrupt Sense
-#define COMP_ACCTL1_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
-#define COMP_ACCTL1_ISEN_FALL 0x00000004 // Falling edge
-#define COMP_ACCTL1_ISEN_RISE 0x00000008 // Rising edge
-#define COMP_ACCTL1_ISEN_BOTH 0x0000000C // Either edge
-#define COMP_ACCTL1_CINV 0x00000002 // Comparator Output Invert
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACSTAT2 register.
-//
-//*****************************************************************************
-#define COMP_ACSTAT2_OVAL 0x00000002 // Comparator Output Value
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_ACCTL2 register.
-//
-//*****************************************************************************
-#define COMP_ACCTL2_TOEN 0x00000800 // Trigger Output Enable
-#define COMP_ACCTL2_ASRCP_M 0x00000600 // Analog Source Positive
-#define COMP_ACCTL2_ASRCP_PIN 0x00000000 // Pin value of Cn+
-#define COMP_ACCTL2_ASRCP_PIN0 0x00000200 // Pin value of C0+
-#define COMP_ACCTL2_ASRCP_REF 0x00000400 // Internal voltage reference
- // (VIREF)
-#define COMP_ACCTL2_TSLVAL 0x00000080 // Trigger Sense Level Value
-#define COMP_ACCTL2_TSEN_M 0x00000060 // Trigger Sense
-#define COMP_ACCTL2_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
-#define COMP_ACCTL2_TSEN_FALL 0x00000020 // Falling edge
-#define COMP_ACCTL2_TSEN_RISE 0x00000040 // Rising edge
-#define COMP_ACCTL2_TSEN_BOTH 0x00000060 // Either edge
-#define COMP_ACCTL2_ISLVAL 0x00000010 // Interrupt Sense Level Value
-#define COMP_ACCTL2_ISEN_M 0x0000000C // Interrupt Sense
-#define COMP_ACCTL2_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
-#define COMP_ACCTL2_ISEN_FALL 0x00000004 // Falling edge
-#define COMP_ACCTL2_ISEN_RISE 0x00000008 // Rising edge
-#define COMP_ACCTL2_ISEN_BOTH 0x0000000C // Either edge
-#define COMP_ACCTL2_CINV 0x00000002 // Comparator Output Invert
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the COMP_O_PP register.
-//
-//*****************************************************************************
-#define COMP_PP_C2O 0x00040000 // Comparator Output 2 Present
-#define COMP_PP_C1O 0x00020000 // Comparator Output 1 Present
-#define COMP_PP_C0O 0x00010000 // Comparator Output 0 Present
-#define COMP_PP_CMP2 0x00000004 // Comparator 2 Present
-#define COMP_PP_CMP1 0x00000002 // Comparator 1 Present
-#define COMP_PP_CMP0 0x00000001 // Comparator 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_CTL register.
-//
-//*****************************************************************************
-#define CAN_CTL_TEST 0x00000080 // Test Mode Enable
-#define CAN_CTL_CCE 0x00000040 // Configuration Change Enable
-#define CAN_CTL_DAR 0x00000020 // Disable Automatic-Retransmission
-#define CAN_CTL_EIE 0x00000008 // Error Interrupt Enable
-#define CAN_CTL_SIE 0x00000004 // Status Interrupt Enable
-#define CAN_CTL_IE 0x00000002 // CAN Interrupt Enable
-#define CAN_CTL_INIT 0x00000001 // Initialization
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_STS register.
-//
-//*****************************************************************************
-#define CAN_STS_BOFF 0x00000080 // Bus-Off Status
-#define CAN_STS_EWARN 0x00000040 // Warning Status
-#define CAN_STS_EPASS 0x00000020 // Error Passive
-#define CAN_STS_RXOK 0x00000010 // Received a Message Successfully
-#define CAN_STS_TXOK 0x00000008 // Transmitted a Message
- // Successfully
-#define CAN_STS_LEC_M 0x00000007 // Last Error Code
-#define CAN_STS_LEC_NONE 0x00000000 // No Error
-#define CAN_STS_LEC_STUFF 0x00000001 // Stuff Error
-#define CAN_STS_LEC_FORM 0x00000002 // Format Error
-#define CAN_STS_LEC_ACK 0x00000003 // ACK Error
-#define CAN_STS_LEC_BIT1 0x00000004 // Bit 1 Error
-#define CAN_STS_LEC_BIT0 0x00000005 // Bit 0 Error
-#define CAN_STS_LEC_CRC 0x00000006 // CRC Error
-#define CAN_STS_LEC_NOEVENT 0x00000007 // No Event
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_ERR register.
-//
-//*****************************************************************************
-#define CAN_ERR_RP 0x00008000 // Received Error Passive
-#define CAN_ERR_REC_M 0x00007F00 // Receive Error Counter
-#define CAN_ERR_TEC_M 0x000000FF // Transmit Error Counter
-#define CAN_ERR_REC_S 8
-#define CAN_ERR_TEC_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_BIT register.
-//
-//*****************************************************************************
-#define CAN_BIT_TSEG2_M 0x00007000 // Time Segment after Sample Point
-#define CAN_BIT_TSEG1_M 0x00000F00 // Time Segment Before Sample Point
-#define CAN_BIT_SJW_M 0x000000C0 // (Re)Synchronization Jump Width
-#define CAN_BIT_BRP_M 0x0000003F // Baud Rate Prescaler
-#define CAN_BIT_TSEG2_S 12
-#define CAN_BIT_TSEG1_S 8
-#define CAN_BIT_SJW_S 6
-#define CAN_BIT_BRP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_INT register.
-//
-//*****************************************************************************
-#define CAN_INT_INTID_M 0x0000FFFF // Interrupt Identifier
-#define CAN_INT_INTID_NONE 0x00000000 // No interrupt pending
-#define CAN_INT_INTID_STATUS 0x00008000 // Status Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_TST register.
-//
-//*****************************************************************************
-#define CAN_TST_RX 0x00000080 // Receive Observation
-#define CAN_TST_TX_M 0x00000060 // Transmit Control
-#define CAN_TST_TX_CANCTL 0x00000000 // CAN Module Control
-#define CAN_TST_TX_SAMPLE 0x00000020 // Sample Point
-#define CAN_TST_TX_DOMINANT 0x00000040 // Driven Low
-#define CAN_TST_TX_RECESSIVE 0x00000060 // Driven High
-#define CAN_TST_LBACK 0x00000010 // Loopback Mode
-#define CAN_TST_SILENT 0x00000008 // Silent Mode
-#define CAN_TST_BASIC 0x00000004 // Basic Mode
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_BRPE register.
-//
-//*****************************************************************************
-#define CAN_BRPE_BRPE_M 0x0000000F // Baud Rate Prescaler Extension
-#define CAN_BRPE_BRPE_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1CRQ register.
-//
-//*****************************************************************************
-#define CAN_IF1CRQ_BUSY 0x00008000 // Busy Flag
-#define CAN_IF1CRQ_MNUM_M 0x0000003F // Message Number
-#define CAN_IF1CRQ_MNUM_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1CMSK register.
-//
-//*****************************************************************************
-#define CAN_IF1CMSK_WRNRD 0x00000080 // Write, Not Read
-#define CAN_IF1CMSK_MASK 0x00000040 // Access Mask Bits
-#define CAN_IF1CMSK_ARB 0x00000020 // Access Arbitration Bits
-#define CAN_IF1CMSK_CONTROL 0x00000010 // Access Control Bits
-#define CAN_IF1CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
-#define CAN_IF1CMSK_NEWDAT 0x00000004 // Access New Data
-#define CAN_IF1CMSK_TXRQST 0x00000004 // Access Transmission Request
-#define CAN_IF1CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
-#define CAN_IF1CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1MSK1 register.
-//
-//*****************************************************************************
-#define CAN_IF1MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
-#define CAN_IF1MSK1_IDMSK_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1MSK2 register.
-//
-//*****************************************************************************
-#define CAN_IF1MSK2_MXTD 0x00008000 // Mask Extended Identifier
-#define CAN_IF1MSK2_MDIR 0x00004000 // Mask Message Direction
-#define CAN_IF1MSK2_IDMSK_M 0x00001FFF // Identifier Mask
-#define CAN_IF1MSK2_IDMSK_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1ARB1 register.
-//
-//*****************************************************************************
-#define CAN_IF1ARB1_ID_M 0x0000FFFF // Message Identifier
-#define CAN_IF1ARB1_ID_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1ARB2 register.
-//
-//*****************************************************************************
-#define CAN_IF1ARB2_MSGVAL 0x00008000 // Message Valid
-#define CAN_IF1ARB2_XTD 0x00004000 // Extended Identifier
-#define CAN_IF1ARB2_DIR 0x00002000 // Message Direction
-#define CAN_IF1ARB2_ID_M 0x00001FFF // Message Identifier
-#define CAN_IF1ARB2_ID_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1MCTL register.
-//
-//*****************************************************************************
-#define CAN_IF1MCTL_NEWDAT 0x00008000 // New Data
-#define CAN_IF1MCTL_MSGLST 0x00004000 // Message Lost
-#define CAN_IF1MCTL_INTPND 0x00002000 // Interrupt Pending
-#define CAN_IF1MCTL_UMASK 0x00001000 // Use Acceptance Mask
-#define CAN_IF1MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
-#define CAN_IF1MCTL_RXIE 0x00000400 // Receive Interrupt Enable
-#define CAN_IF1MCTL_RMTEN 0x00000200 // Remote Enable
-#define CAN_IF1MCTL_TXRQST 0x00000100 // Transmit Request
-#define CAN_IF1MCTL_EOB 0x00000080 // End of Buffer
-#define CAN_IF1MCTL_DLC_M 0x0000000F // Data Length Code
-#define CAN_IF1MCTL_DLC_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1DA1 register.
-//
-//*****************************************************************************
-#define CAN_IF1DA1_DATA_M 0x0000FFFF // Data
-#define CAN_IF1DA1_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1DA2 register.
-//
-//*****************************************************************************
-#define CAN_IF1DA2_DATA_M 0x0000FFFF // Data
-#define CAN_IF1DA2_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1DB1 register.
-//
-//*****************************************************************************
-#define CAN_IF1DB1_DATA_M 0x0000FFFF // Data
-#define CAN_IF1DB1_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF1DB2 register.
-//
-//*****************************************************************************
-#define CAN_IF1DB2_DATA_M 0x0000FFFF // Data
-#define CAN_IF1DB2_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2CRQ register.
-//
-//*****************************************************************************
-#define CAN_IF2CRQ_BUSY 0x00008000 // Busy Flag
-#define CAN_IF2CRQ_MNUM_M 0x0000003F // Message Number
-#define CAN_IF2CRQ_MNUM_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2CMSK register.
-//
-//*****************************************************************************
-#define CAN_IF2CMSK_WRNRD 0x00000080 // Write, Not Read
-#define CAN_IF2CMSK_MASK 0x00000040 // Access Mask Bits
-#define CAN_IF2CMSK_ARB 0x00000020 // Access Arbitration Bits
-#define CAN_IF2CMSK_CONTROL 0x00000010 // Access Control Bits
-#define CAN_IF2CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
-#define CAN_IF2CMSK_NEWDAT 0x00000004 // Access New Data
-#define CAN_IF2CMSK_TXRQST 0x00000004 // Access Transmission Request
-#define CAN_IF2CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
-#define CAN_IF2CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2MSK1 register.
-//
-//*****************************************************************************
-#define CAN_IF2MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
-#define CAN_IF2MSK1_IDMSK_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2MSK2 register.
-//
-//*****************************************************************************
-#define CAN_IF2MSK2_MXTD 0x00008000 // Mask Extended Identifier
-#define CAN_IF2MSK2_MDIR 0x00004000 // Mask Message Direction
-#define CAN_IF2MSK2_IDMSK_M 0x00001FFF // Identifier Mask
-#define CAN_IF2MSK2_IDMSK_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2ARB1 register.
-//
-//*****************************************************************************
-#define CAN_IF2ARB1_ID_M 0x0000FFFF // Message Identifier
-#define CAN_IF2ARB1_ID_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2ARB2 register.
-//
-//*****************************************************************************
-#define CAN_IF2ARB2_MSGVAL 0x00008000 // Message Valid
-#define CAN_IF2ARB2_XTD 0x00004000 // Extended Identifier
-#define CAN_IF2ARB2_DIR 0x00002000 // Message Direction
-#define CAN_IF2ARB2_ID_M 0x00001FFF // Message Identifier
-#define CAN_IF2ARB2_ID_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2MCTL register.
-//
-//*****************************************************************************
-#define CAN_IF2MCTL_NEWDAT 0x00008000 // New Data
-#define CAN_IF2MCTL_MSGLST 0x00004000 // Message Lost
-#define CAN_IF2MCTL_INTPND 0x00002000 // Interrupt Pending
-#define CAN_IF2MCTL_UMASK 0x00001000 // Use Acceptance Mask
-#define CAN_IF2MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
-#define CAN_IF2MCTL_RXIE 0x00000400 // Receive Interrupt Enable
-#define CAN_IF2MCTL_RMTEN 0x00000200 // Remote Enable
-#define CAN_IF2MCTL_TXRQST 0x00000100 // Transmit Request
-#define CAN_IF2MCTL_EOB 0x00000080 // End of Buffer
-#define CAN_IF2MCTL_DLC_M 0x0000000F // Data Length Code
-#define CAN_IF2MCTL_DLC_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2DA1 register.
-//
-//*****************************************************************************
-#define CAN_IF2DA1_DATA_M 0x0000FFFF // Data
-#define CAN_IF2DA1_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2DA2 register.
-//
-//*****************************************************************************
-#define CAN_IF2DA2_DATA_M 0x0000FFFF // Data
-#define CAN_IF2DA2_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2DB1 register.
-//
-//*****************************************************************************
-#define CAN_IF2DB1_DATA_M 0x0000FFFF // Data
-#define CAN_IF2DB1_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_IF2DB2 register.
-//
-//*****************************************************************************
-#define CAN_IF2DB2_DATA_M 0x0000FFFF // Data
-#define CAN_IF2DB2_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_TXRQ1 register.
-//
-//*****************************************************************************
-#define CAN_TXRQ1_TXRQST_M 0x0000FFFF // Transmission Request Bits
-#define CAN_TXRQ1_TXRQST_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_TXRQ2 register.
-//
-//*****************************************************************************
-#define CAN_TXRQ2_TXRQST_M 0x0000FFFF // Transmission Request Bits
-#define CAN_TXRQ2_TXRQST_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_NWDA1 register.
-//
-//*****************************************************************************
-#define CAN_NWDA1_NEWDAT_M 0x0000FFFF // New Data Bits
-#define CAN_NWDA1_NEWDAT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_NWDA2 register.
-//
-//*****************************************************************************
-#define CAN_NWDA2_NEWDAT_M 0x0000FFFF // New Data Bits
-#define CAN_NWDA2_NEWDAT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_MSG1INT register.
-//
-//*****************************************************************************
-#define CAN_MSG1INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
-#define CAN_MSG1INT_INTPND_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_MSG2INT register.
-//
-//*****************************************************************************
-#define CAN_MSG2INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
-#define CAN_MSG2INT_INTPND_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_MSG1VAL register.
-//
-//*****************************************************************************
-#define CAN_MSG1VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
-#define CAN_MSG1VAL_MSGVAL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the CAN_O_MSG2VAL register.
-//
-//*****************************************************************************
-#define CAN_MSG2VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
-#define CAN_MSG2VAL_MSGVAL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FADDR register.
-//
-//*****************************************************************************
-#define USB_FADDR_M 0x0000007F // Function Address
-#define USB_FADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_POWER register.
-//
-//*****************************************************************************
-#define USB_POWER_ISOUP 0x00000080 // Isochronous Update
-#define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
-#define USB_POWER_RESET 0x00000008 // RESET Signaling
-#define USB_POWER_RESUME 0x00000004 // RESUME Signaling
-#define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
-#define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXIS register.
-//
-//*****************************************************************************
-#define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
-#define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
-#define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
-#define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
-#define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
-#define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
-#define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
-#define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXIS register.
-//
-//*****************************************************************************
-#define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
-#define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
-#define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
-#define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
-#define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
-#define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
-#define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXIE register.
-//
-//*****************************************************************************
-#define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
-#define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
-#define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
-#define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
-#define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
-#define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
-#define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
-#define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
- // Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXIE register.
-//
-//*****************************************************************************
-#define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
-#define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
-#define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
-#define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
-#define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
-#define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
-#define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_IS register.
-//
-//*****************************************************************************
-#define USB_IS_VBUSERR 0x00000080 // VBUS Error
-#define USB_IS_SESREQ 0x00000040 // SESSION REQUEST
-#define USB_IS_DISCON 0x00000020 // Session Disconnect
-#define USB_IS_CONN 0x00000010 // Session Connect
-#define USB_IS_SOF 0x00000008 // Start of Frame
-#define USB_IS_BABBLE 0x00000004 // Babble Detected
-#define USB_IS_RESET 0x00000004 // RESET Signaling Detected
-#define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
-#define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_IE register.
-//
-//*****************************************************************************
-#define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt
-#define USB_IE_SESREQ 0x00000040 // Enable Session Request
-#define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
-#define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
-#define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
-#define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
-#define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
-#define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
-#define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FRAME register.
-//
-//*****************************************************************************
-#define USB_FRAME_M 0x000007FF // Frame Number
-#define USB_FRAME_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_EPIDX register.
-//
-//*****************************************************************************
-#define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
-#define USB_EPIDX_EPIDX_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TEST register.
-//
-//*****************************************************************************
-#define USB_TEST_FORCEH 0x00000080 // Force Host Mode
-#define USB_TEST_FIFOACC 0x00000040 // FIFO Access
-#define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FIFO0 register.
-//
-//*****************************************************************************
-#define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
-#define USB_FIFO0_EPDATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FIFO1 register.
-//
-//*****************************************************************************
-#define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
-#define USB_FIFO1_EPDATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FIFO2 register.
-//
-//*****************************************************************************
-#define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
-#define USB_FIFO2_EPDATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FIFO3 register.
-//
-//*****************************************************************************
-#define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
-#define USB_FIFO3_EPDATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FIFO4 register.
-//
-//*****************************************************************************
-#define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
-#define USB_FIFO4_EPDATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FIFO5 register.
-//
-//*****************************************************************************
-#define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
-#define USB_FIFO5_EPDATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FIFO6 register.
-//
-//*****************************************************************************
-#define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
-#define USB_FIFO6_EPDATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FIFO7 register.
-//
-//*****************************************************************************
-#define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
-#define USB_FIFO7_EPDATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_DEVCTL register.
-//
-//*****************************************************************************
-#define USB_DEVCTL_DEV 0x00000080 // Device Mode
-#define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
-#define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
-#define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level
-#define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
-#define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
-#define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
-#define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
-#define USB_DEVCTL_HOST 0x00000004 // Host Mode
-#define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request
-#define USB_DEVCTL_SESSION 0x00000001 // Session Start/End
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
-//
-//*****************************************************************************
-#define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
-#define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
-#define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
-#define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
-#define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
-#define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
-#define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
-#define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
-#define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
-#define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
-#define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
-//
-//*****************************************************************************
-#define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
-#define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
-#define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
-#define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
-#define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
-#define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
-#define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
-#define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
-#define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
-#define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
-#define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFIFOADD
-// register.
-//
-//*****************************************************************************
-#define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
-#define USB_TXFIFOADD_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXFIFOADD
-// register.
-//
-//*****************************************************************************
-#define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
-#define USB_RXFIFOADD_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_CONTIM register.
-//
-//*****************************************************************************
-#define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
-#define USB_CONTIM_WTID_M 0x0000000F // Wait ID
-#define USB_CONTIM_WTCON_S 4
-#define USB_CONTIM_WTID_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_VPLEN register.
-//
-//*****************************************************************************
-#define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
-#define USB_VPLEN_VPLEN_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_FSEOF register.
-//
-//*****************************************************************************
-#define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
-#define USB_FSEOF_FSEOFG_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_LSEOF register.
-//
-//*****************************************************************************
-#define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
-#define USB_LSEOF_LSEOFG_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFUNCADDR0
-// register.
-//
-//*****************************************************************************
-#define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
-#define USB_TXFUNCADDR0_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBADDR0
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
-#define USB_TXHUBADDR0_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBPORT0
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
-#define USB_TXHUBPORT0_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFUNCADDR1
-// register.
-//
-//*****************************************************************************
-#define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
-#define USB_TXFUNCADDR1_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBADDR1
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
-#define USB_TXHUBADDR1_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBPORT1
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
-#define USB_TXHUBPORT1_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXFUNCADDR1
-// register.
-//
-//*****************************************************************************
-#define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
-#define USB_RXFUNCADDR1_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBADDR1
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
-#define USB_RXHUBADDR1_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBPORT1
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
-#define USB_RXHUBPORT1_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFUNCADDR2
-// register.
-//
-//*****************************************************************************
-#define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
-#define USB_TXFUNCADDR2_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBADDR2
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
-#define USB_TXHUBADDR2_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBPORT2
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
-#define USB_TXHUBPORT2_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXFUNCADDR2
-// register.
-//
-//*****************************************************************************
-#define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
-#define USB_RXFUNCADDR2_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBADDR2
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
-#define USB_RXHUBADDR2_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBPORT2
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
-#define USB_RXHUBPORT2_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFUNCADDR3
-// register.
-//
-//*****************************************************************************
-#define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
-#define USB_TXFUNCADDR3_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBADDR3
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
-#define USB_TXHUBADDR3_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBPORT3
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
-#define USB_TXHUBPORT3_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXFUNCADDR3
-// register.
-//
-//*****************************************************************************
-#define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
-#define USB_RXFUNCADDR3_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBADDR3
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
-#define USB_RXHUBADDR3_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBPORT3
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
-#define USB_RXHUBPORT3_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFUNCADDR4
-// register.
-//
-//*****************************************************************************
-#define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
-#define USB_TXFUNCADDR4_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBADDR4
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
-#define USB_TXHUBADDR4_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBPORT4
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
-#define USB_TXHUBPORT4_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXFUNCADDR4
-// register.
-//
-//*****************************************************************************
-#define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
-#define USB_RXFUNCADDR4_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBADDR4
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
-#define USB_RXHUBADDR4_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBPORT4
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
-#define USB_RXHUBPORT4_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFUNCADDR5
-// register.
-//
-//*****************************************************************************
-#define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
-#define USB_TXFUNCADDR5_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBADDR5
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
-#define USB_TXHUBADDR5_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBPORT5
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
-#define USB_TXHUBPORT5_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXFUNCADDR5
-// register.
-//
-//*****************************************************************************
-#define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
-#define USB_RXFUNCADDR5_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBADDR5
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
-#define USB_RXHUBADDR5_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBPORT5
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
-#define USB_RXHUBPORT5_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFUNCADDR6
-// register.
-//
-//*****************************************************************************
-#define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
-#define USB_TXFUNCADDR6_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBADDR6
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
-#define USB_TXHUBADDR6_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBPORT6
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
-#define USB_TXHUBPORT6_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXFUNCADDR6
-// register.
-//
-//*****************************************************************************
-#define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
-#define USB_RXFUNCADDR6_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBADDR6
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
-#define USB_RXHUBADDR6_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBPORT6
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
-#define USB_RXHUBPORT6_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXFUNCADDR7
-// register.
-//
-//*****************************************************************************
-#define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
-#define USB_TXFUNCADDR7_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBADDR7
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
-#define USB_TXHUBADDR7_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXHUBPORT7
-// register.
-//
-//*****************************************************************************
-#define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
-#define USB_TXHUBPORT7_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXFUNCADDR7
-// register.
-//
-//*****************************************************************************
-#define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
-#define USB_RXFUNCADDR7_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBADDR7
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
-#define USB_RXHUBADDR7_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXHUBPORT7
-// register.
-//
-//*****************************************************************************
-#define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
-#define USB_RXHUBPORT7_PORT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_CSRL0 register.
-//
-//*****************************************************************************
-#define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
-#define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
-#define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
-#define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
-#define USB_CSRL0_REQPKT 0x00000020 // Request Packet
-#define USB_CSRL0_STALL 0x00000020 // Send Stall
-#define USB_CSRL0_SETEND 0x00000010 // Setup End
-#define USB_CSRL0_ERROR 0x00000010 // Error
-#define USB_CSRL0_DATAEND 0x00000008 // Data End
-#define USB_CSRL0_SETUP 0x00000008 // Setup Packet
-#define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
-#define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
-#define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_CSRH0 register.
-//
-//*****************************************************************************
-#define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
-#define USB_CSRH0_DT 0x00000002 // Data Toggle
-#define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_COUNT0 register.
-//
-//*****************************************************************************
-#define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
-#define USB_COUNT0_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TYPE0 register.
-//
-//*****************************************************************************
-#define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
-#define USB_TYPE0_SPEED_FULL 0x00000080 // Full
-#define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_NAKLMT register.
-//
-//*****************************************************************************
-#define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
-#define USB_NAKLMT_NAKLMT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXMAXP1 register.
-//
-//*****************************************************************************
-#define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_TXMAXP1_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRL1 register.
-//
-//*****************************************************************************
-#define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
-#define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
-#define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
-#define USB_TXCSRL1_STALL 0x00000010 // Send STALL
-#define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
-#define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
-#define USB_TXCSRL1_ERROR 0x00000004 // Error
-#define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
-#define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
-#define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRH1 register.
-//
-//*****************************************************************************
-#define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
-#define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
-#define USB_TXCSRH1_MODE 0x00000020 // Mode
-#define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
-#define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
-#define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
-#define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
-#define USB_TXCSRH1_DT 0x00000001 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXMAXP1 register.
-//
-//*****************************************************************************
-#define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_RXMAXP1_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRL1 register.
-//
-//*****************************************************************************
-#define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
-#define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
-#define USB_RXCSRL1_STALL 0x00000020 // Send STALL
-#define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
-#define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
-#define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
-#define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
-#define USB_RXCSRL1_OVER 0x00000004 // Overrun
-#define USB_RXCSRL1_ERROR 0x00000004 // Error
-#define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
-#define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRH1 register.
-//
-//*****************************************************************************
-#define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
-#define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
-#define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
-#define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
-#define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
-#define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
-#define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
-#define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
-#define USB_RXCSRH1_DT 0x00000002 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
-//
-//*****************************************************************************
-#define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
-#define USB_RXCOUNT1_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXTYPE1 register.
-//
-//*****************************************************************************
-#define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
-#define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
-#define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
-#define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
-#define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
-#define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
-#define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
-#define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
-#define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_TXTYPE1_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXINTERVAL1
-// register.
-//
-//*****************************************************************************
-#define USB_TXINTERVAL1_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_TXINTERVAL1_TXPOLL_M \
- 0x000000FF // TX Polling
-#define USB_TXINTERVAL1_TXPOLL_S \
- 0
-#define USB_TXINTERVAL1_NAKLMT_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXTYPE1 register.
-//
-//*****************************************************************************
-#define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
-#define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
-#define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
-#define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
-#define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
-#define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
-#define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
-#define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
-#define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_RXTYPE1_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXINTERVAL1
-// register.
-//
-//*****************************************************************************
-#define USB_RXINTERVAL1_TXPOLL_M \
- 0x000000FF // RX Polling
-#define USB_RXINTERVAL1_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_RXINTERVAL1_TXPOLL_S \
- 0
-#define USB_RXINTERVAL1_NAKLMT_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXMAXP2 register.
-//
-//*****************************************************************************
-#define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_TXMAXP2_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRL2 register.
-//
-//*****************************************************************************
-#define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
-#define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
-#define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
-#define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
-#define USB_TXCSRL2_STALL 0x00000010 // Send STALL
-#define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
-#define USB_TXCSRL2_ERROR 0x00000004 // Error
-#define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
-#define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
-#define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRH2 register.
-//
-//*****************************************************************************
-#define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
-#define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
-#define USB_TXCSRH2_MODE 0x00000020 // Mode
-#define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
-#define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
-#define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
-#define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
-#define USB_TXCSRH2_DT 0x00000001 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXMAXP2 register.
-//
-//*****************************************************************************
-#define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_RXMAXP2_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRL2 register.
-//
-//*****************************************************************************
-#define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
-#define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
-#define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
-#define USB_RXCSRL2_STALL 0x00000020 // Send STALL
-#define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
-#define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
-#define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
-#define USB_RXCSRL2_ERROR 0x00000004 // Error
-#define USB_RXCSRL2_OVER 0x00000004 // Overrun
-#define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
-#define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRH2 register.
-//
-//*****************************************************************************
-#define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
-#define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
-#define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
-#define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
-#define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
-#define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
-#define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
-#define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
-#define USB_RXCSRH2_DT 0x00000002 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
-//
-//*****************************************************************************
-#define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
-#define USB_RXCOUNT2_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXTYPE2 register.
-//
-//*****************************************************************************
-#define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
-#define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
-#define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
-#define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
-#define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
-#define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
-#define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
-#define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
-#define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_TXTYPE2_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXINTERVAL2
-// register.
-//
-//*****************************************************************************
-#define USB_TXINTERVAL2_TXPOLL_M \
- 0x000000FF // TX Polling
-#define USB_TXINTERVAL2_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_TXINTERVAL2_NAKLMT_S \
- 0
-#define USB_TXINTERVAL2_TXPOLL_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXTYPE2 register.
-//
-//*****************************************************************************
-#define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
-#define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
-#define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
-#define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
-#define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
-#define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
-#define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
-#define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
-#define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_RXTYPE2_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXINTERVAL2
-// register.
-//
-//*****************************************************************************
-#define USB_RXINTERVAL2_TXPOLL_M \
- 0x000000FF // RX Polling
-#define USB_RXINTERVAL2_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_RXINTERVAL2_TXPOLL_S \
- 0
-#define USB_RXINTERVAL2_NAKLMT_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXMAXP3 register.
-//
-//*****************************************************************************
-#define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_TXMAXP3_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRL3 register.
-//
-//*****************************************************************************
-#define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
-#define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
-#define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
-#define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
-#define USB_TXCSRL3_STALL 0x00000010 // Send STALL
-#define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
-#define USB_TXCSRL3_ERROR 0x00000004 // Error
-#define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
-#define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
-#define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRH3 register.
-//
-//*****************************************************************************
-#define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
-#define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
-#define USB_TXCSRH3_MODE 0x00000020 // Mode
-#define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
-#define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
-#define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
-#define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
-#define USB_TXCSRH3_DT 0x00000001 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXMAXP3 register.
-//
-//*****************************************************************************
-#define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_RXMAXP3_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRL3 register.
-//
-//*****************************************************************************
-#define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
-#define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
-#define USB_RXCSRL3_STALL 0x00000020 // Send STALL
-#define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
-#define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
-#define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
-#define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
-#define USB_RXCSRL3_ERROR 0x00000004 // Error
-#define USB_RXCSRL3_OVER 0x00000004 // Overrun
-#define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
-#define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRH3 register.
-//
-//*****************************************************************************
-#define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
-#define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
-#define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
-#define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
-#define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
-#define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
-#define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
-#define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
-#define USB_RXCSRH3_DT 0x00000002 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
-//
-//*****************************************************************************
-#define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
-#define USB_RXCOUNT3_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXTYPE3 register.
-//
-//*****************************************************************************
-#define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
-#define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
-#define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
-#define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
-#define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
-#define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
-#define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
-#define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
-#define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_TXTYPE3_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXINTERVAL3
-// register.
-//
-//*****************************************************************************
-#define USB_TXINTERVAL3_TXPOLL_M \
- 0x000000FF // TX Polling
-#define USB_TXINTERVAL3_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_TXINTERVAL3_TXPOLL_S \
- 0
-#define USB_TXINTERVAL3_NAKLMT_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXTYPE3 register.
-//
-//*****************************************************************************
-#define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
-#define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
-#define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
-#define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
-#define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
-#define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
-#define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
-#define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
-#define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_RXTYPE3_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXINTERVAL3
-// register.
-//
-//*****************************************************************************
-#define USB_RXINTERVAL3_TXPOLL_M \
- 0x000000FF // RX Polling
-#define USB_RXINTERVAL3_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_RXINTERVAL3_TXPOLL_S \
- 0
-#define USB_RXINTERVAL3_NAKLMT_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXMAXP4 register.
-//
-//*****************************************************************************
-#define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_TXMAXP4_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRL4 register.
-//
-//*****************************************************************************
-#define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
-#define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
-#define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
-#define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
-#define USB_TXCSRL4_STALL 0x00000010 // Send STALL
-#define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
-#define USB_TXCSRL4_ERROR 0x00000004 // Error
-#define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
-#define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
-#define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRH4 register.
-//
-//*****************************************************************************
-#define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
-#define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
-#define USB_TXCSRH4_MODE 0x00000020 // Mode
-#define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
-#define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
-#define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
-#define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
-#define USB_TXCSRH4_DT 0x00000001 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXMAXP4 register.
-//
-//*****************************************************************************
-#define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_RXMAXP4_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRL4 register.
-//
-//*****************************************************************************
-#define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
-#define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
-#define USB_RXCSRL4_STALL 0x00000020 // Send STALL
-#define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
-#define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
-#define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
-#define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
-#define USB_RXCSRL4_OVER 0x00000004 // Overrun
-#define USB_RXCSRL4_ERROR 0x00000004 // Error
-#define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
-#define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRH4 register.
-//
-//*****************************************************************************
-#define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
-#define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
-#define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
-#define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
-#define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
-#define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
-#define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
-#define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
-#define USB_RXCSRH4_DT 0x00000002 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
-//
-//*****************************************************************************
-#define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
-#define USB_RXCOUNT4_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXTYPE4 register.
-//
-//*****************************************************************************
-#define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
-#define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
-#define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
-#define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
-#define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
-#define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
-#define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
-#define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
-#define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_TXTYPE4_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXINTERVAL4
-// register.
-//
-//*****************************************************************************
-#define USB_TXINTERVAL4_TXPOLL_M \
- 0x000000FF // TX Polling
-#define USB_TXINTERVAL4_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_TXINTERVAL4_NAKLMT_S \
- 0
-#define USB_TXINTERVAL4_TXPOLL_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXTYPE4 register.
-//
-//*****************************************************************************
-#define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
-#define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
-#define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
-#define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
-#define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
-#define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
-#define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
-#define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
-#define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_RXTYPE4_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXINTERVAL4
-// register.
-//
-//*****************************************************************************
-#define USB_RXINTERVAL4_TXPOLL_M \
- 0x000000FF // RX Polling
-#define USB_RXINTERVAL4_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_RXINTERVAL4_NAKLMT_S \
- 0
-#define USB_RXINTERVAL4_TXPOLL_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXMAXP5 register.
-//
-//*****************************************************************************
-#define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_TXMAXP5_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRL5 register.
-//
-//*****************************************************************************
-#define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
-#define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
-#define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
-#define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
-#define USB_TXCSRL5_STALL 0x00000010 // Send STALL
-#define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
-#define USB_TXCSRL5_ERROR 0x00000004 // Error
-#define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
-#define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
-#define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRH5 register.
-//
-//*****************************************************************************
-#define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
-#define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
-#define USB_TXCSRH5_MODE 0x00000020 // Mode
-#define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
-#define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
-#define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
-#define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
-#define USB_TXCSRH5_DT 0x00000001 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXMAXP5 register.
-//
-//*****************************************************************************
-#define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_RXMAXP5_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRL5 register.
-//
-//*****************************************************************************
-#define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
-#define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
-#define USB_RXCSRL5_STALL 0x00000020 // Send STALL
-#define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
-#define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
-#define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
-#define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
-#define USB_RXCSRL5_ERROR 0x00000004 // Error
-#define USB_RXCSRL5_OVER 0x00000004 // Overrun
-#define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
-#define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRH5 register.
-//
-//*****************************************************************************
-#define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
-#define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
-#define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
-#define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
-#define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
-#define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
-#define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
-#define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
-#define USB_RXCSRH5_DT 0x00000002 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
-//
-//*****************************************************************************
-#define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
-#define USB_RXCOUNT5_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXTYPE5 register.
-//
-//*****************************************************************************
-#define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
-#define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
-#define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
-#define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
-#define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
-#define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
-#define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
-#define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
-#define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_TXTYPE5_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXINTERVAL5
-// register.
-//
-//*****************************************************************************
-#define USB_TXINTERVAL5_TXPOLL_M \
- 0x000000FF // TX Polling
-#define USB_TXINTERVAL5_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_TXINTERVAL5_NAKLMT_S \
- 0
-#define USB_TXINTERVAL5_TXPOLL_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXTYPE5 register.
-//
-//*****************************************************************************
-#define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
-#define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
-#define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
-#define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
-#define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
-#define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
-#define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
-#define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
-#define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_RXTYPE5_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXINTERVAL5
-// register.
-//
-//*****************************************************************************
-#define USB_RXINTERVAL5_TXPOLL_M \
- 0x000000FF // RX Polling
-#define USB_RXINTERVAL5_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_RXINTERVAL5_TXPOLL_S \
- 0
-#define USB_RXINTERVAL5_NAKLMT_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXMAXP6 register.
-//
-//*****************************************************************************
-#define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_TXMAXP6_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRL6 register.
-//
-//*****************************************************************************
-#define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
-#define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
-#define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
-#define USB_TXCSRL6_STALL 0x00000010 // Send STALL
-#define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
-#define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
-#define USB_TXCSRL6_ERROR 0x00000004 // Error
-#define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
-#define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
-#define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRH6 register.
-//
-//*****************************************************************************
-#define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
-#define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
-#define USB_TXCSRH6_MODE 0x00000020 // Mode
-#define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
-#define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
-#define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
-#define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
-#define USB_TXCSRH6_DT 0x00000001 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXMAXP6 register.
-//
-//*****************************************************************************
-#define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_RXMAXP6_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRL6 register.
-//
-//*****************************************************************************
-#define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
-#define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
-#define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
-#define USB_RXCSRL6_STALL 0x00000020 // Send STALL
-#define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
-#define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
-#define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
-#define USB_RXCSRL6_ERROR 0x00000004 // Error
-#define USB_RXCSRL6_OVER 0x00000004 // Overrun
-#define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
-#define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRH6 register.
-//
-//*****************************************************************************
-#define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
-#define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
-#define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
-#define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
-#define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
-#define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
-#define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
-#define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
-#define USB_RXCSRH6_DT 0x00000002 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
-//
-//*****************************************************************************
-#define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
-#define USB_RXCOUNT6_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXTYPE6 register.
-//
-//*****************************************************************************
-#define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
-#define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
-#define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
-#define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
-#define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
-#define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
-#define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
-#define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
-#define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_TXTYPE6_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXINTERVAL6
-// register.
-//
-//*****************************************************************************
-#define USB_TXINTERVAL6_TXPOLL_M \
- 0x000000FF // TX Polling
-#define USB_TXINTERVAL6_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_TXINTERVAL6_TXPOLL_S \
- 0
-#define USB_TXINTERVAL6_NAKLMT_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXTYPE6 register.
-//
-//*****************************************************************************
-#define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
-#define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
-#define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
-#define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
-#define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
-#define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
-#define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
-#define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
-#define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_RXTYPE6_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXINTERVAL6
-// register.
-//
-//*****************************************************************************
-#define USB_RXINTERVAL6_TXPOLL_M \
- 0x000000FF // RX Polling
-#define USB_RXINTERVAL6_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_RXINTERVAL6_NAKLMT_S \
- 0
-#define USB_RXINTERVAL6_TXPOLL_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXMAXP7 register.
-//
-//*****************************************************************************
-#define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_TXMAXP7_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRL7 register.
-//
-//*****************************************************************************
-#define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
-#define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
-#define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
-#define USB_TXCSRL7_STALL 0x00000010 // Send STALL
-#define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
-#define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
-#define USB_TXCSRL7_ERROR 0x00000004 // Error
-#define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
-#define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
-#define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXCSRH7 register.
-//
-//*****************************************************************************
-#define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
-#define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
-#define USB_TXCSRH7_MODE 0x00000020 // Mode
-#define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
-#define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
-#define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
-#define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
-#define USB_TXCSRH7_DT 0x00000001 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXMAXP7 register.
-//
-//*****************************************************************************
-#define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
-#define USB_RXMAXP7_MAXLOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRL7 register.
-//
-//*****************************************************************************
-#define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
-#define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
-#define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
-#define USB_RXCSRL7_STALL 0x00000020 // Send STALL
-#define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
-#define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
-#define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
-#define USB_RXCSRL7_ERROR 0x00000004 // Error
-#define USB_RXCSRL7_OVER 0x00000004 // Overrun
-#define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
-#define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCSRH7 register.
-//
-//*****************************************************************************
-#define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
-#define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
-#define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
-#define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
-#define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
-#define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
-#define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
-#define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
-#define USB_RXCSRH7_DT 0x00000002 // Data Toggle
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
-//
-//*****************************************************************************
-#define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
-#define USB_RXCOUNT7_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXTYPE7 register.
-//
-//*****************************************************************************
-#define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
-#define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
-#define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
-#define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
-#define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
-#define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
-#define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
-#define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
-#define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_TXTYPE7_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXINTERVAL7
-// register.
-//
-//*****************************************************************************
-#define USB_TXINTERVAL7_TXPOLL_M \
- 0x000000FF // TX Polling
-#define USB_TXINTERVAL7_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_TXINTERVAL7_NAKLMT_S \
- 0
-#define USB_TXINTERVAL7_TXPOLL_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXTYPE7 register.
-//
-//*****************************************************************************
-#define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
-#define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
-#define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
-#define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
-#define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
-#define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
-#define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
-#define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
-#define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
-#define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
-#define USB_RXTYPE7_TEP_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXINTERVAL7
-// register.
-//
-//*****************************************************************************
-#define USB_RXINTERVAL7_TXPOLL_M \
- 0x000000FF // RX Polling
-#define USB_RXINTERVAL7_NAKLMT_M \
- 0x000000FF // NAK Limit
-#define USB_RXINTERVAL7_NAKLMT_S \
- 0
-#define USB_RXINTERVAL7_TXPOLL_S \
- 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
-// register.
-//
-//*****************************************************************************
-#define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
-#define USB_RQPKTCOUNT1_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
-// register.
-//
-//*****************************************************************************
-#define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
-#define USB_RQPKTCOUNT2_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
-// register.
-//
-//*****************************************************************************
-#define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
-#define USB_RQPKTCOUNT3_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
-// register.
-//
-//*****************************************************************************
-#define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
-#define USB_RQPKTCOUNT4_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
-// register.
-//
-//*****************************************************************************
-#define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
-#define USB_RQPKTCOUNT5_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
-// register.
-//
-//*****************************************************************************
-#define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
-#define USB_RQPKTCOUNT6_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
-// register.
-//
-//*****************************************************************************
-#define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
-#define USB_RQPKTCOUNT7_COUNT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
-// register.
-//
-//*****************************************************************************
-#define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
- // Disable
-#define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
- // Disable
-#define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
- // Disable
-#define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
- // Disable
-#define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
- // Disable
-#define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
- // Disable
-#define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
- // Disable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
-// register.
-//
-//*****************************************************************************
-#define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
- // Disable
-#define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
- // Disable
-#define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
- // Disable
-#define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
- // Disable
-#define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
- // Disable
-#define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
- // Disable
-#define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
- // Disable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_EPC register.
-//
-//*****************************************************************************
-#define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
-#define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
-#define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
-#define USB_EPC_PFLTACT_LOW 0x00000200 // Low
-#define USB_EPC_PFLTACT_HIGH 0x00000300 // High
-#define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
-#define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
-#define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
-#define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
-#define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
- // Configuration
-#define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
-#define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
-#define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
-#define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_EPCRIS register.
-//
-//*****************************************************************************
-#define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_EPCIM register.
-//
-//*****************************************************************************
-#define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_EPCISC register.
-//
-//*****************************************************************************
-#define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
- // and Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_DRRIS register.
-//
-//*****************************************************************************
-#define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_DRIM register.
-//
-//*****************************************************************************
-#define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_DRISC register.
-//
-//*****************************************************************************
-#define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
- // Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_GPCS register.
-//
-//*****************************************************************************
-#define USB_GPCS_DEVMODOTG 0x00000002 // Enable Device Mode
-#define USB_GPCS_DEVMOD 0x00000001 // Device Mode
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_VDC register.
-//
-//*****************************************************************************
-#define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_VDCRIS register.
-//
-//*****************************************************************************
-#define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_VDCIM register.
-//
-//*****************************************************************************
-#define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_VDCISC register.
-//
-//*****************************************************************************
-#define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
- // Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_IDVRIS register.
-//
-//*****************************************************************************
-#define USB_IDVRIS_ID 0x00000001 // ID Valid Detect Raw Interrupt
- // Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_IDVIM register.
-//
-//*****************************************************************************
-#define USB_IDVIM_ID 0x00000001 // ID Valid Detect Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_IDVISC register.
-//
-//*****************************************************************************
-#define USB_IDVISC_ID 0x00000001 // ID Valid Detect Interrupt Status
- // and Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_DMASEL register.
-//
-//*****************************************************************************
-#define USB_DMASEL_DMACTX_M 0x00F00000 // DMA C TX Select
-#define USB_DMASEL_DMACRX_M 0x000F0000 // DMA C RX Select
-#define USB_DMASEL_DMABTX_M 0x0000F000 // DMA B TX Select
-#define USB_DMASEL_DMABRX_M 0x00000F00 // DMA B RX Select
-#define USB_DMASEL_DMAATX_M 0x000000F0 // DMA A TX Select
-#define USB_DMASEL_DMAARX_M 0x0000000F // DMA A RX Select
-#define USB_DMASEL_DMACTX_S 20
-#define USB_DMASEL_DMACRX_S 16
-#define USB_DMASEL_DMABTX_S 12
-#define USB_DMASEL_DMABRX_S 8
-#define USB_DMASEL_DMAATX_S 4
-#define USB_DMASEL_DMAARX_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the USB_O_PP register.
-//
-//*****************************************************************************
-#define USB_PP_ECNT_M 0x0000FF00 // Endpoint Count
-#define USB_PP_USB_M 0x000000C0 // USB Capability
-#define USB_PP_USB_DEVICE 0x00000040 // DEVICE
-#define USB_PP_USB_HOSTDEVICE 0x00000080 // HOST
-#define USB_PP_USB_OTG 0x000000C0 // OTG
-#define USB_PP_PHY 0x00000010 // PHY Present
-#define USB_PP_TYPE_M 0x0000000F // Controller Type
-#define USB_PP_TYPE_0 0x00000000 // The first-generation USB
- // controller
-#define USB_PP_ECNT_S 8
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSEXC_RIS register.
-//
-//*****************************************************************************
-#define SYSEXC_RIS_IXCRIS 0x00000020 // Inexact Exception Flag
-#define SYSEXC_RIS_OFCRIS 0x00000010 // Overflow Exception Flag
-#define SYSEXC_RIS_UFCRIS 0x00000008 // Underflow Exception Flag
-#define SYSEXC_RIS_IOCRIS 0x00000004 // Invalid Operation Flag
-#define SYSEXC_RIS_DZCRIS 0x00000002 // Divide By 0 Exception Flag
-#define SYSEXC_RIS_IDCRIS 0x00000001 // Input Denormal Exception Flag
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSEXC_IM register.
-//
-//*****************************************************************************
-#define SYSEXC_IM_IXCIM 0x00000020 // Inexact Exception Flag
-#define SYSEXC_IM_OFCIM 0x00000010 // Overflow Exception Flag
-#define SYSEXC_IM_UFCIM 0x00000008 // Underflow Exception Flag
-#define SYSEXC_IM_IOCIM 0x00000004 // Invalid Operation Flag
-#define SYSEXC_IM_DZCIM 0x00000002 // Divide By 0 Exception Flag
-#define SYSEXC_IM_IDCIM 0x00000001 // Input Denormal Exception Flag
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSEXC_MIS register.
-//
-//*****************************************************************************
-#define SYSEXC_MIS_IXCMIS 0x00000020 // Inexact Exception Flag
-#define SYSEXC_MIS_OFCMIS 0x00000010 // Overflow Exception Flag
-#define SYSEXC_MIS_UFCMIS 0x00000008 // Underflow Exception Flag
-#define SYSEXC_MIS_IOCMIS 0x00000004 // Invalid Operation Flag
-#define SYSEXC_MIS_DZCMIS 0x00000002 // Divide By 0 Exception Flag
-#define SYSEXC_MIS_IDCMIS 0x00000001 // Input Denormal Exception Flag
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSEXC_IC register.
-//
-//*****************************************************************************
-#define SYSEXC_IC_IXCIC 0x00000020 // Inexact Exception Flag
-#define SYSEXC_IC_OFCIC 0x00000010 // Overflow Exception Flag
-#define SYSEXC_IC_UFCIC 0x00000008 // Underflow Exception Flag
-#define SYSEXC_IC_IOCIC 0x00000004 // Invalid Operation Flag
-#define SYSEXC_IC_DZCIC 0x00000002 // Divide By 0 Exception Flag
-#define SYSEXC_IC_IDCIC 0x00000001 // Input Denormal Exception Flag
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_RTCC register.
-//
-//*****************************************************************************
-#define HIB_RTCC_M 0xFFFFFFFF // RTC Counter
-#define HIB_RTCC_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_RTCM0 register.
-//
-//*****************************************************************************
-#define HIB_RTCM0_M 0xFFFFFFFF // RTC Match 0
-#define HIB_RTCM0_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_RTCLD register.
-//
-//*****************************************************************************
-#define HIB_RTCLD_M 0xFFFFFFFF // RTC Load
-#define HIB_RTCLD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_CTL register.
-//
-//*****************************************************************************
-#define HIB_CTL_WRC 0x80000000 // Write Complete/Capable
-#define HIB_CTL_OSCHYS 0x00040000 // 32
-#define HIB_CTL_OSCDRV 0x00020000 // Oscillator Drive Capability
-#define HIB_CTL_OSCBYP 0x00010000 // Oscillator Bypass
-#define HIB_CTL_VBATSEL_M 0x00006000 // Select for Low-Battery
- // Comparator
-#define HIB_CTL_VBATSEL_1_9V 0x00000000 // 1.9 Volts
-#define HIB_CTL_VBATSEL_2_1V 0x00002000 // 2.1 Volts (default)
-#define HIB_CTL_VBATSEL_2_3V 0x00004000 // 2.3 Volts
-#define HIB_CTL_VBATSEL_2_5V 0x00006000 // 2.5 Volts
-#define HIB_CTL_BATCHK 0x00000400 // Check Battery Status
-#define HIB_CTL_BATWKEN 0x00000200 // Wake on Low Battery
-#define HIB_CTL_VDD3ON 0x00000100 // VDD Powered
-#define HIB_CTL_VABORT 0x00000080 // Power Cut Abort Enable
-#define HIB_CTL_CLK32EN 0x00000040 // Clocking Enable
-#define HIB_CTL_LOWBATEN 0x00000020 // Low Battery Monitoring Enable
-#define HIB_CTL_PINWEN 0x00000010 // External WAKE Pin Enable
-#define HIB_CTL_RTCWEN 0x00000008 // RTC Wake-up Enable
-#define HIB_CTL_HIBREQ 0x00000002 // Hibernation Request
-#define HIB_CTL_RTCEN 0x00000001 // RTC Timer Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_IM register.
-//
-//*****************************************************************************
-#define HIB_IM_WC 0x00000010 // External Write Complete/Capable
- // Interrupt Mask
-#define HIB_IM_EXTW 0x00000008 // External Wake-Up Interrupt Mask
-#define HIB_IM_LOWBAT 0x00000004 // Low Battery Voltage Interrupt
- // Mask
-#define HIB_IM_RTCALT0 0x00000001 // RTC Alert 0 Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_RIS register.
-//
-//*****************************************************************************
-#define HIB_RIS_WC 0x00000010 // Write Complete/Capable Raw
- // Interrupt Status
-#define HIB_RIS_EXTW 0x00000008 // External Wake-Up Raw Interrupt
- // Status
-#define HIB_RIS_LOWBAT 0x00000004 // Low Battery Voltage Raw
- // Interrupt Status
-#define HIB_RIS_RTCALT0 0x00000001 // RTC Alert 0 Raw Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_MIS register.
-//
-//*****************************************************************************
-#define HIB_MIS_WC 0x00000010 // Write Complete/Capable Masked
- // Interrupt Status
-#define HIB_MIS_EXTW 0x00000008 // External Wake-Up Masked
- // Interrupt Status
-#define HIB_MIS_LOWBAT 0x00000004 // Low Battery Voltage Masked
- // Interrupt Status
-#define HIB_MIS_RTCALT0 0x00000001 // RTC Alert 0 Masked Interrupt
- // Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_IC register.
-//
-//*****************************************************************************
-#define HIB_IC_WC 0x00000010 // Write Complete/Capable Masked
- // Interrupt Clear
-#define HIB_IC_EXTW 0x00000008 // External Wake-Up Masked
- // Interrupt Clear
-#define HIB_IC_LOWBAT 0x00000004 // Low Battery Voltage Masked
- // Interrupt Clear
-#define HIB_IC_RTCALT0 0x00000001 // RTC Alert0 Masked Interrupt
- // Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_RTCT register.
-//
-//*****************************************************************************
-#define HIB_RTCT_TRIM_M 0x0000FFFF // RTC Trim Value
-#define HIB_RTCT_TRIM_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_RTCSS register.
-//
-//*****************************************************************************
-#define HIB_RTCSS_RTCSSM_M 0x7FFF0000 // RTC Sub Seconds Match
-#define HIB_RTCSS_RTCSSC_M 0x00007FFF // RTC Sub Seconds Count
-#define HIB_RTCSS_RTCSSM_S 16
-#define HIB_RTCSS_RTCSSC_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the HIB_DATA register.
-//
-//*****************************************************************************
-#define HIB_DATA_RTD_M 0xFFFFFFFF // Hibernation Module NV Data
-#define HIB_DATA_RTD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FMA register.
-//
-//*****************************************************************************
-#define FLASH_FMA_OFFSET_M 0x0003FFFF // Address Offset
-#define FLASH_FMA_OFFSET_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FMD register.
-//
-//*****************************************************************************
-#define FLASH_FMD_DATA_M 0xFFFFFFFF // Data Value
-#define FLASH_FMD_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FMC register.
-//
-//*****************************************************************************
-#define FLASH_FMC_WRKEY 0xA4420000 // FLASH write key
-#define FLASH_FMC_COMT 0x00000008 // Commit Register Value
-#define FLASH_FMC_MERASE 0x00000004 // Mass Erase Flash Memory
-#define FLASH_FMC_ERASE 0x00000002 // Erase a Page of Flash Memory
-#define FLASH_FMC_WRITE 0x00000001 // Write a Word into Flash Memory
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FCRIS register.
-//
-//*****************************************************************************
-#define FLASH_FCRIS_PROGRIS 0x00002000 // PROGVER Raw Interrupt Status
-#define FLASH_FCRIS_ERRIS 0x00000800 // ERVER Raw Interrupt Status
-#define FLASH_FCRIS_INVDRIS 0x00000400 // Invalid Data Raw Interrupt
- // Status
-#define FLASH_FCRIS_VOLTRIS 0x00000200 // VOLTSTAT Raw Interrupt Status
-#define FLASH_FCRIS_ERIS 0x00000004 // EEPROM Raw Interrupt Status
-#define FLASH_FCRIS_PRIS 0x00000002 // Programming Raw Interrupt Status
-#define FLASH_FCRIS_ARIS 0x00000001 // Access Raw Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FCIM register.
-//
-//*****************************************************************************
-#define FLASH_FCIM_PROGMASK 0x00002000 // PROGVER Interrupt Mask
-#define FLASH_FCIM_ERMASK 0x00000800 // ERVER Interrupt Mask
-#define FLASH_FCIM_INVDMASK 0x00000400 // Invalid Data Interrupt Mask
-#define FLASH_FCIM_VOLTMASK 0x00000200 // VOLT Interrupt Mask
-#define FLASH_FCIM_EMASK 0x00000004 // EEPROM Interrupt Mask
-#define FLASH_FCIM_PMASK 0x00000002 // Programming Interrupt Mask
-#define FLASH_FCIM_AMASK 0x00000001 // Access Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FCMISC register.
-//
-//*****************************************************************************
-#define FLASH_FCMISC_PROGMISC 0x00002000 // PROGVER Masked Interrupt Status
- // and Clear
-#define FLASH_FCMISC_ERMISC 0x00000800 // ERVER Masked Interrupt Status
- // and Clear
-#define FLASH_FCMISC_INVDMISC 0x00000400 // Invalid Data Masked Interrupt
- // Status and Clear
-#define FLASH_FCMISC_VOLTMISC 0x00000200 // VOLT Masked Interrupt Status and
- // Clear
-#define FLASH_FCMISC_EMISC 0x00000004 // EEPROM Masked Interrupt Status
- // and Clear
-#define FLASH_FCMISC_PMISC 0x00000002 // Programming Masked Interrupt
- // Status and Clear
-#define FLASH_FCMISC_AMISC 0x00000001 // Access Masked Interrupt Status
- // and Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FMC2 register.
-//
-//*****************************************************************************
-#define FLASH_FMC2_WRKEY 0xA4420000 // FLASH write key
-#define FLASH_FMC2_WRBUF 0x00000001 // Buffered Flash Memory Write
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FWBVAL register.
-//
-//*****************************************************************************
-#define FLASH_FWBVAL_FWB_M 0xFFFFFFFF // Flash Memory Write Buffer
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FWBN register.
-//
-//*****************************************************************************
-#define FLASH_FWBN_DATA_M 0xFFFFFFFF // Data
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_FSIZE register.
-//
-//*****************************************************************************
-#define FLASH_FSIZE_SIZE_M 0x0000FFFF // Flash Size
-#define FLASH_FSIZE_SIZE_8KB 0x00000003 // 8 KB of Flash
-#define FLASH_FSIZE_SIZE_16KB 0x00000007 // 16 KB of Flash
-#define FLASH_FSIZE_SIZE_32KB 0x0000000F // 32 KB of Flash
-#define FLASH_FSIZE_SIZE_64KB 0x0000001F // 64 KB of Flash
-#define FLASH_FSIZE_SIZE_96KB 0x0000002F // 96 KB of Flash
-#define FLASH_FSIZE_SIZE_128KB 0x0000003F // 128 KB of Flash
-#define FLASH_FSIZE_SIZE_192KB 0x0000005F // 192 KB of Flash
-#define FLASH_FSIZE_SIZE_256KB 0x0000007F // 256 KB of Flash
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_SSIZE register.
-//
-//*****************************************************************************
-#define FLASH_SSIZE_SIZE_M 0x0000FFFF // SRAM Size
-#define FLASH_SSIZE_SIZE_2KB 0x00000007 // 2 KB of SRAM
-#define FLASH_SSIZE_SIZE_4KB 0x0000000F // 4 KB of SRAM
-#define FLASH_SSIZE_SIZE_6KB 0x00000017 // 6 KB of SRAM
-#define FLASH_SSIZE_SIZE_8KB 0x0000001F // 8 KB of SRAM
-#define FLASH_SSIZE_SIZE_12KB 0x0000002F // 12 KB of SRAM
-#define FLASH_SSIZE_SIZE_16KB 0x0000003F // 16 KB of SRAM
-#define FLASH_SSIZE_SIZE_20KB 0x0000004F // 20 KB of SRAM
-#define FLASH_SSIZE_SIZE_24KB 0x0000005F // 24 KB of SRAM
-#define FLASH_SSIZE_SIZE_32KB 0x0000007F // 32 KB of SRAM
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_ROMSWMAP register.
-//
-//*****************************************************************************
-#define FLASH_ROMSWMAP_SAFERTOS 0x00000001 // SafeRTOS Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_RMCTL register.
-//
-//*****************************************************************************
-#define FLASH_RMCTL_BA 0x00000001 // Boot Alias
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_BOOTCFG register.
-//
-//*****************************************************************************
-#define FLASH_BOOTCFG_NW 0x80000000 // Not Written
-#define FLASH_BOOTCFG_PORT_M 0x0000E000 // Boot GPIO Port
-#define FLASH_BOOTCFG_PORT_A 0x00000000 // Port A
-#define FLASH_BOOTCFG_PORT_B 0x00002000 // Port B
-#define FLASH_BOOTCFG_PORT_C 0x00004000 // Port C
-#define FLASH_BOOTCFG_PORT_D 0x00006000 // Port D
-#define FLASH_BOOTCFG_PORT_E 0x00008000 // Port E
-#define FLASH_BOOTCFG_PORT_F 0x0000A000 // Port F
-#define FLASH_BOOTCFG_PORT_G 0x0000C000 // Port G
-#define FLASH_BOOTCFG_PORT_H 0x0000E000 // Port H
-#define FLASH_BOOTCFG_PIN_M 0x00001C00 // Boot GPIO Pin
-#define FLASH_BOOTCFG_PIN_0 0x00000000 // Pin 0
-#define FLASH_BOOTCFG_PIN_1 0x00000400 // Pin 1
-#define FLASH_BOOTCFG_PIN_2 0x00000800 // Pin 2
-#define FLASH_BOOTCFG_PIN_3 0x00000C00 // Pin 3
-#define FLASH_BOOTCFG_PIN_4 0x00001000 // Pin 4
-#define FLASH_BOOTCFG_PIN_5 0x00001400 // Pin 5
-#define FLASH_BOOTCFG_PIN_6 0x00001800 // Pin 6
-#define FLASH_BOOTCFG_PIN_7 0x00001C00 // Pin 7
-#define FLASH_BOOTCFG_POL 0x00000200 // Boot GPIO Polarity
-#define FLASH_BOOTCFG_EN 0x00000100 // Boot GPIO Enable
-#define FLASH_BOOTCFG_DBG1 0x00000002 // Debug Control 1
-#define FLASH_BOOTCFG_DBG0 0x00000001 // Debug Control 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_USERREG0 register.
-//
-//*****************************************************************************
-#define FLASH_USERREG0_NW 0x80000000 // Not Written
-#define FLASH_USERREG0_DATA_M 0x7FFFFFFF // User Data
-#define FLASH_USERREG0_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_USERREG1 register.
-//
-//*****************************************************************************
-#define FLASH_USERREG1_NW 0x80000000 // Not Written
-#define FLASH_USERREG1_DATA_M 0x7FFFFFFF // User Data
-#define FLASH_USERREG1_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_USERREG2 register.
-//
-//*****************************************************************************
-#define FLASH_USERREG2_NW 0x80000000 // Not Written
-#define FLASH_USERREG2_DATA_M 0x7FFFFFFF // User Data
-#define FLASH_USERREG2_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the FLASH_USERREG3 register.
-//
-//*****************************************************************************
-#define FLASH_USERREG3_NW 0x80000000 // Not Written
-#define FLASH_USERREG3_DATA_M 0x7FFFFFFF // User Data
-#define FLASH_USERREG3_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DID0 register.
-//
-//*****************************************************************************
-#define SYSCTL_DID0_VER_M 0x70000000 // DID0 Version
-#define SYSCTL_DID0_VER_1 0x10000000 // Second version of the DID0
- // register format
-#define SYSCTL_DID0_CLASS_M 0x00FF0000 // Device Class
-#define SYSCTL_DID0_CLASS_BLIZZARD \
- 0x00050000 // Stellaris(R) Blizzard-class
- // microcontrollers
-#define SYSCTL_DID0_MAJ_M 0x0000FF00 // Major Revision
-#define SYSCTL_DID0_MAJ_REVA 0x00000000 // Revision A (initial device)
-#define SYSCTL_DID0_MAJ_REVB 0x00000100 // Revision B (first base layer
- // revision)
-#define SYSCTL_DID0_MAJ_REVC 0x00000200 // Revision C (second base layer
- // revision)
-#define SYSCTL_DID0_MIN_M 0x000000FF // Minor Revision
-#define SYSCTL_DID0_MIN_0 0x00000000 // Initial device, or a major
- // revision update
-#define SYSCTL_DID0_MIN_1 0x00000001 // First metal layer change
-#define SYSCTL_DID0_MIN_2 0x00000002 // Second metal layer change
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DID1 register.
-//
-//*****************************************************************************
-#define SYSCTL_DID1_VER_M 0xF0000000 // DID1 Version
-#define SYSCTL_DID1_VER_0 0x00000000 // Initial DID1 register format
- // definition, indicating a
- // Stellaris LM3Snnn device
-#define SYSCTL_DID1_VER_1 0x10000000 // Second version of the DID1
- // register format
-#define SYSCTL_DID1_FAM_M 0x0F000000 // Family
-#define SYSCTL_DID1_FAM_STELLARIS \
- 0x00000000 // Stellaris family of
- // microcontollers, that is, all
- // devices with external part
- // numbers starting with LM3S
-#define SYSCTL_DID1_PRTNO_M 0x00FF0000 // Part Number
-#define SYSCTL_DID1_PRTNO_LM4F232H5QD \
- 0x00C50000 // LM4F232H5QD
-#define SYSCTL_DID1_PINCNT_M 0x0000E000 // Package Pin Count
-#define SYSCTL_DID1_PINCNT_28 0x00000000 // 28 pin package
-#define SYSCTL_DID1_PINCNT_48 0x00002000 // 48-pin package
-#define SYSCTL_DID1_PINCNT_100 0x00004000 // 100-pin package
-#define SYSCTL_DID1_PINCNT_64 0x00006000 // 64-pin package
-#define SYSCTL_DID1_PINCNT_144 0x00008000 // 144-pin package
-#define SYSCTL_DID1_PINCNT_157 0x0000A000 // 157-pin package
-#define SYSCTL_DID1_TEMP_M 0x000000E0 // Temperature Range
-#define SYSCTL_DID1_TEMP_C 0x00000000 // Commercial temperature range (0C
- // to 70C)
-#define SYSCTL_DID1_TEMP_I 0x00000020 // Industrial temperature range
- // (-40C to 85C)
-#define SYSCTL_DID1_TEMP_E 0x00000040 // Extended temperature range (-40C
- // to 105C)
-#define SYSCTL_DID1_PKG_M 0x00000018 // Package Type
-#define SYSCTL_DID1_PKG_SOIC 0x00000000 // SOIC package
-#define SYSCTL_DID1_PKG_QFP 0x00000008 // LQFP package
-#define SYSCTL_DID1_PKG_BGA 0x00000010 // BGA package
-#define SYSCTL_DID1_ROHS 0x00000004 // RoHS-Compliance
-#define SYSCTL_DID1_QUAL_M 0x00000003 // Qualification Status
-#define SYSCTL_DID1_QUAL_ES 0x00000000 // Engineering Sample (unqualified)
-#define SYSCTL_DID1_QUAL_PP 0x00000001 // Pilot Production (unqualified)
-#define SYSCTL_DID1_QUAL_FQ 0x00000002 // Fully Qualified
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC0 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC0_SRAMSZ_M 0xFFFF0000 // SRAM Size
-#define SYSCTL_DC0_SRAMSZ_2KB 0x00070000 // 2 KB of SRAM
-#define SYSCTL_DC0_SRAMSZ_4KB 0x000F0000 // 4 KB of SRAM
-#define SYSCTL_DC0_SRAMSZ_6KB 0x00170000 // 6 KB of SRAM
-#define SYSCTL_DC0_SRAMSZ_8KB 0x001F0000 // 8 KB of SRAM
-#define SYSCTL_DC0_SRAMSZ_12KB 0x002F0000 // 12 KB of SRAM
-#define SYSCTL_DC0_SRAMSZ_16KB 0x003F0000 // 16 KB of SRAM
-#define SYSCTL_DC0_SRAMSZ_20KB 0x004F0000 // 20 KB of SRAM
-#define SYSCTL_DC0_SRAMSZ_24KB 0x005F0000 // 24 KB of SRAM
-#define SYSCTL_DC0_SRAMSZ_32KB 0x007F0000 // 32 KB of SRAM
-#define SYSCTL_DC0_FLASHSZ_M 0x0000FFFF // Flash Size
-#define SYSCTL_DC0_FLASHSZ_8KB 0x00000003 // 8 KB of Flash
-#define SYSCTL_DC0_FLASHSZ_16KB 0x00000007 // 16 KB of Flash
-#define SYSCTL_DC0_FLASHSZ_32KB 0x0000000F // 32 KB of Flash
-#define SYSCTL_DC0_FLASHSZ_64KB 0x0000001F // 64 KB of Flash
-#define SYSCTL_DC0_FLASHSZ_96KB 0x0000002F // 96 KB of Flash
-#define SYSCTL_DC0_FLASHSZ_128K 0x0000003F // 128 KB of Flash
-#define SYSCTL_DC0_FLASHSZ_192K 0x0000005F // 192 KB of Flash
-#define SYSCTL_DC0_FLASHSZ_256K 0x0000007F // 256 KB of Flash
-#define SYSCTL_DC0_SRAMSZ_S 16 // SRAM size shift
-#define SYSCTL_DC0_FLASHSZ_S 0 // Flash size shift
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC1 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC1_WDT1 0x10000000 // Watchdog Timer1 Present
-#define SYSCTL_DC1_CAN1 0x02000000 // CAN Module 1 Present
-#define SYSCTL_DC1_CAN0 0x01000000 // CAN Module 0 Present
-#define SYSCTL_DC1_PWM1 0x00200000 // PWM Module 1 Present
-#define SYSCTL_DC1_PWM0 0x00100000 // PWM Module 0 Present
-#define SYSCTL_DC1_ADC1 0x00020000 // ADC Module 1 Present
-#define SYSCTL_DC1_ADC0 0x00010000 // ADC Module 0 Present
-#define SYSCTL_DC1_MINSYSDIV_M 0x0000F000 // System Clock Divider
-#define SYSCTL_DC1_MINSYSDIV_100 \
- 0x00001000 // Divide VCO (400MHZ) by 5 minimum
-#define SYSCTL_DC1_MINSYSDIV_66 0x00002000 // Divide VCO (400MHZ) by 2*2 + 2 =
- // 6 minimum
-#define SYSCTL_DC1_MINSYSDIV_50 0x00003000 // Specifies a 50-MHz CPU clock
- // with a PLL divider of 4
-#define SYSCTL_DC1_MINSYSDIV_40 0x00004000 // Specifies a 40-MHz CPU clock
- // with a PLL divider of 5
-#define SYSCTL_DC1_MINSYSDIV_25 0x00007000 // Specifies a 25-MHz clock with a
- // PLL divider of 8
-#define SYSCTL_DC1_MINSYSDIV_20 0x00009000 // Specifies a 20-MHz clock with a
- // PLL divider of 10
-#define SYSCTL_DC1_ADC1SPD_M 0x00000C00 // Max ADC1 Speed
-#define SYSCTL_DC1_ADC1SPD_125K 0x00000000 // 125K samples/second
-#define SYSCTL_DC1_ADC1SPD_250K 0x00000400 // 250K samples/second
-#define SYSCTL_DC1_ADC1SPD_500K 0x00000800 // 500K samples/second
-#define SYSCTL_DC1_ADC1SPD_1M 0x00000C00 // 1M samples/second
-#define SYSCTL_DC1_ADC0SPD_M 0x00000300 // Max ADC0 Speed
-#define SYSCTL_DC1_ADC0SPD_125K 0x00000000 // 125K samples/second
-#define SYSCTL_DC1_ADC0SPD_250K 0x00000100 // 250K samples/second
-#define SYSCTL_DC1_ADC0SPD_500K 0x00000200 // 500K samples/second
-#define SYSCTL_DC1_ADC0SPD_1M 0x00000300 // 1M samples/second
-#define SYSCTL_DC1_MPU 0x00000080 // MPU Present
-#define SYSCTL_DC1_HIB 0x00000040 // Hibernation Module Present
-#define SYSCTL_DC1_TEMP 0x00000020 // Temp Sensor Present
-#define SYSCTL_DC1_PLL 0x00000010 // PLL Present
-#define SYSCTL_DC1_WDT0 0x00000008 // Watchdog Timer 0 Present
-#define SYSCTL_DC1_SWO 0x00000004 // SWO Trace Port Present
-#define SYSCTL_DC1_SWD 0x00000002 // SWD Present
-#define SYSCTL_DC1_JTAG 0x00000001 // JTAG Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC2 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC2_EPI0 0x40000000 // EPI Module 0 Present
-#define SYSCTL_DC2_I2S0 0x10000000 // I2S Module 0 Present
-#define SYSCTL_DC2_COMP2 0x04000000 // Analog Comparator 2 Present
-#define SYSCTL_DC2_COMP1 0x02000000 // Analog Comparator 1 Present
-#define SYSCTL_DC2_COMP0 0x01000000 // Analog Comparator 0 Present
-#define SYSCTL_DC2_TIMER3 0x00080000 // Timer Module 3 Present
-#define SYSCTL_DC2_TIMER2 0x00040000 // Timer Module 2 Present
-#define SYSCTL_DC2_TIMER1 0x00020000 // Timer Module 1 Present
-#define SYSCTL_DC2_TIMER0 0x00010000 // Timer Module 0 Present
-#define SYSCTL_DC2_I2C1HS 0x00008000 // I2C Module 1 Speed
-#define SYSCTL_DC2_I2C1 0x00004000 // I2C Module 1 Present
-#define SYSCTL_DC2_I2C0HS 0x00002000 // I2C Module 0 Speed
-#define SYSCTL_DC2_I2C0 0x00001000 // I2C Module 0 Present
-#define SYSCTL_DC2_QEI1 0x00000200 // QEI Module 1 Present
-#define SYSCTL_DC2_QEI0 0x00000100 // QEI Module 0 Present
-#define SYSCTL_DC2_SSI1 0x00000020 // SSI Module 1 Present
-#define SYSCTL_DC2_SSI0 0x00000010 // SSI Module 0 Present
-#define SYSCTL_DC2_UART2 0x00000004 // UART Module 2 Present
-#define SYSCTL_DC2_UART1 0x00000002 // UART Module 1 Present
-#define SYSCTL_DC2_UART0 0x00000001 // UART Module 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC3 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC3_32KHZ 0x80000000 // 32KHz Input Clock Available
-#define SYSCTL_DC3_CCP5 0x20000000 // CCP5 Pin Present
-#define SYSCTL_DC3_CCP4 0x10000000 // CCP4 Pin Present
-#define SYSCTL_DC3_CCP3 0x08000000 // CCP3 Pin Present
-#define SYSCTL_DC3_CCP2 0x04000000 // CCP2 Pin Present
-#define SYSCTL_DC3_CCP1 0x02000000 // CCP1 Pin Present
-#define SYSCTL_DC3_CCP0 0x01000000 // CCP0 Pin Present
-#define SYSCTL_DC3_ADC0AIN7 0x00800000 // ADC Module 0 AIN7 Pin Present
-#define SYSCTL_DC3_ADC0AIN6 0x00400000 // ADC Module 0 AIN6 Pin Present
-#define SYSCTL_DC3_ADC0AIN5 0x00200000 // ADC Module 0 AIN5 Pin Present
-#define SYSCTL_DC3_ADC0AIN4 0x00100000 // ADC Module 0 AIN4 Pin Present
-#define SYSCTL_DC3_ADC0AIN3 0x00080000 // ADC Module 0 AIN3 Pin Present
-#define SYSCTL_DC3_ADC0AIN2 0x00040000 // ADC Module 0 AIN2 Pin Present
-#define SYSCTL_DC3_ADC0AIN1 0x00020000 // ADC Module 0 AIN1 Pin Present
-#define SYSCTL_DC3_ADC0AIN0 0x00010000 // ADC Module 0 AIN0 Pin Present
-#define SYSCTL_DC3_PWMFAULT 0x00008000 // PWM Fault Pin Present
-#define SYSCTL_DC3_C2O 0x00004000 // C2o Pin Present
-#define SYSCTL_DC3_C2PLUS 0x00002000 // C2+ Pin Present
-#define SYSCTL_DC3_C2MINUS 0x00001000 // C2- Pin Present
-#define SYSCTL_DC3_C1O 0x00000800 // C1o Pin Present
-#define SYSCTL_DC3_C1PLUS 0x00000400 // C1+ Pin Present
-#define SYSCTL_DC3_C1MINUS 0x00000200 // C1- Pin Present
-#define SYSCTL_DC3_C0O 0x00000100 // C0o Pin Present
-#define SYSCTL_DC3_C0PLUS 0x00000080 // C0+ Pin Present
-#define SYSCTL_DC3_C0MINUS 0x00000040 // C0- Pin Present
-#define SYSCTL_DC3_PWM5 0x00000020 // PWM5 Pin Present
-#define SYSCTL_DC3_PWM4 0x00000010 // PWM4 Pin Present
-#define SYSCTL_DC3_PWM3 0x00000008 // PWM3 Pin Present
-#define SYSCTL_DC3_PWM2 0x00000004 // PWM2 Pin Present
-#define SYSCTL_DC3_PWM1 0x00000002 // PWM1 Pin Present
-#define SYSCTL_DC3_PWM0 0x00000001 // PWM0 Pin Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC4 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC4_EPHY0 0x40000000 // Ethernet PHY Layer 0 Present
-#define SYSCTL_DC4_EMAC0 0x10000000 // Ethernet MAC Layer 0 Present
-#define SYSCTL_DC4_E1588 0x01000000 // 1588 Capable
-#define SYSCTL_DC4_PICAL 0x00040000 // PIOSC Calibrate
-#define SYSCTL_DC4_CCP7 0x00008000 // CCP7 Pin Present
-#define SYSCTL_DC4_CCP6 0x00004000 // CCP6 Pin Present
-#define SYSCTL_DC4_UDMA 0x00002000 // Micro-DMA Module Present
-#define SYSCTL_DC4_ROM 0x00001000 // Internal Code ROM Present
-#define SYSCTL_DC4_GPIOJ 0x00000100 // GPIO Port J Present
-#define SYSCTL_DC4_GPIOH 0x00000080 // GPIO Port H Present
-#define SYSCTL_DC4_GPIOG 0x00000040 // GPIO Port G Present
-#define SYSCTL_DC4_GPIOF 0x00000020 // GPIO Port F Present
-#define SYSCTL_DC4_GPIOE 0x00000010 // GPIO Port E Present
-#define SYSCTL_DC4_GPIOD 0x00000008 // GPIO Port D Present
-#define SYSCTL_DC4_GPIOC 0x00000004 // GPIO Port C Present
-#define SYSCTL_DC4_GPIOB 0x00000002 // GPIO Port B Present
-#define SYSCTL_DC4_GPIOA 0x00000001 // GPIO Port A Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC5 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC5_PWMFAULT3 0x08000000 // PWM Fault 3 Pin Present
-#define SYSCTL_DC5_PWMFAULT2 0x04000000 // PWM Fault 2 Pin Present
-#define SYSCTL_DC5_PWMFAULT1 0x02000000 // PWM Fault 1 Pin Present
-#define SYSCTL_DC5_PWMFAULT0 0x01000000 // PWM Fault 0 Pin Present
-#define SYSCTL_DC5_PWMEFLT 0x00200000 // PWM Extended Fault Active
-#define SYSCTL_DC5_PWMESYNC 0x00100000 // PWM Extended SYNC Active
-#define SYSCTL_DC5_PWM7 0x00000080 // PWM7 Pin Present
-#define SYSCTL_DC5_PWM6 0x00000040 // PWM6 Pin Present
-#define SYSCTL_DC5_PWM5 0x00000020 // PWM5 Pin Present
-#define SYSCTL_DC5_PWM4 0x00000010 // PWM4 Pin Present
-#define SYSCTL_DC5_PWM3 0x00000008 // PWM3 Pin Present
-#define SYSCTL_DC5_PWM2 0x00000004 // PWM2 Pin Present
-#define SYSCTL_DC5_PWM1 0x00000002 // PWM1 Pin Present
-#define SYSCTL_DC5_PWM0 0x00000001 // PWM0 Pin Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC6 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC6_USB0PHY 0x00000010 // USB Module 0 PHY Present
-#define SYSCTL_DC6_USB0_M 0x00000003 // USB Module 0 Present
-#define SYSCTL_DC6_USB0_DEV 0x00000001 // USB0 is Device Only
-#define SYSCTL_DC6_USB0_HOSTDEV 0x00000002 // USB is Device or Host
-#define SYSCTL_DC6_USB0_OTG 0x00000003 // USB0 is OTG
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC7 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC7_DMACH30 0x40000000 // SW
-#define SYSCTL_DC7_DMACH29 0x20000000 // I2S0_TX / CAN1_TX
-#define SYSCTL_DC7_DMACH28 0x10000000 // I2S0_RX / CAN1_RX
-#define SYSCTL_DC7_DMACH27 0x08000000 // CAN1_TX / ADC1_SS3
-#define SYSCTL_DC7_DMACH26 0x04000000 // CAN1_RX / ADC1_SS2
-#define SYSCTL_DC7_DMACH25 0x02000000 // SSI1_TX / ADC1_SS1
-#define SYSCTL_DC7_DMACH24 0x01000000 // SSI1_RX / ADC1_SS0
-#define SYSCTL_DC7_DMACH23 0x00800000 // UART1_TX / CAN2_TX
-#define SYSCTL_DC7_DMACH22 0x00400000 // UART1_RX / CAN2_RX
-#define SYSCTL_DC7_DMACH21 0x00200000 // Timer1B / EPI0_WFIFO
-#define SYSCTL_DC7_DMACH20 0x00100000 // Timer1A / EPI0_NBRFIFO
-#define SYSCTL_DC7_DMACH19 0x00080000 // Timer0B / Timer1B
-#define SYSCTL_DC7_DMACH18 0x00040000 // Timer0A / Timer1A
-#define SYSCTL_DC7_DMACH17 0x00020000 // ADC0_SS3
-#define SYSCTL_DC7_DMACH16 0x00010000 // ADC0_SS2
-#define SYSCTL_DC7_DMACH15 0x00008000 // ADC0_SS1 / Timer2B
-#define SYSCTL_DC7_DMACH14 0x00004000 // ADC0_SS0 / Timer2A
-#define SYSCTL_DC7_DMACH13 0x00002000 // CAN0_TX / UART2_TX
-#define SYSCTL_DC7_DMACH12 0x00001000 // CAN0_RX / UART2_RX
-#define SYSCTL_DC7_DMACH11 0x00000800 // SSI0_TX / SSI1_TX
-#define SYSCTL_DC7_DMACH10 0x00000400 // SSI0_RX / SSI1_RX
-#define SYSCTL_DC7_DMACH9 0x00000200 // UART0_TX / UART1_TX
-#define SYSCTL_DC7_DMACH8 0x00000100 // UART0_RX / UART1_RX
-#define SYSCTL_DC7_DMACH7 0x00000080 // ETH_TX / Timer2B
-#define SYSCTL_DC7_DMACH6 0x00000040 // ETH_RX / Timer2A
-#define SYSCTL_DC7_DMACH5 0x00000020 // USB_EP3_TX / Timer2B
-#define SYSCTL_DC7_DMACH4 0x00000010 // USB_EP3_RX / Timer2A
-#define SYSCTL_DC7_DMACH3 0x00000008 // USB_EP2_TX / Timer3B
-#define SYSCTL_DC7_DMACH2 0x00000004 // USB_EP2_RX / Timer3A
-#define SYSCTL_DC7_DMACH1 0x00000002 // USB_EP1_TX / UART2_TX
-#define SYSCTL_DC7_DMACH0 0x00000001 // USB_EP1_RX / UART2_RX
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC8 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC8_ADC1AIN15 0x80000000 // ADC Module 1 AIN15 Pin Present
-#define SYSCTL_DC8_ADC1AIN14 0x40000000 // ADC Module 1 AIN14 Pin Present
-#define SYSCTL_DC8_ADC1AIN13 0x20000000 // ADC Module 1 AIN13 Pin Present
-#define SYSCTL_DC8_ADC1AIN12 0x10000000 // ADC Module 1 AIN12 Pin Present
-#define SYSCTL_DC8_ADC1AIN11 0x08000000 // ADC Module 1 AIN11 Pin Present
-#define SYSCTL_DC8_ADC1AIN10 0x04000000 // ADC Module 1 AIN10 Pin Present
-#define SYSCTL_DC8_ADC1AIN9 0x02000000 // ADC Module 1 AIN9 Pin Present
-#define SYSCTL_DC8_ADC1AIN8 0x01000000 // ADC Module 1 AIN8 Pin Present
-#define SYSCTL_DC8_ADC1AIN7 0x00800000 // ADC Module 1 AIN7 Pin Present
-#define SYSCTL_DC8_ADC1AIN6 0x00400000 // ADC Module 1 AIN6 Pin Present
-#define SYSCTL_DC8_ADC1AIN5 0x00200000 // ADC Module 1 AIN5 Pin Present
-#define SYSCTL_DC8_ADC1AIN4 0x00100000 // ADC Module 1 AIN4 Pin Present
-#define SYSCTL_DC8_ADC1AIN3 0x00080000 // ADC Module 1 AIN3 Pin Present
-#define SYSCTL_DC8_ADC1AIN2 0x00040000 // ADC Module 1 AIN2 Pin Present
-#define SYSCTL_DC8_ADC1AIN1 0x00020000 // ADC Module 1 AIN1 Pin Present
-#define SYSCTL_DC8_ADC1AIN0 0x00010000 // ADC Module 1 AIN0 Pin Present
-#define SYSCTL_DC8_ADC0AIN15 0x00008000 // ADC Module 0 AIN15 Pin Present
-#define SYSCTL_DC8_ADC0AIN14 0x00004000 // ADC Module 0 AIN14 Pin Present
-#define SYSCTL_DC8_ADC0AIN13 0x00002000 // ADC Module 0 AIN13 Pin Present
-#define SYSCTL_DC8_ADC0AIN12 0x00001000 // ADC Module 0 AIN12 Pin Present
-#define SYSCTL_DC8_ADC0AIN11 0x00000800 // ADC Module 0 AIN11 Pin Present
-#define SYSCTL_DC8_ADC0AIN10 0x00000400 // ADC Module 0 AIN10 Pin Present
-#define SYSCTL_DC8_ADC0AIN9 0x00000200 // ADC Module 0 AIN9 Pin Present
-#define SYSCTL_DC8_ADC0AIN8 0x00000100 // ADC Module 0 AIN8 Pin Present
-#define SYSCTL_DC8_ADC0AIN7 0x00000080 // ADC Module 0 AIN7 Pin Present
-#define SYSCTL_DC8_ADC0AIN6 0x00000040 // ADC Module 0 AIN6 Pin Present
-#define SYSCTL_DC8_ADC0AIN5 0x00000020 // ADC Module 0 AIN5 Pin Present
-#define SYSCTL_DC8_ADC0AIN4 0x00000010 // ADC Module 0 AIN4 Pin Present
-#define SYSCTL_DC8_ADC0AIN3 0x00000008 // ADC Module 0 AIN3 Pin Present
-#define SYSCTL_DC8_ADC0AIN2 0x00000004 // ADC Module 0 AIN2 Pin Present
-#define SYSCTL_DC8_ADC0AIN1 0x00000002 // ADC Module 0 AIN1 Pin Present
-#define SYSCTL_DC8_ADC0AIN0 0x00000001 // ADC Module 0 AIN0 Pin Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PBORCTL register.
-//
-//*****************************************************************************
-#define SYSCTL_PBORCTL_BORIOR 0x00000002 // BOR Interrupt or Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRCR0 register.
-//
-//*****************************************************************************
-#define SYSCTL_SRCR0_WDT1 0x10000000 // WDT1 Reset Control
-#define SYSCTL_SRCR0_CAN1 0x02000000 // CAN1 Reset Control
-#define SYSCTL_SRCR0_CAN0 0x01000000 // CAN0 Reset Control
-#define SYSCTL_SRCR0_PWM0 0x00100000 // PWM Reset Control
-#define SYSCTL_SRCR0_ADC1 0x00020000 // ADC1 Reset Control
-#define SYSCTL_SRCR0_ADC0 0x00010000 // ADC0 Reset Control
-#define SYSCTL_SRCR0_HIB 0x00000040 // HIB Reset Control
-#define SYSCTL_SRCR0_WDT0 0x00000008 // WDT0 Reset Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRCR1 register.
-//
-//*****************************************************************************
-#define SYSCTL_SRCR1_COMP2 0x04000000 // Analog Comp 2 Reset Control
-#define SYSCTL_SRCR1_COMP1 0x02000000 // Analog Comp 1 Reset Control
-#define SYSCTL_SRCR1_COMP0 0x01000000 // Analog Comp 0 Reset Control
-#define SYSCTL_SRCR1_TIMER3 0x00080000 // Timer 3 Reset Control
-#define SYSCTL_SRCR1_TIMER2 0x00040000 // Timer 2 Reset Control
-#define SYSCTL_SRCR1_TIMER1 0x00020000 // Timer 1 Reset Control
-#define SYSCTL_SRCR1_TIMER0 0x00010000 // Timer 0 Reset Control
-#define SYSCTL_SRCR1_I2C1 0x00004000 // I2C1 Reset Control
-#define SYSCTL_SRCR1_I2C0 0x00001000 // I2C0 Reset Control
-#define SYSCTL_SRCR1_QEI1 0x00000200 // QEI1 Reset Control
-#define SYSCTL_SRCR1_QEI0 0x00000100 // QEI0 Reset Control
-#define SYSCTL_SRCR1_SSI1 0x00000020 // SSI1 Reset Control
-#define SYSCTL_SRCR1_SSI0 0x00000010 // SSI0 Reset Control
-#define SYSCTL_SRCR1_UART2 0x00000004 // UART2 Reset Control
-#define SYSCTL_SRCR1_UART1 0x00000002 // UART1 Reset Control
-#define SYSCTL_SRCR1_UART0 0x00000001 // UART0 Reset Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRCR2 register.
-//
-//*****************************************************************************
-#define SYSCTL_SRCR2_USB0 0x00010000 // USB0 Reset Control
-#define SYSCTL_SRCR2_UDMA 0x00002000 // Micro-DMA Reset Control
-#define SYSCTL_SRCR2_GPIOJ 0x00000100 // Port J Reset Control
-#define SYSCTL_SRCR2_GPIOH 0x00000080 // Port H Reset Control
-#define SYSCTL_SRCR2_GPIOG 0x00000040 // Port G Reset Control
-#define SYSCTL_SRCR2_GPIOF 0x00000020 // Port F Reset Control
-#define SYSCTL_SRCR2_GPIOE 0x00000010 // Port E Reset Control
-#define SYSCTL_SRCR2_GPIOD 0x00000008 // Port D Reset Control
-#define SYSCTL_SRCR2_GPIOC 0x00000004 // Port C Reset Control
-#define SYSCTL_SRCR2_GPIOB 0x00000002 // Port B Reset Control
-#define SYSCTL_SRCR2_GPIOA 0x00000001 // Port A Reset Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RIS register.
-//
-//*****************************************************************************
-#define SYSCTL_RIS_MOSCPUPRIS 0x00000100 // MOSC Power Up Raw Interrupt
- // Status
-#define SYSCTL_RIS_USBPLLLRIS 0x00000080 // USB PLL Lock Raw Interrupt
- // Status
-#define SYSCTL_RIS_PLLLRIS 0x00000040 // PLL Lock Raw Interrupt Status
-#define SYSCTL_RIS_MOFRIS 0x00000008 // Main Oscillator Fault Raw
- // Interrupt Status
-#define SYSCTL_RIS_BORRIS 0x00000002 // Brown-Out Reset Raw Interrupt
- // Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_IMC register.
-//
-//*****************************************************************************
-#define SYSCTL_IMC_MOSCPUPIM 0x00000100 // MOSC Power Up Interrupt Mask
-#define SYSCTL_IMC_USBPLLLIM 0x00000080 // USB PLL Lock Interrupt Mask
-#define SYSCTL_IMC_PLLLIM 0x00000040 // PLL Lock Interrupt Mask
-#define SYSCTL_IMC_MOFIM 0x00000008 // Main Oscillator Fault Interrupt
- // Mask
-#define SYSCTL_IMC_BORIM 0x00000002 // Brown-Out Reset Interrupt Mask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_MISC register.
-//
-//*****************************************************************************
-#define SYSCTL_MISC_MOSCPUPMIS 0x00000100 // MOSC Power Up Masked Interrupt
- // Status
-#define SYSCTL_MISC_USBPLLLMIS 0x00000080 // USB PLL Lock Masked Interrupt
- // Status
-#define SYSCTL_MISC_PLLLMIS 0x00000040 // PLL Lock Masked Interrupt Status
-#define SYSCTL_MISC_MOFMIS 0x00000008 // Main Oscillator Fault Masked
- // Interrupt Status
-#define SYSCTL_MISC_BORMIS 0x00000002 // BOR Masked Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RESC register.
-//
-//*****************************************************************************
-#define SYSCTL_RESC_MOSCFAIL 0x00010000 // MOSC Failure Reset
-#define SYSCTL_RESC_WDT1 0x00000020 // Watchdog Timer 1 Reset
-#define SYSCTL_RESC_SW 0x00000010 // Software Reset
-#define SYSCTL_RESC_WDT0 0x00000008 // Watchdog Timer 0 Reset
-#define SYSCTL_RESC_BOR 0x00000004 // Brown-Out Reset
-#define SYSCTL_RESC_POR 0x00000002 // Power-On Reset
-#define SYSCTL_RESC_EXT 0x00000001 // External Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCC register.
-//
-//*****************************************************************************
-#define SYSCTL_RCC_ACG 0x08000000 // Auto Clock Gating
-#define SYSCTL_RCC_SYSDIV_M 0x07800000 // System Clock Divisor
-#define SYSCTL_RCC_USESYSDIV 0x00400000 // Enable System Clock Divider
-#define SYSCTL_RCC_USEPWMDIV 0x00100000 // Enable PWM Clock Divisor
-#define SYSCTL_RCC_PWMDIV_M 0x000E0000 // PWM Unit Clock Divisor
-#define SYSCTL_RCC_PWMDIV_2 0x00000000 // PWM clock /2
-#define SYSCTL_RCC_PWMDIV_4 0x00020000 // PWM clock /4
-#define SYSCTL_RCC_PWMDIV_8 0x00040000 // PWM clock /8
-#define SYSCTL_RCC_PWMDIV_16 0x00060000 // PWM clock /16
-#define SYSCTL_RCC_PWMDIV_32 0x00080000 // PWM clock /32
-#define SYSCTL_RCC_PWMDIV_64 0x000A0000 // PWM clock /64
-#define SYSCTL_RCC_PWRDN 0x00002000 // PLL Power Down
-#define SYSCTL_RCC_BYPASS 0x00000800 // PLL Bypass
-#define SYSCTL_RCC_XTAL_M 0x000007C0 // Crystal Value
-#define SYSCTL_RCC_XTAL_4MHZ 0x00000180 // 4 MHz
-#define SYSCTL_RCC_XTAL_4_09MHZ 0x000001C0 // 4.096 MHz
-#define SYSCTL_RCC_XTAL_4_91MHZ 0x00000200 // 4.9152 MHz
-#define SYSCTL_RCC_XTAL_5MHZ 0x00000240 // 5 MHz
-#define SYSCTL_RCC_XTAL_5_12MHZ 0x00000280 // 5.12 MHz
-#define SYSCTL_RCC_XTAL_6MHZ 0x000002C0 // 6 MHz
-#define SYSCTL_RCC_XTAL_6_14MHZ 0x00000300 // 6.144 MHz
-#define SYSCTL_RCC_XTAL_7_37MHZ 0x00000340 // 7.3728 MHz
-#define SYSCTL_RCC_XTAL_8MHZ 0x00000380 // 8 MHz
-#define SYSCTL_RCC_XTAL_8_19MHZ 0x000003C0 // 8.192 MHz
-#define SYSCTL_RCC_XTAL_10MHZ 0x00000400 // 10 MHz
-#define SYSCTL_RCC_XTAL_12MHZ 0x00000440 // 12 MHz
-#define SYSCTL_RCC_XTAL_12_2MHZ 0x00000480 // 12.288 MHz
-#define SYSCTL_RCC_XTAL_13_5MHZ 0x000004C0 // 13.56 MHz
-#define SYSCTL_RCC_XTAL_14_3MHZ 0x00000500 // 14.31818 MHz
-#define SYSCTL_RCC_XTAL_16MHZ 0x00000540 // 16 MHz
-#define SYSCTL_RCC_XTAL_16_3MHZ 0x00000580 // 16.384 MHz
-#define SYSCTL_RCC_XTAL_18MHZ 0x000005C0 // 18.0 MHz
-#define SYSCTL_RCC_XTAL_20MHZ 0x00000600 // 20.0 MHz
-#define SYSCTL_RCC_XTAL_24MHZ 0x00000640 // 24.0 MHz
-#define SYSCTL_RCC_XTAL_25MHZ 0x00000680 // 25.0 MHz
-#define SYSCTL_RCC_OSCSRC_M 0x00000030 // Oscillator Source
-#define SYSCTL_RCC_OSCSRC_MAIN 0x00000000 // MOSC
-#define SYSCTL_RCC_OSCSRC_INT 0x00000010 // IOSC
-#define SYSCTL_RCC_OSCSRC_INT4 0x00000020 // IOSC/4
-#define SYSCTL_RCC_OSCSRC_30 0x00000030 // 30 kHz
-#define SYSCTL_RCC_IOSCDIS 0x00000002 // Internal Oscillator Disable
-#define SYSCTL_RCC_MOSCDIS 0x00000001 // Main Oscillator Disable
-#define SYSCTL_RCC_SYSDIV_S 23
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_GPIOHBCTL
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_GPIOHBCTL_PORTJ 0x00000100 // Port J Advanced High-Performance
- // Bus
-#define SYSCTL_GPIOHBCTL_PORTH 0x00000080 // Port H Advanced High-Performance
- // Bus
-#define SYSCTL_GPIOHBCTL_PORTG 0x00000040 // Port G Advanced High-Performance
- // Bus
-#define SYSCTL_GPIOHBCTL_PORTF 0x00000020 // Port F Advanced High-Performance
- // Bus
-#define SYSCTL_GPIOHBCTL_PORTE 0x00000010 // Port E Advanced High-Performance
- // Bus
-#define SYSCTL_GPIOHBCTL_PORTD 0x00000008 // Port D Advanced High-Performance
- // Bus
-#define SYSCTL_GPIOHBCTL_PORTC 0x00000004 // Port C Advanced High-Performance
- // Bus
-#define SYSCTL_GPIOHBCTL_PORTB 0x00000002 // Port B Advanced High-Performance
- // Bus
-#define SYSCTL_GPIOHBCTL_PORTA 0x00000001 // Port A Advanced High-Performance
- // Bus
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCC2 register.
-//
-//*****************************************************************************
-#define SYSCTL_RCC2_USERCC2 0x80000000 // Use RCC2
-#define SYSCTL_RCC2_DIV400 0x40000000 // Divide PLL as 400 MHz vs. 200
- // MHz
-#define SYSCTL_RCC2_SYSDIV2_M 0x1F800000 // System Clock Divisor 2
-#define SYSCTL_RCC2_SYSDIV2_2 0x00800000 // System clock /2
-#define SYSCTL_RCC2_SYSDIV2_3 0x01000000 // System clock /3
-#define SYSCTL_RCC2_SYSDIV2_4 0x01800000 // System clock /4
-#define SYSCTL_RCC2_SYSDIV2_5 0x02000000 // System clock /5
-#define SYSCTL_RCC2_SYSDIV2_6 0x02800000 // System clock /6
-#define SYSCTL_RCC2_SYSDIV2_7 0x03000000 // System clock /7
-#define SYSCTL_RCC2_SYSDIV2_8 0x03800000 // System clock /8
-#define SYSCTL_RCC2_SYSDIV2_9 0x04000000 // System clock /9
-#define SYSCTL_RCC2_SYSDIV2_10 0x04800000 // System clock /10
-#define SYSCTL_RCC2_SYSDIV2_11 0x05000000 // System clock /11
-#define SYSCTL_RCC2_SYSDIV2_12 0x05800000 // System clock /12
-#define SYSCTL_RCC2_SYSDIV2_13 0x06000000 // System clock /13
-#define SYSCTL_RCC2_SYSDIV2_14 0x06800000 // System clock /14
-#define SYSCTL_RCC2_SYSDIV2_15 0x07000000 // System clock /15
-#define SYSCTL_RCC2_SYSDIV2_16 0x07800000 // System clock /16
-#define SYSCTL_RCC2_SYSDIV2_17 0x08000000 // System clock /17
-#define SYSCTL_RCC2_SYSDIV2_18 0x08800000 // System clock /18
-#define SYSCTL_RCC2_SYSDIV2_19 0x09000000 // System clock /19
-#define SYSCTL_RCC2_SYSDIV2_20 0x09800000 // System clock /20
-#define SYSCTL_RCC2_SYSDIV2_21 0x0A000000 // System clock /21
-#define SYSCTL_RCC2_SYSDIV2_22 0x0A800000 // System clock /22
-#define SYSCTL_RCC2_SYSDIV2_23 0x0B000000 // System clock /23
-#define SYSCTL_RCC2_SYSDIV2_24 0x0B800000 // System clock /24
-#define SYSCTL_RCC2_SYSDIV2_25 0x0C000000 // System clock /25
-#define SYSCTL_RCC2_SYSDIV2_26 0x0C800000 // System clock /26
-#define SYSCTL_RCC2_SYSDIV2_27 0x0D000000 // System clock /27
-#define SYSCTL_RCC2_SYSDIV2_28 0x0D800000 // System clock /28
-#define SYSCTL_RCC2_SYSDIV2_29 0x0E000000 // System clock /29
-#define SYSCTL_RCC2_SYSDIV2_30 0x0E800000 // System clock /30
-#define SYSCTL_RCC2_SYSDIV2_31 0x0F000000 // System clock /31
-#define SYSCTL_RCC2_SYSDIV2_32 0x0F800000 // System clock /32
-#define SYSCTL_RCC2_SYSDIV2_33 0x10000000 // System clock /33
-#define SYSCTL_RCC2_SYSDIV2_34 0x10800000 // System clock /34
-#define SYSCTL_RCC2_SYSDIV2_35 0x11000000 // System clock /35
-#define SYSCTL_RCC2_SYSDIV2_36 0x11800000 // System clock /36
-#define SYSCTL_RCC2_SYSDIV2_37 0x12000000 // System clock /37
-#define SYSCTL_RCC2_SYSDIV2_38 0x12800000 // System clock /38
-#define SYSCTL_RCC2_SYSDIV2_39 0x13000000 // System clock /39
-#define SYSCTL_RCC2_SYSDIV2_40 0x13800000 // System clock /40
-#define SYSCTL_RCC2_SYSDIV2_41 0x14000000 // System clock /41
-#define SYSCTL_RCC2_SYSDIV2_42 0x14800000 // System clock /42
-#define SYSCTL_RCC2_SYSDIV2_43 0x15000000 // System clock /43
-#define SYSCTL_RCC2_SYSDIV2_44 0x15800000 // System clock /44
-#define SYSCTL_RCC2_SYSDIV2_45 0x16000000 // System clock /45
-#define SYSCTL_RCC2_SYSDIV2_46 0x16800000 // System clock /46
-#define SYSCTL_RCC2_SYSDIV2_47 0x17000000 // System clock /47
-#define SYSCTL_RCC2_SYSDIV2_48 0x17800000 // System clock /48
-#define SYSCTL_RCC2_SYSDIV2_49 0x18000000 // System clock /49
-#define SYSCTL_RCC2_SYSDIV2_50 0x18800000 // System clock /50
-#define SYSCTL_RCC2_SYSDIV2_51 0x19000000 // System clock /51
-#define SYSCTL_RCC2_SYSDIV2_52 0x19800000 // System clock /52
-#define SYSCTL_RCC2_SYSDIV2_53 0x1A000000 // System clock /53
-#define SYSCTL_RCC2_SYSDIV2_54 0x1A800000 // System clock /54
-#define SYSCTL_RCC2_SYSDIV2_55 0x1B000000 // System clock /55
-#define SYSCTL_RCC2_SYSDIV2_56 0x1B800000 // System clock /56
-#define SYSCTL_RCC2_SYSDIV2_57 0x1C000000 // System clock /57
-#define SYSCTL_RCC2_SYSDIV2_58 0x1C800000 // System clock /58
-#define SYSCTL_RCC2_SYSDIV2_59 0x1D000000 // System clock /59
-#define SYSCTL_RCC2_SYSDIV2_60 0x1D800000 // System clock /60
-#define SYSCTL_RCC2_SYSDIV2_61 0x1E000000 // System clock /61
-#define SYSCTL_RCC2_SYSDIV2_62 0x1E800000 // System clock /62
-#define SYSCTL_RCC2_SYSDIV2_63 0x1F000000 // System clock /63
-#define SYSCTL_RCC2_SYSDIV2_64 0x1F800000 // System clock /64
-#define SYSCTL_RCC2_SYSDIV2LSB 0x00400000 // Additional LSB for SYSDIV2
-#define SYSCTL_RCC2_USBPWRDN 0x00004000 // Power-Down USB PLL
-#define SYSCTL_RCC2_PWRDN2 0x00002000 // Power-Down PLL 2
-#define SYSCTL_RCC2_BYPASS2 0x00000800 // PLL Bypass 2
-#define SYSCTL_RCC2_OSCSRC2_M 0x00000070 // Oscillator Source 2
-#define SYSCTL_RCC2_OSCSRC2_MO 0x00000000 // MOSC
-#define SYSCTL_RCC2_OSCSRC2_IO 0x00000010 // PIOSC
-#define SYSCTL_RCC2_OSCSRC2_IO4 0x00000020 // PIOSC/4
-#define SYSCTL_RCC2_OSCSRC2_30 0x00000030 // 30 kHz
-#define SYSCTL_RCC2_OSCSRC2_32 0x00000070 // 32.768 kHz
-#define SYSCTL_RCC2_SYSDIV2_S 23
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_MOSCCTL register.
-//
-//*****************************************************************************
-#define SYSCTL_MOSCCTL_NOXTAL 0x00000004 // No Crystal Connected
-#define SYSCTL_MOSCCTL_MOSCIM 0x00000002 // MOSC Failure Action
-#define SYSCTL_MOSCCTL_CVAL 0x00000001 // Clock Validation for MOSC
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGC0 register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
-#define SYSCTL_RCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
-#define SYSCTL_RCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
-#define SYSCTL_RCGC0_PWM0 0x00100000 // PWM Clock Gating Control
-#define SYSCTL_RCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
-#define SYSCTL_RCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
-#define SYSCTL_RCGC0_ADC1SPD_M 0x00000C00 // ADC1 Sample Speed
-#define SYSCTL_RCGC0_ADC1SPD_125K \
- 0x00000000 // 125K samples/second
-#define SYSCTL_RCGC0_ADC1SPD_250K \
- 0x00000400 // 250K samples/second
-#define SYSCTL_RCGC0_ADC1SPD_500K \
- 0x00000800 // 500K samples/second
-#define SYSCTL_RCGC0_ADC1SPD_1M 0x00000C00 // 1M samples/second
-#define SYSCTL_RCGC0_ADC0SPD_M 0x00000300 // ADC0 Sample Speed
-#define SYSCTL_RCGC0_ADC0SPD_125K \
- 0x00000000 // 125K samples/second
-#define SYSCTL_RCGC0_ADC0SPD_250K \
- 0x00000100 // 250K samples/second
-#define SYSCTL_RCGC0_ADC0SPD_500K \
- 0x00000200 // 500K samples/second
-#define SYSCTL_RCGC0_ADC0SPD_1M 0x00000300 // 1M samples/second
-#define SYSCTL_RCGC0_HIB 0x00000040 // HIB Clock Gating Control
-#define SYSCTL_RCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGC1 register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock Gating
-#define SYSCTL_RCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
-#define SYSCTL_RCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
-#define SYSCTL_RCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
-#define SYSCTL_RCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
-#define SYSCTL_RCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
-#define SYSCTL_RCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
-#define SYSCTL_RCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
-#define SYSCTL_RCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
-#define SYSCTL_RCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
-#define SYSCTL_RCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
-#define SYSCTL_RCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
-#define SYSCTL_RCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
-#define SYSCTL_RCGC1_UART2 0x00000004 // UART2 Clock Gating Control
-#define SYSCTL_RCGC1_UART1 0x00000002 // UART1 Clock Gating Control
-#define SYSCTL_RCGC1_UART0 0x00000001 // UART0 Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGC2 register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGC2_USB0 0x00010000 // USB0 Clock Gating Control
-#define SYSCTL_RCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
-#define SYSCTL_RCGC2_GPIOJ 0x00000100 // Port J Clock Gating Control
-#define SYSCTL_RCGC2_GPIOH 0x00000080 // Port H Clock Gating Control
-#define SYSCTL_RCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
-#define SYSCTL_RCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
-#define SYSCTL_RCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
-#define SYSCTL_RCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
-#define SYSCTL_RCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
-#define SYSCTL_RCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
-#define SYSCTL_RCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGC0 register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
-#define SYSCTL_SCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
-#define SYSCTL_SCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
-#define SYSCTL_SCGC0_PWM0 0x00100000 // PWM Clock Gating Control
-#define SYSCTL_SCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
-#define SYSCTL_SCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
-#define SYSCTL_SCGC0_HIB 0x00000040 // HIB Clock Gating Control
-#define SYSCTL_SCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGC1 register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock Gating
-#define SYSCTL_SCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
-#define SYSCTL_SCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
-#define SYSCTL_SCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
-#define SYSCTL_SCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
-#define SYSCTL_SCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
-#define SYSCTL_SCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
-#define SYSCTL_SCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
-#define SYSCTL_SCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
-#define SYSCTL_SCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
-#define SYSCTL_SCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
-#define SYSCTL_SCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
-#define SYSCTL_SCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
-#define SYSCTL_SCGC1_UART2 0x00000004 // UART2 Clock Gating Control
-#define SYSCTL_SCGC1_UART1 0x00000002 // UART1 Clock Gating Control
-#define SYSCTL_SCGC1_UART0 0x00000001 // UART0 Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGC2 register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGC2_USB0 0x00010000 // USB0 Clock Gating Control
-#define SYSCTL_SCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
-#define SYSCTL_SCGC2_GPIOJ 0x00000100 // Port J Clock Gating Control
-#define SYSCTL_SCGC2_GPIOH 0x00000080 // Port H Clock Gating Control
-#define SYSCTL_SCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
-#define SYSCTL_SCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
-#define SYSCTL_SCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
-#define SYSCTL_SCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
-#define SYSCTL_SCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
-#define SYSCTL_SCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
-#define SYSCTL_SCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGC0 register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
-#define SYSCTL_DCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
-#define SYSCTL_DCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
-#define SYSCTL_DCGC0_PWM0 0x00100000 // PWM Clock Gating Control
-#define SYSCTL_DCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
-#define SYSCTL_DCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
-#define SYSCTL_DCGC0_HIB 0x00000040 // HIB Clock Gating Control
-#define SYSCTL_DCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGC1 register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock Gating
-#define SYSCTL_DCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
-#define SYSCTL_DCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
-#define SYSCTL_DCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
-#define SYSCTL_DCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
-#define SYSCTL_DCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
-#define SYSCTL_DCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
-#define SYSCTL_DCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
-#define SYSCTL_DCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
-#define SYSCTL_DCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
-#define SYSCTL_DCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
-#define SYSCTL_DCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
-#define SYSCTL_DCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
-#define SYSCTL_DCGC1_UART2 0x00000004 // UART2 Clock Gating Control
-#define SYSCTL_DCGC1_UART1 0x00000002 // UART1 Clock Gating Control
-#define SYSCTL_DCGC1_UART0 0x00000001 // UART0 Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGC2 register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGC2_USB0 0x00010000 // USB0 Clock Gating Control
-#define SYSCTL_DCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
-#define SYSCTL_DCGC2_GPIOJ 0x00000100 // Port J Clock Gating Control
-#define SYSCTL_DCGC2_GPIOH 0x00000080 // Port H Clock Gating Control
-#define SYSCTL_DCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
-#define SYSCTL_DCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
-#define SYSCTL_DCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
-#define SYSCTL_DCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
-#define SYSCTL_DCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
-#define SYSCTL_DCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
-#define SYSCTL_DCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DSLPCLKCFG
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_DSLPCLKCFG_D_M 0x1F800000 // Divider Field Override
-#define SYSCTL_DSLPCLKCFG_D_1 0x00000000 // System clock /1
-#define SYSCTL_DSLPCLKCFG_D_2 0x00800000 // System clock /2
-#define SYSCTL_DSLPCLKCFG_D_3 0x01000000 // System clock /3
-#define SYSCTL_DSLPCLKCFG_D_4 0x01800000 // System clock /4
-#define SYSCTL_DSLPCLKCFG_D_64 0x1F800000 // System clock /64
-#define SYSCTL_DSLPCLKCFG_O_M 0x00000070 // Clock Source
-#define SYSCTL_DSLPCLKCFG_O_IGN 0x00000000 // MOSC
-#define SYSCTL_DSLPCLKCFG_O_IO 0x00000010 // PIOSC
-#define SYSCTL_DSLPCLKCFG_O_30 0x00000030 // 30 kHz
-#define SYSCTL_DSLPCLKCFG_O_32 0x00000070 // 32.768 kHz
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SYSPROP register.
-//
-//*****************************************************************************
-#define SYSCTL_SYSPROP_FPU 0x00000001 // FPU Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PIOSCCAL
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PIOSCCAL_UTEN 0x80000000 // Use User Trim Value
-#define SYSCTL_PIOSCCAL_CAL 0x00000200 // Start Calibration
-#define SYSCTL_PIOSCCAL_UPDATE 0x00000100 // Update Trim
-#define SYSCTL_PIOSCCAL_UT_M 0x0000007F // User Trim Value
-#define SYSCTL_PIOSCCAL_UT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PIOSCSTAT
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PIOSCSTAT_DT_M 0x007F0000 // Default Trim Value
-#define SYSCTL_PIOSCSTAT_CR_M 0x00000300 // Calibration Result
-#define SYSCTL_PIOSCSTAT_CRNONE 0x00000000 // Calibration has not been
- // attempted
-#define SYSCTL_PIOSCSTAT_CRPASS 0x00000100 // The last calibration operation
- // completed to meet 1% accuracy
-#define SYSCTL_PIOSCSTAT_CRFAIL 0x00000200 // The last calibration operation
- // failed to meet 1% accuracy
-#define SYSCTL_PIOSCSTAT_CT_M 0x0000007F // Calibration Trim Value
-#define SYSCTL_PIOSCSTAT_DT_S 16
-#define SYSCTL_PIOSCSTAT_CT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PLLFREQ0
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PLLFREQ0_MFRAC_M 0x000FFC00 // PLL M Fractional Value
-#define SYSCTL_PLLFREQ0_MINT_M 0x000003FF // PLL M Integer Value
-#define SYSCTL_PLLFREQ0_MFRAC_S 10
-#define SYSCTL_PLLFREQ0_MINT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PLLFREQ1
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PLLFREQ1_Q_M 0x00001F00 // PLL Q Value
-#define SYSCTL_PLLFREQ1_N_M 0x0000001F // PLL N Value
-#define SYSCTL_PLLFREQ1_Q_S 8
-#define SYSCTL_PLLFREQ1_N_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PLLSTAT register.
-//
-//*****************************************************************************
-#define SYSCTL_PLLSTAT_LOCK 0x00000001 // PLL Lock
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DC9 register.
-//
-//*****************************************************************************
-#define SYSCTL_DC9_ADC1DC7 0x00800000 // ADC1 DC7 Present
-#define SYSCTL_DC9_ADC1DC6 0x00400000 // ADC1 DC6 Present
-#define SYSCTL_DC9_ADC1DC5 0x00200000 // ADC1 DC5 Present
-#define SYSCTL_DC9_ADC1DC4 0x00100000 // ADC1 DC4 Present
-#define SYSCTL_DC9_ADC1DC3 0x00080000 // ADC1 DC3 Present
-#define SYSCTL_DC9_ADC1DC2 0x00040000 // ADC1 DC2 Present
-#define SYSCTL_DC9_ADC1DC1 0x00020000 // ADC1 DC1 Present
-#define SYSCTL_DC9_ADC1DC0 0x00010000 // ADC1 DC0 Present
-#define SYSCTL_DC9_ADC0DC7 0x00000080 // ADC0 DC7 Present
-#define SYSCTL_DC9_ADC0DC6 0x00000040 // ADC0 DC6 Present
-#define SYSCTL_DC9_ADC0DC5 0x00000020 // ADC0 DC5 Present
-#define SYSCTL_DC9_ADC0DC4 0x00000010 // ADC0 DC4 Present
-#define SYSCTL_DC9_ADC0DC3 0x00000008 // ADC0 DC3 Present
-#define SYSCTL_DC9_ADC0DC2 0x00000004 // ADC0 DC2 Present
-#define SYSCTL_DC9_ADC0DC1 0x00000002 // ADC0 DC1 Present
-#define SYSCTL_DC9_ADC0DC0 0x00000001 // ADC0 DC0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_NVMSTAT register.
-//
-//*****************************************************************************
-#define SYSCTL_NVMSTAT_TPSW 0x00000010 // Third Party Software Present
-#define SYSCTL_NVMSTAT_FWB 0x00000001 // 32 Word Flash Write Buffer
- // Active
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPWD register.
-//
-//*****************************************************************************
-#define SYSCTL_PPWD_P1 0x00000002 // Watchdog Timer 1 Present
-#define SYSCTL_PPWD_P0 0x00000001 // Watchdog Timer 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPTIMER register.
-//
-//*****************************************************************************
-#define SYSCTL_PPTIMER_P5 0x00000020 // Timer 5 Present
-#define SYSCTL_PPTIMER_P4 0x00000010 // Timer 4 Present
-#define SYSCTL_PPTIMER_P3 0x00000008 // Timer 3 Present
-#define SYSCTL_PPTIMER_P2 0x00000004 // Timer 2 Present
-#define SYSCTL_PPTIMER_P1 0x00000002 // Timer 1 Present
-#define SYSCTL_PPTIMER_P0 0x00000001 // Timer 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPGPIO register.
-//
-//*****************************************************************************
-#define SYSCTL_PPGPIO_P14 0x00004000 // GPIO Port Q Present
-#define SYSCTL_PPGPIO_P13 0x00002000 // GPIO Port P Present
-#define SYSCTL_PPGPIO_P12 0x00001000 // GPIO Port N Present
-#define SYSCTL_PPGPIO_P11 0x00000800 // GPIO Port M Present
-#define SYSCTL_PPGPIO_P10 0x00000400 // GPIO Port L Present
-#define SYSCTL_PPGPIO_P9 0x00000200 // GPIO Port K Present
-#define SYSCTL_PPGPIO_P8 0x00000100 // GPIO Port J Present
-#define SYSCTL_PPGPIO_P7 0x00000080 // GPIO Port H Present
-#define SYSCTL_PPGPIO_P6 0x00000040 // GPIO Port G Present
-#define SYSCTL_PPGPIO_P5 0x00000020 // GPIO Port F Present
-#define SYSCTL_PPGPIO_P4 0x00000010 // GPIO Port E Present
-#define SYSCTL_PPGPIO_P3 0x00000008 // GPIO Port D Present
-#define SYSCTL_PPGPIO_P2 0x00000004 // GPIO Port C Present
-#define SYSCTL_PPGPIO_P1 0x00000002 // GPIO Port B Present
-#define SYSCTL_PPGPIO_P0 0x00000001 // GPIO Port A Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPDMA register.
-//
-//*****************************************************************************
-#define SYSCTL_PPDMA_P0 0x00000001 // uDMA Module Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPHIB register.
-//
-//*****************************************************************************
-#define SYSCTL_PPHIB_P0 0x00000001 // Hibernation Module Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPUART register.
-//
-//*****************************************************************************
-#define SYSCTL_PPUART_P7 0x00000080 // UART Module 7 Present
-#define SYSCTL_PPUART_P6 0x00000040 // UART Module 6 Present
-#define SYSCTL_PPUART_P5 0x00000020 // UART Module 5 Present
-#define SYSCTL_PPUART_P4 0x00000010 // UART Module 4 Present
-#define SYSCTL_PPUART_P3 0x00000008 // UART Module 3 Present
-#define SYSCTL_PPUART_P2 0x00000004 // UART Module 2 Present
-#define SYSCTL_PPUART_P1 0x00000002 // UART Module 1 Present
-#define SYSCTL_PPUART_P0 0x00000001 // UART Module 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPSSI register.
-//
-//*****************************************************************************
-#define SYSCTL_PPSSI_P3 0x00000008 // SSI Module 3 Present
-#define SYSCTL_PPSSI_P2 0x00000004 // SSI Module 2 Present
-#define SYSCTL_PPSSI_P1 0x00000002 // SSI Module 1 Present
-#define SYSCTL_PPSSI_P0 0x00000001 // SSI Module 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPI2C register.
-//
-//*****************************************************************************
-#define SYSCTL_PPI2C_P5 0x00000020 // I2C Module 5 Present
-#define SYSCTL_PPI2C_P4 0x00000010 // I2C Module 4 Present
-#define SYSCTL_PPI2C_P3 0x00000008 // I2C Module 3 Present
-#define SYSCTL_PPI2C_P2 0x00000004 // I2C Module 2 Present
-#define SYSCTL_PPI2C_P1 0x00000002 // I2C Module 1 Present
-#define SYSCTL_PPI2C_P0 0x00000001 // I2C Module 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPUSB register.
-//
-//*****************************************************************************
-#define SYSCTL_PPUSB_P0 0x00000001 // USB Module Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPCAN register.
-//
-//*****************************************************************************
-#define SYSCTL_PPCAN_P1 0x00000002 // CAN Module 1 Present
-#define SYSCTL_PPCAN_P0 0x00000001 // CAN Module 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPADC register.
-//
-//*****************************************************************************
-#define SYSCTL_PPADC_P1 0x00000002 // ADC Module 1 Present
-#define SYSCTL_PPADC_P0 0x00000001 // ADC Module 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPACMP register.
-//
-//*****************************************************************************
-#define SYSCTL_PPACMP_P0 0x00000001 // Analog Comparator Module Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPPWM register.
-//
-//*****************************************************************************
-#define SYSCTL_PPPWM_P1 0x00000002 // PWM Module 1 Present
-#define SYSCTL_PPPWM_P0 0x00000001 // PWM Module 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPQEI register.
-//
-//*****************************************************************************
-#define SYSCTL_PPQEI_P1 0x00000002 // QEI Module 1 Present
-#define SYSCTL_PPQEI_P0 0x00000001 // QEI Module 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPEEPROM
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PPEEPROM_P0 0x00000001 // EEPROM Module Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PPWTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PPWTIMER_P5 0x00000020 // Wide Timer 5 Present
-#define SYSCTL_PPWTIMER_P4 0x00000010 // Wide Timer 4 Present
-#define SYSCTL_PPWTIMER_P3 0x00000008 // Wide Timer 3 Present
-#define SYSCTL_PPWTIMER_P2 0x00000004 // Wide Timer 2 Present
-#define SYSCTL_PPWTIMER_P1 0x00000002 // Wide Timer 1 Present
-#define SYSCTL_PPWTIMER_P0 0x00000001 // Wide Timer 0 Present
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRWD register.
-//
-//*****************************************************************************
-#define SYSCTL_SRWD_R1 0x00000002 // Watchdog Timer 1 Software Reset
-#define SYSCTL_SRWD_R0 0x00000001 // Watchdog Timer 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRTIMER register.
-//
-//*****************************************************************************
-#define SYSCTL_SRTIMER_R5 0x00000020 // Timer 5 Software Reset
-#define SYSCTL_SRTIMER_R4 0x00000010 // Timer 4 Software Reset
-#define SYSCTL_SRTIMER_R3 0x00000008 // Timer 3 Software Reset
-#define SYSCTL_SRTIMER_R2 0x00000004 // Timer 2 Software Reset
-#define SYSCTL_SRTIMER_R1 0x00000002 // Timer 1 Software Reset
-#define SYSCTL_SRTIMER_R0 0x00000001 // Timer 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRGPIO register.
-//
-//*****************************************************************************
-#define SYSCTL_SRGPIO_R14 0x00004000 // GPIO Port Q Software Reset
-#define SYSCTL_SRGPIO_R13 0x00002000 // GPIO Port P Software Reset
-#define SYSCTL_SRGPIO_R12 0x00001000 // GPIO Port N Software Reset
-#define SYSCTL_SRGPIO_R11 0x00000800 // GPIO Port M Software Reset
-#define SYSCTL_SRGPIO_R10 0x00000400 // GPIO Port L Software Reset
-#define SYSCTL_SRGPIO_R9 0x00000200 // GPIO Port K Software Reset
-#define SYSCTL_SRGPIO_R8 0x00000100 // GPIO Port J Software Reset
-#define SYSCTL_SRGPIO_R7 0x00000080 // GPIO Port H Software Reset
-#define SYSCTL_SRGPIO_R6 0x00000040 // GPIO Port G Software Reset
-#define SYSCTL_SRGPIO_R5 0x00000020 // GPIO Port F Software Reset
-#define SYSCTL_SRGPIO_R4 0x00000010 // GPIO Port E Software Reset
-#define SYSCTL_SRGPIO_R3 0x00000008 // GPIO Port D Software Reset
-#define SYSCTL_SRGPIO_R2 0x00000004 // GPIO Port C Software Reset
-#define SYSCTL_SRGPIO_R1 0x00000002 // GPIO Port B Software Reset
-#define SYSCTL_SRGPIO_R0 0x00000001 // GPIO Port A Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRDMA register.
-//
-//*****************************************************************************
-#define SYSCTL_SRDMA_R0 0x00000001 // uDMA Module Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRHIB register.
-//
-//*****************************************************************************
-#define SYSCTL_SRHIB_R0 0x00000001 // Hibernation Module Software
- // Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRUART register.
-//
-//*****************************************************************************
-#define SYSCTL_SRUART_R7 0x00000080 // UART Module 7 Software Reset
-#define SYSCTL_SRUART_R6 0x00000040 // UART Module 6 Software Reset
-#define SYSCTL_SRUART_R5 0x00000020 // UART Module 5 Software Reset
-#define SYSCTL_SRUART_R4 0x00000010 // UART Module 4 Software Reset
-#define SYSCTL_SRUART_R3 0x00000008 // UART Module 3 Software Reset
-#define SYSCTL_SRUART_R2 0x00000004 // UART Module 2 Software Reset
-#define SYSCTL_SRUART_R1 0x00000002 // UART Module 1 Software Reset
-#define SYSCTL_SRUART_R0 0x00000001 // UART Module 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRSSI register.
-//
-//*****************************************************************************
-#define SYSCTL_SRSSI_R3 0x00000008 // SSI Module 3 Software Reset
-#define SYSCTL_SRSSI_R2 0x00000004 // SSI Module 2 Software Reset
-#define SYSCTL_SRSSI_R1 0x00000002 // SSI Module 1 Software Reset
-#define SYSCTL_SRSSI_R0 0x00000001 // SSI Module 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRI2C register.
-//
-//*****************************************************************************
-#define SYSCTL_SRI2C_R5 0x00000020 // I2C Module 5 Software Reset
-#define SYSCTL_SRI2C_R4 0x00000010 // I2C Module 4 Software Reset
-#define SYSCTL_SRI2C_R3 0x00000008 // I2C Module 3 Software Reset
-#define SYSCTL_SRI2C_R2 0x00000004 // I2C Module 2 Software Reset
-#define SYSCTL_SRI2C_R1 0x00000002 // I2C Module 1 Software Reset
-#define SYSCTL_SRI2C_R0 0x00000001 // I2C Module 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRUSB register.
-//
-//*****************************************************************************
-#define SYSCTL_SRUSB_R0 0x00000001 // USB Module Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRCAN register.
-//
-//*****************************************************************************
-#define SYSCTL_SRCAN_R1 0x00000002 // CAN Module 1 Software Reset
-#define SYSCTL_SRCAN_R0 0x00000001 // CAN Module 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRADC register.
-//
-//*****************************************************************************
-#define SYSCTL_SRADC_R1 0x00000002 // ADC Module 1 Software Reset
-#define SYSCTL_SRADC_R0 0x00000001 // ADC Module 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRACMP register.
-//
-//*****************************************************************************
-#define SYSCTL_SRACMP_R0 0x00000001 // Analog Comparator Module
- // Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRPWM register.
-//
-//*****************************************************************************
-#define SYSCTL_SRPWM_R1 0x00000002 // PWM Module 1 Software Reset
-#define SYSCTL_SRPWM_R0 0x00000001 // PWM Module 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRQEI register.
-//
-//*****************************************************************************
-#define SYSCTL_SRQEI_R1 0x00000002 // QEI Module 1 Software Reset
-#define SYSCTL_SRQEI_R0 0x00000001 // QEI Module 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SREEPROM
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_SREEPROM_R0 0x00000001 // EEPROM Module Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SRWTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_SRWTIMER_R5 0x00000020 // Wide Timer 5 Software Reset
-#define SYSCTL_SRWTIMER_R4 0x00000010 // Wide Timer 4 Software Reset
-#define SYSCTL_SRWTIMER_R3 0x00000008 // Wide Timer 3 Software Reset
-#define SYSCTL_SRWTIMER_R2 0x00000004 // Wide Timer 2 Software Reset
-#define SYSCTL_SRWTIMER_R1 0x00000002 // Wide Timer 1 Software Reset
-#define SYSCTL_SRWTIMER_R0 0x00000001 // Wide Timer 0 Software Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCWD register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCWD_R1 0x00000002 // Watchdog Timer 1 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCWD_R0 0x00000001 // Watchdog Timer 0 Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCTIMER_R5 0x00000020 // Timer 5 Run Mode Clock Gating
- // Control
-#define SYSCTL_RCGCTIMER_R4 0x00000010 // Timer 4 Run Mode Clock Gating
- // Control
-#define SYSCTL_RCGCTIMER_R3 0x00000008 // Timer 3 Run Mode Clock Gating
- // Control
-#define SYSCTL_RCGCTIMER_R2 0x00000004 // Timer 2 Run Mode Clock Gating
- // Control
-#define SYSCTL_RCGCTIMER_R1 0x00000002 // Timer 1 Run Mode Clock Gating
- // Control
-#define SYSCTL_RCGCTIMER_R0 0x00000001 // Timer 0 Run Mode Clock Gating
- // Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCGPIO
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCGPIO_R14 0x00004000 // GPIO Port Q Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R13 0x00002000 // GPIO Port P Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R12 0x00001000 // GPIO Port N Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R11 0x00000800 // GPIO Port M Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R10 0x00000400 // GPIO Port L Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R9 0x00000200 // GPIO Port K Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R8 0x00000100 // GPIO Port J Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R7 0x00000080 // GPIO Port H Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R6 0x00000040 // GPIO Port G Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R5 0x00000020 // GPIO Port F Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R4 0x00000010 // GPIO Port E Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R3 0x00000008 // GPIO Port D Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R2 0x00000004 // GPIO Port C Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R1 0x00000002 // GPIO Port B Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCGPIO_R0 0x00000001 // GPIO Port A Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCDMA register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCDMA_R0 0x00000001 // uDMA Module Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCHIB register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCHIB_R0 0x00000001 // Hibernation Module Run Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCUART
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCUART_R7 0x00000080 // UART Module 7 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCUART_R6 0x00000040 // UART Module 6 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCUART_R5 0x00000020 // UART Module 5 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCUART_R4 0x00000010 // UART Module 4 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCUART_R3 0x00000008 // UART Module 3 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCUART_R2 0x00000004 // UART Module 2 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCUART_R1 0x00000002 // UART Module 1 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCUART_R0 0x00000001 // UART Module 0 Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCSSI register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCSSI_R3 0x00000008 // SSI Module 3 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCSSI_R2 0x00000004 // SSI Module 2 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCSSI_R1 0x00000002 // SSI Module 1 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCSSI_R0 0x00000001 // SSI Module 0 Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCI2C register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCI2C_R5 0x00000020 // I2C Module 5 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCI2C_R4 0x00000010 // I2C Module 4 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCI2C_R3 0x00000008 // I2C Module 3 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCI2C_R2 0x00000004 // I2C Module 2 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCI2C_R1 0x00000002 // I2C Module 1 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCI2C_R0 0x00000001 // I2C Module 0 Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCUSB register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCUSB_R0 0x00000001 // USB Module Run Mode Clock Gating
- // Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCCAN register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCCAN_R1 0x00000002 // CAN Module 1 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCCAN_R0 0x00000001 // CAN Module 0 Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCADC register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCADC_R1 0x00000002 // ADC Module 1 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCADC_R0 0x00000001 // ADC Module 0 Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCACMP
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCACMP_R0 0x00000001 // Analog Comparator Module Run
- // Mode Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCPWM register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCPWM_R1 0x00000002 // PWM Module 1 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCPWM_R0 0x00000001 // PWM Module 0 Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCQEI register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCQEI_R1 0x00000002 // QEI Module 1 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCQEI_R0 0x00000001 // QEI Module 0 Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCEEPROM
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCEEPROM_R0 0x00000001 // EEPROM Module Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_RCGCWTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_RCGCWTIMER_R5 0x00000020 // Wide Timer 5 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCWTIMER_R4 0x00000010 // Wide Timer 4 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCWTIMER_R3 0x00000008 // Wide Timer 3 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCWTIMER_R2 0x00000004 // Wide Timer 2 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCWTIMER_R1 0x00000002 // Wide Timer 1 Run Mode Clock
- // Gating Control
-#define SYSCTL_RCGCWTIMER_R0 0x00000001 // Wide Timer 0 Run Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCWD register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCWD_S1 0x00000002 // Watchdog Timer 1 Sleep Mode
- // Clock Gating Control
-#define SYSCTL_SCGCWD_S0 0x00000001 // Watchdog Timer 0 Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCTIMER_S5 0x00000020 // Timer 5 Sleep Mode Clock Gating
- // Control
-#define SYSCTL_SCGCTIMER_S4 0x00000010 // Timer 4 Sleep Mode Clock Gating
- // Control
-#define SYSCTL_SCGCTIMER_S3 0x00000008 // Timer 3 Sleep Mode Clock Gating
- // Control
-#define SYSCTL_SCGCTIMER_S2 0x00000004 // Timer 2 Sleep Mode Clock Gating
- // Control
-#define SYSCTL_SCGCTIMER_S1 0x00000002 // Timer 1 Sleep Mode Clock Gating
- // Control
-#define SYSCTL_SCGCTIMER_S0 0x00000001 // Timer 0 Sleep Mode Clock Gating
- // Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCGPIO
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCGPIO_S14 0x00004000 // GPIO Port Q Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S13 0x00002000 // GPIO Port P Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S12 0x00001000 // GPIO Port N Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S11 0x00000800 // GPIO Port M Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S10 0x00000400 // GPIO Port L Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S9 0x00000200 // GPIO Port K Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S8 0x00000100 // GPIO Port J Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S7 0x00000080 // GPIO Port H Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S6 0x00000040 // GPIO Port G Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S5 0x00000020 // GPIO Port F Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S4 0x00000010 // GPIO Port E Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S3 0x00000008 // GPIO Port D Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S2 0x00000004 // GPIO Port C Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S1 0x00000002 // GPIO Port B Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCGPIO_S0 0x00000001 // GPIO Port A Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCDMA register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCDMA_S0 0x00000001 // uDMA Module Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCHIB register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCHIB_S0 0x00000001 // Hibernation Module Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCUART
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCUART_S7 0x00000080 // UART Module 7 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCUART_S6 0x00000040 // UART Module 6 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCUART_S5 0x00000020 // UART Module 5 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCUART_S4 0x00000010 // UART Module 4 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCUART_S3 0x00000008 // UART Module 3 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCUART_S2 0x00000004 // UART Module 2 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCUART_S1 0x00000002 // UART Module 1 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCUART_S0 0x00000001 // UART Module 0 Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCSSI register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCSSI_S3 0x00000008 // SSI Module 3 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCSSI_S2 0x00000004 // SSI Module 2 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCSSI_S1 0x00000002 // SSI Module 1 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCSSI_S0 0x00000001 // SSI Module 0 Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCI2C register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCI2C_S5 0x00000020 // I2C Module 5 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCI2C_S4 0x00000010 // I2C Module 4 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCI2C_S3 0x00000008 // I2C Module 3 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCI2C_S2 0x00000004 // I2C Module 2 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCI2C_S1 0x00000002 // I2C Module 1 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCI2C_S0 0x00000001 // I2C Module 0 Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCUSB register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCUSB_S0 0x00000001 // USB Module Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCCAN register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCCAN_S1 0x00000002 // CAN Module 1 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCCAN_S0 0x00000001 // CAN Module 0 Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCADC register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCADC_S1 0x00000002 // ADC Module 1 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCADC_S0 0x00000001 // ADC Module 0 Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCACMP
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCACMP_S0 0x00000001 // Analog Comparator Module Sleep
- // Mode Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCPWM register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCPWM_S1 0x00000002 // PWM Module 1 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCPWM_S0 0x00000001 // PWM Module 0 Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCQEI register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCQEI_S1 0x00000002 // QEI Module 1 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCQEI_S0 0x00000001 // QEI Module 0 Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCEEPROM
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCEEPROM_S0 0x00000001 // EEPROM Module Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_SCGCWTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_SCGCWTIMER_S5 0x00000020 // Wide Timer 5 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCWTIMER_S4 0x00000010 // Wide Timer 4 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCWTIMER_S3 0x00000008 // Wide Timer 3 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCWTIMER_S2 0x00000004 // Wide Timer 2 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCWTIMER_S1 0x00000002 // Wide Timer 1 Sleep Mode Clock
- // Gating Control
-#define SYSCTL_SCGCWTIMER_S0 0x00000001 // Wide Timer 0 Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCWD register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCWD_D1 0x00000002 // Watchdog Timer 1 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCWD_D0 0x00000001 // Watchdog Timer 0 Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCTIMER_D5 0x00000020 // Timer 5 Deep-Sleep Mode Clock
- // Gating Control
-#define SYSCTL_DCGCTIMER_D4 0x00000010 // Timer 4 Deep-Sleep Mode Clock
- // Gating Control
-#define SYSCTL_DCGCTIMER_D3 0x00000008 // Timer 3 Deep-Sleep Mode Clock
- // Gating Control
-#define SYSCTL_DCGCTIMER_D2 0x00000004 // Timer 2 Deep-Sleep Mode Clock
- // Gating Control
-#define SYSCTL_DCGCTIMER_D1 0x00000002 // Timer 1 Deep-Sleep Mode Clock
- // Gating Control
-#define SYSCTL_DCGCTIMER_D0 0x00000001 // Timer 0 Deep-Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCGPIO
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCGPIO_D14 0x00004000 // GPIO Port Q Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D13 0x00002000 // GPIO Port P Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D12 0x00001000 // GPIO Port N Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D11 0x00000800 // GPIO Port M Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D10 0x00000400 // GPIO Port L Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D9 0x00000200 // GPIO Port K Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D8 0x00000100 // GPIO Port J Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D7 0x00000080 // 0Mode Clock Gating Control
-#define SYSCTL_DCGCGPIO_D6 0x00000040 // GPIO Port G Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D5 0x00000020 // GPIO Port F Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D4 0x00000010 // GPIO Port E Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D3 0x00000008 // GPIO Port D Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D2 0x00000004 // GPIO Port C Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D1 0x00000002 // GPIO Port B Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCGPIO_D0 0x00000001 // GPIO Port A Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCDMA register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCDMA_D0 0x00000001 // uDMA Module Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCHIB register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCHIB_D0 0x00000001 // Hibernation Module Deep-Sleep
- // Mode Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCUART
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCUART_D7 0x00000080 // UART Module 7 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCUART_D6 0x00000040 // UART Module 6 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCUART_D5 0x00000020 // UART Module 5 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCUART_D4 0x00000010 // UART Module 4 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCUART_D3 0x00000008 // UART Module 3 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCUART_D2 0x00000004 // UART Module 2 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCUART_D1 0x00000002 // UART Module 1 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCUART_D0 0x00000001 // UART Module 0 Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCSSI register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCSSI_D3 0x00000008 // SSI Module 3 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCSSI_D2 0x00000004 // SSI Module 2 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCSSI_D1 0x00000002 // SSI Module 1 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCSSI_D0 0x00000001 // SSI Module 0 Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCI2C register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCI2C_D5 0x00000020 // I2C Module 5 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCI2C_D4 0x00000010 // I2C Module 4 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCI2C_D3 0x00000008 // I2C Module 3 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCI2C_D2 0x00000004 // I2C Module 2 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCI2C_D1 0x00000002 // I2C Module 1 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCI2C_D0 0x00000001 // I2C Module 0 Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCUSB register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCUSB_D0 0x00000001 // USB Module Deep-Sleep Mode Clock
- // Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCCAN register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCCAN_D1 0x00000002 // CAN Module 1 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCCAN_D0 0x00000001 // CAN Module 0 Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCADC register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCADC_D1 0x00000002 // ADC Module 1 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCADC_D0 0x00000001 // ADC Module 0 Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCACMP
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCACMP_D0 0x00000001 // Analog Comparator Module
- // Deep-Sleep Mode Clock Gating
- // Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCPWM register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCPWM_D1 0x00000002 // PWM Module 1 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCPWM_D0 0x00000001 // PWM Module 0 Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCQEI register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCQEI_D1 0x00000002 // QEI Module 1 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCQEI_D0 0x00000001 // QEI Module 0 Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCEEPROM
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCEEPROM_D0 0x00000001 // EEPROM Module Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_DCGCWTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_DCGCWTIMER_D5 0x00000020 // Wide Timer 5 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCWTIMER_D4 0x00000010 // Wide Timer 4 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCWTIMER_D3 0x00000008 // Wide Timer 3 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCWTIMER_D2 0x00000004 // Wide Timer 2 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCWTIMER_D1 0x00000002 // Wide Timer 1 Deep-Sleep Mode
- // Clock Gating Control
-#define SYSCTL_DCGCWTIMER_D0 0x00000001 // Wide Timer 0 Deep-Sleep Mode
- // Clock Gating Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCWD register.
-//
-//*****************************************************************************
-#define SYSCTL_PCWD_P1 0x00000002 // Watchdog Timer 1 Power Control
-#define SYSCTL_PCWD_P0 0x00000001 // Watchdog Timer 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCTIMER register.
-//
-//*****************************************************************************
-#define SYSCTL_PCTIMER_P5 0x00000020 // Timer 5 Power Control
-#define SYSCTL_PCTIMER_P4 0x00000010 // Timer 4 Power Control
-#define SYSCTL_PCTIMER_P3 0x00000008 // Timer 3 Power Control
-#define SYSCTL_PCTIMER_P2 0x00000004 // Timer 2 Power Control
-#define SYSCTL_PCTIMER_P1 0x00000002 // Timer 1 Power Control
-#define SYSCTL_PCTIMER_P0 0x00000001 // Timer 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCGPIO register.
-//
-//*****************************************************************************
-#define SYSCTL_PCGPIO_P14 0x00004000 // GPIO Port Q Power Control
-#define SYSCTL_PCGPIO_P13 0x00002000 // GPIO Port P Power Control
-#define SYSCTL_PCGPIO_P12 0x00001000 // GPIO Port N Power Control
-#define SYSCTL_PCGPIO_P11 0x00000800 // GPIO Port M Power Control
-#define SYSCTL_PCGPIO_P10 0x00000400 // GPIO Port L Power Control
-#define SYSCTL_PCGPIO_P9 0x00000200 // GPIO Port K Power Control
-#define SYSCTL_PCGPIO_P8 0x00000100 // GPIO Port J Power Control
-#define SYSCTL_PCGPIO_P7 0x00000080 // GPIO Port H Power Control
-#define SYSCTL_PCGPIO_P6 0x00000040 // GPIO Port G Power Control
-#define SYSCTL_PCGPIO_P5 0x00000020 // GPIO Port F Power Control
-#define SYSCTL_PCGPIO_P4 0x00000010 // GPIO Port E Power Control
-#define SYSCTL_PCGPIO_P3 0x00000008 // GPIO Port D Power Control
-#define SYSCTL_PCGPIO_P2 0x00000004 // GPIO Port C Power Control
-#define SYSCTL_PCGPIO_P1 0x00000002 // GPIO Port B Power Control
-#define SYSCTL_PCGPIO_P0 0x00000001 // GPIO Port A Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCDMA register.
-//
-//*****************************************************************************
-#define SYSCTL_PCDMA_P0 0x00000001 // uDMA Module Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCHIB register.
-//
-//*****************************************************************************
-#define SYSCTL_PCHIB_P0 0x00000001 // Hibernation Module Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCUART register.
-//
-//*****************************************************************************
-#define SYSCTL_PCUART_P7 0x00000080 // UART Module 7 Power Control
-#define SYSCTL_PCUART_P6 0x00000040 // UART Module 6 Power Control
-#define SYSCTL_PCUART_P5 0x00000020 // UART Module 5 Power Control
-#define SYSCTL_PCUART_P4 0x00000010 // UART Module 4 Power Control
-#define SYSCTL_PCUART_P3 0x00000008 // UART Module 3 Power Control
-#define SYSCTL_PCUART_P2 0x00000004 // UART Module 2 Power Control
-#define SYSCTL_PCUART_P1 0x00000002 // UART Module 1 Power Control
-#define SYSCTL_PCUART_P0 0x00000001 // UART Module 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCSSI register.
-//
-//*****************************************************************************
-#define SYSCTL_PCSSI_P3 0x00000008 // SSI Module 3 Power Control
-#define SYSCTL_PCSSI_P2 0x00000004 // SSI Module 2 Power Control
-#define SYSCTL_PCSSI_P1 0x00000002 // SSI Module 1 Power Control
-#define SYSCTL_PCSSI_P0 0x00000001 // SSI Module 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCI2C register.
-//
-//*****************************************************************************
-#define SYSCTL_PCI2C_P5 0x00000020 // I2C Module 5 Power Control
-#define SYSCTL_PCI2C_P4 0x00000010 // I2C Module 4 Power Control
-#define SYSCTL_PCI2C_P3 0x00000008 // I2C Module 3 Power Control
-#define SYSCTL_PCI2C_P2 0x00000004 // I2C Module 2 Power Control
-#define SYSCTL_PCI2C_P1 0x00000002 // I2C Module 1 Power Control
-#define SYSCTL_PCI2C_P0 0x00000001 // I2C Module 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCUSB register.
-//
-//*****************************************************************************
-#define SYSCTL_PCUSB_P0 0x00000001 // USB Module Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCCAN register.
-//
-//*****************************************************************************
-#define SYSCTL_PCCAN_P1 0x00000002 // CAN Module 1 Power Control
-#define SYSCTL_PCCAN_P0 0x00000001 // CAN Module 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCADC register.
-//
-//*****************************************************************************
-#define SYSCTL_PCADC_P1 0x00000002 // ADC Module 1 Power Control
-#define SYSCTL_PCADC_P0 0x00000001 // ADC Module 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCACMP register.
-//
-//*****************************************************************************
-#define SYSCTL_PCACMP_P0 0x00000001 // Analog Comparator Module 0 Power
- // Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCPWM register.
-//
-//*****************************************************************************
-#define SYSCTL_PCPWM_P1 0x00000002 // PWM Module 1 Power Control
-#define SYSCTL_PCPWM_P0 0x00000001 // PWM Module 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCQEI register.
-//
-//*****************************************************************************
-#define SYSCTL_PCQEI_P1 0x00000002 // QEI Module 1 Power Control
-#define SYSCTL_PCQEI_P0 0x00000001 // QEI Module 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCEEPROM
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PCEEPROM_P0 0x00000001 // EEPROM Module Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PCWTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PCWTIMER_P5 0x00000020 // Wide Timer 5 Power Control
-#define SYSCTL_PCWTIMER_P4 0x00000010 // Wide Timer 4 Power Control
-#define SYSCTL_PCWTIMER_P3 0x00000008 // Wide Timer 3 Power Control
-#define SYSCTL_PCWTIMER_P2 0x00000004 // Wide Timer 2 Power Control
-#define SYSCTL_PCWTIMER_P1 0x00000002 // Wide Timer 1 Power Control
-#define SYSCTL_PCWTIMER_P0 0x00000001 // Wide Timer 0 Power Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRWD register.
-//
-//*****************************************************************************
-#define SYSCTL_PRWD_R1 0x00000002 // Watchdog Timer 1 Peripheral
- // Ready
-#define SYSCTL_PRWD_R0 0x00000001 // Watchdog Timer 0 Peripheral
- // Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRTIMER register.
-//
-//*****************************************************************************
-#define SYSCTL_PRTIMER_R5 0x00000020 // Timer 5 Peripheral Ready
-#define SYSCTL_PRTIMER_R4 0x00000010 // Timer 4 Peripheral Ready
-#define SYSCTL_PRTIMER_R3 0x00000008 // Timer 3 Peripheral Ready
-#define SYSCTL_PRTIMER_R2 0x00000004 // Timer 2 Peripheral Ready
-#define SYSCTL_PRTIMER_R1 0x00000002 // Timer 1 Peripheral Ready
-#define SYSCTL_PRTIMER_R0 0x00000001 // Timer 0 Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRGPIO register.
-//
-//*****************************************************************************
-#define SYSCTL_PRGPIO_R14 0x00004000 // GPIO Port Q Peripheral Ready
-#define SYSCTL_PRGPIO_R13 0x00002000 // GPIO Port P Peripheral Ready
-#define SYSCTL_PRGPIO_R12 0x00001000 // GPIO Port N Peripheral Ready
-#define SYSCTL_PRGPIO_R11 0x00000800 // GPIO Port M Peripheral Ready
-#define SYSCTL_PRGPIO_R10 0x00000400 // GPIO Port L Peripheral Ready
-#define SYSCTL_PRGPIO_R9 0x00000200 // GPIO Port K Peripheral Ready
-#define SYSCTL_PRGPIO_R8 0x00000100 // GPIO Port J Peripheral Ready
-#define SYSCTL_PRGPIO_R7 0x00000080 // GPIO Port H Peripheral Ready
-#define SYSCTL_PRGPIO_R6 0x00000040 // GPIO Port G Peripheral Ready
-#define SYSCTL_PRGPIO_R5 0x00000020 // GPIO Port F Peripheral Ready
-#define SYSCTL_PRGPIO_R4 0x00000010 // GPIO Port E Peripheral Ready
-#define SYSCTL_PRGPIO_R3 0x00000008 // GPIO Port D Peripheral Ready
-#define SYSCTL_PRGPIO_R2 0x00000004 // GPIO Port C Peripheral Ready
-#define SYSCTL_PRGPIO_R1 0x00000002 // GPIO Port B Peripheral Ready
-#define SYSCTL_PRGPIO_R0 0x00000001 // GPIO Port A Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRDMA register.
-//
-//*****************************************************************************
-#define SYSCTL_PRDMA_R0 0x00000001 // uDMA Module Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRHIB register.
-//
-//*****************************************************************************
-#define SYSCTL_PRHIB_R0 0x00000001 // Hibernation Module Peripheral
- // Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRUART register.
-//
-//*****************************************************************************
-#define SYSCTL_PRUART_R7 0x00000080 // UART Module 7 Peripheral Ready
-#define SYSCTL_PRUART_R6 0x00000040 // UART Module 6 Peripheral Ready
-#define SYSCTL_PRUART_R5 0x00000020 // UART Module 5 Peripheral Ready
-#define SYSCTL_PRUART_R4 0x00000010 // UART Module 4 Peripheral Ready
-#define SYSCTL_PRUART_R3 0x00000008 // UART Module 3 Peripheral Ready
-#define SYSCTL_PRUART_R2 0x00000004 // UART Module 2 Peripheral Ready
-#define SYSCTL_PRUART_R1 0x00000002 // UART Module 1 Peripheral Ready
-#define SYSCTL_PRUART_R0 0x00000001 // UART Module 0 Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRSSI register.
-//
-//*****************************************************************************
-#define SYSCTL_PRSSI_R3 0x00000008 // SSI Module 3 Peripheral Ready
-#define SYSCTL_PRSSI_R2 0x00000004 // SSI Module 2 Peripheral Ready
-#define SYSCTL_PRSSI_R1 0x00000002 // SSI Module 1 Peripheral Ready
-#define SYSCTL_PRSSI_R0 0x00000001 // SSI Module 0 Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRI2C register.
-//
-//*****************************************************************************
-#define SYSCTL_PRI2C_R5 0x00000020 // I2C Module 5 Peripheral Ready
-#define SYSCTL_PRI2C_R4 0x00000010 // I2C Module 4 Peripheral Ready
-#define SYSCTL_PRI2C_R3 0x00000008 // I2C Module 3 Peripheral Ready
-#define SYSCTL_PRI2C_R2 0x00000004 // I2C Module 2 Peripheral Ready
-#define SYSCTL_PRI2C_R1 0x00000002 // I2C Module 1 Peripheral Ready
-#define SYSCTL_PRI2C_R0 0x00000001 // I2C Module 0 Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRUSB register.
-//
-//*****************************************************************************
-#define SYSCTL_PRUSB_R0 0x00000001 // USB Module Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRCAN register.
-//
-//*****************************************************************************
-#define SYSCTL_PRCAN_R1 0x00000002 // CAN Module 1 Peripheral Ready
-#define SYSCTL_PRCAN_R0 0x00000001 // CAN Module 0 Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRADC register.
-//
-//*****************************************************************************
-#define SYSCTL_PRADC_R1 0x00000002 // ADC Module 1 Peripheral Ready
-#define SYSCTL_PRADC_R0 0x00000001 // ADC Module 0 Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRACMP register.
-//
-//*****************************************************************************
-#define SYSCTL_PRACMP_R0 0x00000001 // Analog Comparator Module
- // Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRPWM register.
-//
-//*****************************************************************************
-#define SYSCTL_PRPWM_R1 0x00000002 // PWM Module 1 Peripheral Ready
-#define SYSCTL_PRPWM_R0 0x00000001 // PWM Module 0 Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRQEI register.
-//
-//*****************************************************************************
-#define SYSCTL_PRQEI_R1 0x00000002 // QEI Module 1 Peripheral Ready
-#define SYSCTL_PRQEI_R0 0x00000001 // QEI Module 0 Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PREEPROM
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PREEPROM_R0 0x00000001 // EEPROM Module Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the SYSCTL_PRWTIMER
-// register.
-//
-//*****************************************************************************
-#define SYSCTL_PRWTIMER_R5 0x00000020 // Wide Timer 5 Peripheral Ready
-#define SYSCTL_PRWTIMER_R4 0x00000010 // Wide Timer 4 Peripheral Ready
-#define SYSCTL_PRWTIMER_R3 0x00000008 // Wide Timer 3 Peripheral Ready
-#define SYSCTL_PRWTIMER_R2 0x00000004 // Wide Timer 2 Peripheral Ready
-#define SYSCTL_PRWTIMER_R1 0x00000002 // Wide Timer 1 Peripheral Ready
-#define SYSCTL_PRWTIMER_R0 0x00000001 // Wide Timer 0 Peripheral Ready
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_STAT register.
-//
-//*****************************************************************************
-#define UDMA_STAT_DMACHANS_M 0x001F0000 // Available uDMA Channels Minus 1
-#define UDMA_STAT_STATE_M 0x000000F0 // Control State Machine Status
-#define UDMA_STAT_STATE_IDLE 0x00000000 // Idle
-#define UDMA_STAT_STATE_RD_CTRL 0x00000010 // Reading channel controller data
-#define UDMA_STAT_STATE_RD_SRCENDP \
- 0x00000020 // Reading source end pointer
-#define UDMA_STAT_STATE_RD_DSTENDP \
- 0x00000030 // Reading destination end pointer
-#define UDMA_STAT_STATE_RD_SRCDAT \
- 0x00000040 // Reading source data
-#define UDMA_STAT_STATE_WR_DSTDAT \
- 0x00000050 // Writing destination data
-#define UDMA_STAT_STATE_WAIT 0x00000060 // Waiting for uDMA request to
- // clear
-#define UDMA_STAT_STATE_WR_CTRL 0x00000070 // Writing channel controller data
-#define UDMA_STAT_STATE_STALL 0x00000080 // Stalled
-#define UDMA_STAT_STATE_DONE 0x00000090 // Done
-#define UDMA_STAT_STATE_UNDEF 0x000000A0 // Undefined
-#define UDMA_STAT_MASTEN 0x00000001 // Master Enable Status
-#define UDMA_STAT_DMACHANS_S 16
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_CFG register.
-//
-//*****************************************************************************
-#define UDMA_CFG_MASTEN 0x00000001 // Controller Master Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_CTLBASE register.
-//
-//*****************************************************************************
-#define UDMA_CTLBASE_ADDR_M 0xFFFFFC00 // Channel Control Base Address
-#define UDMA_CTLBASE_ADDR_S 10
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_ALTBASE register.
-//
-//*****************************************************************************
-#define UDMA_ALTBASE_ADDR_M 0xFFFFFFFF // Alternate Channel Address
- // Pointer
-#define UDMA_ALTBASE_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_WAITSTAT register.
-//
-//*****************************************************************************
-#define UDMA_WAITSTAT_WAITREQ_M 0xFFFFFFFF // Channel [n] Wait Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_SWREQ register.
-//
-//*****************************************************************************
-#define UDMA_SWREQ_M 0xFFFFFFFF // Channel [n] Software Request
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_USEBURSTSET
-// register.
-//
-//*****************************************************************************
-#define UDMA_USEBURSTSET_SET_M 0xFFFFFFFF // Channel [n] Useburst Set
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_USEBURSTCLR
-// register.
-//
-//*****************************************************************************
-#define UDMA_USEBURSTCLR_CLR_M 0xFFFFFFFF // Channel [n] Useburst Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_REQMASKSET
-// register.
-//
-//*****************************************************************************
-#define UDMA_REQMASKSET_SET_M 0xFFFFFFFF // Channel [n] Request Mask Set
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_REQMASKCLR
-// register.
-//
-//*****************************************************************************
-#define UDMA_REQMASKCLR_CLR_M 0xFFFFFFFF // Channel [n] Request Mask Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_ENASET register.
-//
-//*****************************************************************************
-#define UDMA_ENASET_SET_M 0xFFFFFFFF // Channel [n] Enable Set
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_ENACLR register.
-//
-//*****************************************************************************
-#define UDMA_ENACLR_CLR_M 0xFFFFFFFF // Clear Channel [n] Enable Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_ALTSET register.
-//
-//*****************************************************************************
-#define UDMA_ALTSET_SET_M 0xFFFFFFFF // Channel [n] Alternate Set
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_ALTCLR register.
-//
-//*****************************************************************************
-#define UDMA_ALTCLR_CLR_M 0xFFFFFFFF // Channel [n] Alternate Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_PRIOSET register.
-//
-//*****************************************************************************
-#define UDMA_PRIOSET_SET_M 0xFFFFFFFF // Channel [n] Priority Set
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_PRIOCLR register.
-//
-//*****************************************************************************
-#define UDMA_PRIOCLR_CLR_M 0xFFFFFFFF // Channel [n] Priority Clear
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_ERRCLR register.
-//
-//*****************************************************************************
-#define UDMA_ERRCLR_ERRCLR 0x00000001 // uDMA Bus Error Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_CHASGN register.
-//
-//*****************************************************************************
-#define UDMA_CHASGN_M 0xFFFFFFFF // Channel [n] Assignment Select
-#define UDMA_CHASGN_PRIMARY 0x00000000 // Use the primary channel
- // assignment
-#define UDMA_CHASGN_SECONDARY 0x00000001 // Use the secondary channel
- // assignment
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_CHIS register.
-//
-//*****************************************************************************
-#define UDMA_CHIS_M 0xFFFFFFFF // Channel [n] Interrupt Status
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_CHMAP0 register.
-//
-//*****************************************************************************
-#define UDMA_CHMAP0_CH7SEL_M 0xF0000000 // uDMA Channel 7 Source Select
-#define UDMA_CHMAP0_CH6SEL_M 0x0F000000 // uDMA Channel 6 Source Select
-#define UDMA_CHMAP0_CH5SEL_M 0x00F00000 // uDMA Channel 5 Source Select
-#define UDMA_CHMAP0_CH4SEL_M 0x000F0000 // uDMA Channel 4 Source Select
-#define UDMA_CHMAP0_CH3SEL_M 0x0000F000 // uDMA Channel 3 Source Select
-#define UDMA_CHMAP0_CH2SEL_M 0x00000F00 // uDMA Channel 2 Source Select
-#define UDMA_CHMAP0_CH1SEL_M 0x000000F0 // uDMA Channel 1 Source Select
-#define UDMA_CHMAP0_CH0SEL_M 0x0000000F // uDMA Channel 0 Source Select
-#define UDMA_CHMAP0_CH7SEL_S 28
-#define UDMA_CHMAP0_CH6SEL_S 24
-#define UDMA_CHMAP0_CH5SEL_S 20
-#define UDMA_CHMAP0_CH4SEL_S 16
-#define UDMA_CHMAP0_CH3SEL_S 12
-#define UDMA_CHMAP0_CH2SEL_S 8
-#define UDMA_CHMAP0_CH1SEL_S 4
-#define UDMA_CHMAP0_CH0SEL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_CHMAP1 register.
-//
-//*****************************************************************************
-#define UDMA_CHMAP1_CH15SEL_M 0xF0000000 // uDMA Channel 15 Source Select
-#define UDMA_CHMAP1_CH14SEL_M 0x0F000000 // uDMA Channel 14 Source Select
-#define UDMA_CHMAP1_CH13SEL_M 0x00F00000 // uDMA Channel 13 Source Select
-#define UDMA_CHMAP1_CH12SEL_M 0x000F0000 // uDMA Channel 12 Source Select
-#define UDMA_CHMAP1_CH11SEL_M 0x0000F000 // uDMA Channel 11 Source Select
-#define UDMA_CHMAP1_CH10SEL_M 0x00000F00 // uDMA Channel 10 Source Select
-#define UDMA_CHMAP1_CH9SEL_M 0x000000F0 // uDMA Channel 9 Source Select
-#define UDMA_CHMAP1_CH8SEL_M 0x0000000F // uDMA Channel 8 Source Select
-#define UDMA_CHMAP1_CH15SEL_S 28
-#define UDMA_CHMAP1_CH14SEL_S 24
-#define UDMA_CHMAP1_CH13SEL_S 20
-#define UDMA_CHMAP1_CH12SEL_S 16
-#define UDMA_CHMAP1_CH11SEL_S 12
-#define UDMA_CHMAP1_CH10SEL_S 8
-#define UDMA_CHMAP1_CH9SEL_S 4
-#define UDMA_CHMAP1_CH8SEL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_CHMAP2 register.
-//
-//*****************************************************************************
-#define UDMA_CHMAP2_CH23SEL_M 0xF0000000 // uDMA Channel 23 Source Select
-#define UDMA_CHMAP2_CH22SEL_M 0x0F000000 // uDMA Channel 22 Source Select
-#define UDMA_CHMAP2_CH21SEL_M 0x00F00000 // uDMA Channel 21 Source Select
-#define UDMA_CHMAP2_CH20SEL_M 0x000F0000 // uDMA Channel 20 Source Select
-#define UDMA_CHMAP2_CH19SEL_M 0x0000F000 // uDMA Channel 19 Source Select
-#define UDMA_CHMAP2_CH18SEL_M 0x00000F00 // uDMA Channel 18 Source Select
-#define UDMA_CHMAP2_CH17SEL_M 0x000000F0 // uDMA Channel 17 Source Select
-#define UDMA_CHMAP2_CH16SEL_M 0x0000000F // uDMA Channel 16 Source Select
-#define UDMA_CHMAP2_CH23SEL_S 28
-#define UDMA_CHMAP2_CH22SEL_S 24
-#define UDMA_CHMAP2_CH21SEL_S 20
-#define UDMA_CHMAP2_CH20SEL_S 16
-#define UDMA_CHMAP2_CH19SEL_S 12
-#define UDMA_CHMAP2_CH18SEL_S 8
-#define UDMA_CHMAP2_CH17SEL_S 4
-#define UDMA_CHMAP2_CH16SEL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_CHMAP3 register.
-//
-//*****************************************************************************
-#define UDMA_CHMAP3_CH31SEL_M 0xF0000000 // uDMA Channel 31 Source Select
-#define UDMA_CHMAP3_CH30SEL_M 0x0F000000 // uDMA Channel 30 Source Select
-#define UDMA_CHMAP3_CH29SEL_M 0x00F00000 // uDMA Channel 29 Source Select
-#define UDMA_CHMAP3_CH28SEL_M 0x000F0000 // uDMA Channel 28 Source Select
-#define UDMA_CHMAP3_CH27SEL_M 0x0000F000 // uDMA Channel 27 Source Select
-#define UDMA_CHMAP3_CH26SEL_M 0x00000F00 // uDMA Channel 26 Source Select
-#define UDMA_CHMAP3_CH25SEL_M 0x000000F0 // uDMA Channel 25 Source Select
-#define UDMA_CHMAP3_CH24SEL_M 0x0000000F // uDMA Channel 24 Source Select
-#define UDMA_CHMAP3_CH31SEL_S 28
-#define UDMA_CHMAP3_CH30SEL_S 24
-#define UDMA_CHMAP3_CH29SEL_S 20
-#define UDMA_CHMAP3_CH28SEL_S 16
-#define UDMA_CHMAP3_CH27SEL_S 12
-#define UDMA_CHMAP3_CH26SEL_S 8
-#define UDMA_CHMAP3_CH25SEL_S 4
-#define UDMA_CHMAP3_CH24SEL_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_O_SRCENDP register.
-//
-//*****************************************************************************
-#define UDMA_SRCENDP_ADDR_M 0xFFFFFFFF // Source Address End Pointer
-#define UDMA_SRCENDP_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_O_DSTENDP register.
-//
-//*****************************************************************************
-#define UDMA_DSTENDP_ADDR_M 0xFFFFFFFF // Destination Address End Pointer
-#define UDMA_DSTENDP_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the UDMA_O_CHCTL register.
-//
-//*****************************************************************************
-#define UDMA_CHCTL_DSTINC_M 0xC0000000 // Destination Address Increment
-#define UDMA_CHCTL_DSTINC_8 0x00000000 // Byte
-#define UDMA_CHCTL_DSTINC_16 0x40000000 // Half-word
-#define UDMA_CHCTL_DSTINC_32 0x80000000 // Word
-#define UDMA_CHCTL_DSTINC_NONE 0xC0000000 // No increment
-#define UDMA_CHCTL_DSTSIZE_M 0x30000000 // Destination Data Size
-#define UDMA_CHCTL_DSTSIZE_8 0x00000000 // Byte
-#define UDMA_CHCTL_DSTSIZE_16 0x10000000 // Half-word
-#define UDMA_CHCTL_DSTSIZE_32 0x20000000 // Word
-#define UDMA_CHCTL_SRCINC_M 0x0C000000 // Source Address Increment
-#define UDMA_CHCTL_SRCINC_8 0x00000000 // Byte
-#define UDMA_CHCTL_SRCINC_16 0x04000000 // Half-word
-#define UDMA_CHCTL_SRCINC_32 0x08000000 // Word
-#define UDMA_CHCTL_SRCINC_NONE 0x0C000000 // No increment
-#define UDMA_CHCTL_SRCSIZE_M 0x03000000 // Source Data Size
-#define UDMA_CHCTL_SRCSIZE_8 0x00000000 // Byte
-#define UDMA_CHCTL_SRCSIZE_16 0x01000000 // Half-word
-#define UDMA_CHCTL_SRCSIZE_32 0x02000000 // Word
-#define UDMA_CHCTL_ARBSIZE_M 0x0003C000 // Arbitration Size
-#define UDMA_CHCTL_ARBSIZE_1 0x00000000 // 1 Transfer
-#define UDMA_CHCTL_ARBSIZE_2 0x00004000 // 2 Transfers
-#define UDMA_CHCTL_ARBSIZE_4 0x00008000 // 4 Transfers
-#define UDMA_CHCTL_ARBSIZE_8 0x0000C000 // 8 Transfers
-#define UDMA_CHCTL_ARBSIZE_16 0x00010000 // 16 Transfers
-#define UDMA_CHCTL_ARBSIZE_32 0x00014000 // 32 Transfers
-#define UDMA_CHCTL_ARBSIZE_64 0x00018000 // 64 Transfers
-#define UDMA_CHCTL_ARBSIZE_128 0x0001C000 // 128 Transfers
-#define UDMA_CHCTL_ARBSIZE_256 0x00020000 // 256 Transfers
-#define UDMA_CHCTL_ARBSIZE_512 0x00024000 // 512 Transfers
-#define UDMA_CHCTL_ARBSIZE_1024 0x00028000 // 1024 Transfers
-#define UDMA_CHCTL_XFERSIZE_M 0x00003FF0 // Transfer Size (minus 1)
-#define UDMA_CHCTL_NXTUSEBURST 0x00000008 // Next Useburst
-#define UDMA_CHCTL_XFERMODE_M 0x00000007 // uDMA Transfer Mode
-#define UDMA_CHCTL_XFERMODE_STOP \
- 0x00000000 // Stop
-#define UDMA_CHCTL_XFERMODE_BASIC \
- 0x00000001 // Basic
-#define UDMA_CHCTL_XFERMODE_AUTO \
- 0x00000002 // Auto-Request
-#define UDMA_CHCTL_XFERMODE_PINGPONG \
- 0x00000003 // Ping-Pong
-#define UDMA_CHCTL_XFERMODE_MEM_SG \
- 0x00000004 // Memory Scatter-Gather
-#define UDMA_CHCTL_XFERMODE_MEM_SGA \
- 0x00000005 // Alternate Memory Scatter-Gather
-#define UDMA_CHCTL_XFERMODE_PER_SG \
- 0x00000006 // Peripheral Scatter-Gather
-#define UDMA_CHCTL_XFERMODE_PER_SGA \
- 0x00000007 // Alternate Peripheral
- // Scatter-Gather
-#define UDMA_CHCTL_XFERSIZE_S 4
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_INT_TYPE register.
-//
-//*****************************************************************************
-#define NVIC_INT_TYPE_LINES_M 0x0000001F // Number of interrupt lines (x32)
-#define NVIC_INT_TYPE_LINES_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ACTLR register.
-//
-//*****************************************************************************
-#define NVIC_ACTLR_DISOOFP 0x00000200 // Disable Out-Of-Order Floating
- // Point
-#define NVIC_ACTLR_DISFPCA 0x00000100 // Disable CONTROL
-#define NVIC_ACTLR_DISFOLD 0x00000004 // Disable IT Folding
-#define NVIC_ACTLR_DISWBUF 0x00000002 // Disable Write Buffer
-#define NVIC_ACTLR_DISMCYC 0x00000001 // Disable Interrupts of Multiple
- // Cycle Instructions
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ST_CTRL register.
-//
-//*****************************************************************************
-#define NVIC_ST_CTRL_COUNT 0x00010000 // Count Flag
-#define NVIC_ST_CTRL_CLK_SRC 0x00000004 // Clock Source
-#define NVIC_ST_CTRL_INTEN 0x00000002 // Interrupt Enable
-#define NVIC_ST_CTRL_ENABLE 0x00000001 // Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ST_RELOAD register.
-//
-//*****************************************************************************
-#define NVIC_ST_RELOAD_M 0x00FFFFFF // Reload Value
-#define NVIC_ST_RELOAD_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ST_CURRENT
-// register.
-//
-//*****************************************************************************
-#define NVIC_ST_CURRENT_M 0x00FFFFFF // Current Value
-#define NVIC_ST_CURRENT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ST_CAL register.
-//
-//*****************************************************************************
-#define NVIC_ST_CAL_NOREF 0x80000000 // No reference clock
-#define NVIC_ST_CAL_SKEW 0x40000000 // Clock skew
-#define NVIC_ST_CAL_ONEMS_M 0x00FFFFFF // 1ms reference value
-#define NVIC_ST_CAL_ONEMS_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_EN0 register.
-//
-//*****************************************************************************
-#define NVIC_EN0_INT_M 0xFFFFFFFF // Interrupt Enable
-#define NVIC_EN0_INT0 0x00000001 // Interrupt 0 enable
-#define NVIC_EN0_INT1 0x00000002 // Interrupt 1 enable
-#define NVIC_EN0_INT2 0x00000004 // Interrupt 2 enable
-#define NVIC_EN0_INT3 0x00000008 // Interrupt 3 enable
-#define NVIC_EN0_INT4 0x00000010 // Interrupt 4 enable
-#define NVIC_EN0_INT5 0x00000020 // Interrupt 5 enable
-#define NVIC_EN0_INT6 0x00000040 // Interrupt 6 enable
-#define NVIC_EN0_INT7 0x00000080 // Interrupt 7 enable
-#define NVIC_EN0_INT8 0x00000100 // Interrupt 8 enable
-#define NVIC_EN0_INT9 0x00000200 // Interrupt 9 enable
-#define NVIC_EN0_INT10 0x00000400 // Interrupt 10 enable
-#define NVIC_EN0_INT11 0x00000800 // Interrupt 11 enable
-#define NVIC_EN0_INT12 0x00001000 // Interrupt 12 enable
-#define NVIC_EN0_INT13 0x00002000 // Interrupt 13 enable
-#define NVIC_EN0_INT14 0x00004000 // Interrupt 14 enable
-#define NVIC_EN0_INT15 0x00008000 // Interrupt 15 enable
-#define NVIC_EN0_INT16 0x00010000 // Interrupt 16 enable
-#define NVIC_EN0_INT17 0x00020000 // Interrupt 17 enable
-#define NVIC_EN0_INT18 0x00040000 // Interrupt 18 enable
-#define NVIC_EN0_INT19 0x00080000 // Interrupt 19 enable
-#define NVIC_EN0_INT20 0x00100000 // Interrupt 20 enable
-#define NVIC_EN0_INT21 0x00200000 // Interrupt 21 enable
-#define NVIC_EN0_INT22 0x00400000 // Interrupt 22 enable
-#define NVIC_EN0_INT23 0x00800000 // Interrupt 23 enable
-#define NVIC_EN0_INT24 0x01000000 // Interrupt 24 enable
-#define NVIC_EN0_INT25 0x02000000 // Interrupt 25 enable
-#define NVIC_EN0_INT26 0x04000000 // Interrupt 26 enable
-#define NVIC_EN0_INT27 0x08000000 // Interrupt 27 enable
-#define NVIC_EN0_INT28 0x10000000 // Interrupt 28 enable
-#define NVIC_EN0_INT29 0x20000000 // Interrupt 29 enable
-#define NVIC_EN0_INT30 0x40000000 // Interrupt 30 enable
-#define NVIC_EN0_INT31 0x80000000 // Interrupt 31 enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_EN1 register.
-//
-//*****************************************************************************
-#define NVIC_EN1_INT_M 0xFFFFFFFF // Interrupt Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_EN2 register.
-//
-//*****************************************************************************
-#define NVIC_EN2_INT_M 0xFFFFFFFF // Interrupt Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_EN3 register.
-//
-//*****************************************************************************
-#define NVIC_EN3_INT_M 0xFFFFFFFF // Interrupt Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_EN4 register.
-//
-//*****************************************************************************
-#define NVIC_EN4_INT_M 0x0000000F // Interrupt Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DIS0 register.
-//
-//*****************************************************************************
-#define NVIC_DIS0_INT_M 0xFFFFFFFF // Interrupt Disable
-#define NVIC_DIS0_INT0 0x00000001 // Interrupt 0 disable
-#define NVIC_DIS0_INT1 0x00000002 // Interrupt 1 disable
-#define NVIC_DIS0_INT2 0x00000004 // Interrupt 2 disable
-#define NVIC_DIS0_INT3 0x00000008 // Interrupt 3 disable
-#define NVIC_DIS0_INT4 0x00000010 // Interrupt 4 disable
-#define NVIC_DIS0_INT5 0x00000020 // Interrupt 5 disable
-#define NVIC_DIS0_INT6 0x00000040 // Interrupt 6 disable
-#define NVIC_DIS0_INT7 0x00000080 // Interrupt 7 disable
-#define NVIC_DIS0_INT8 0x00000100 // Interrupt 8 disable
-#define NVIC_DIS0_INT9 0x00000200 // Interrupt 9 disable
-#define NVIC_DIS0_INT10 0x00000400 // Interrupt 10 disable
-#define NVIC_DIS0_INT11 0x00000800 // Interrupt 11 disable
-#define NVIC_DIS0_INT12 0x00001000 // Interrupt 12 disable
-#define NVIC_DIS0_INT13 0x00002000 // Interrupt 13 disable
-#define NVIC_DIS0_INT14 0x00004000 // Interrupt 14 disable
-#define NVIC_DIS0_INT15 0x00008000 // Interrupt 15 disable
-#define NVIC_DIS0_INT16 0x00010000 // Interrupt 16 disable
-#define NVIC_DIS0_INT17 0x00020000 // Interrupt 17 disable
-#define NVIC_DIS0_INT18 0x00040000 // Interrupt 18 disable
-#define NVIC_DIS0_INT19 0x00080000 // Interrupt 19 disable
-#define NVIC_DIS0_INT20 0x00100000 // Interrupt 20 disable
-#define NVIC_DIS0_INT21 0x00200000 // Interrupt 21 disable
-#define NVIC_DIS0_INT22 0x00400000 // Interrupt 22 disable
-#define NVIC_DIS0_INT23 0x00800000 // Interrupt 23 disable
-#define NVIC_DIS0_INT24 0x01000000 // Interrupt 24 disable
-#define NVIC_DIS0_INT25 0x02000000 // Interrupt 25 disable
-#define NVIC_DIS0_INT26 0x04000000 // Interrupt 26 disable
-#define NVIC_DIS0_INT27 0x08000000 // Interrupt 27 disable
-#define NVIC_DIS0_INT28 0x10000000 // Interrupt 28 disable
-#define NVIC_DIS0_INT29 0x20000000 // Interrupt 29 disable
-#define NVIC_DIS0_INT30 0x40000000 // Interrupt 30 disable
-#define NVIC_DIS0_INT31 0x80000000 // Interrupt 31 disable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DIS1 register.
-//
-//*****************************************************************************
-#define NVIC_DIS1_INT_M 0xFFFFFFFF // Interrupt Disable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DIS2 register.
-//
-//*****************************************************************************
-#define NVIC_DIS2_INT_M 0xFFFFFFFF // Interrupt Disable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DIS3 register.
-//
-//*****************************************************************************
-#define NVIC_DIS3_INT_M 0xFFFFFFFF // Interrupt Disable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DIS4 register.
-//
-//*****************************************************************************
-#define NVIC_DIS4_INT_M 0x0000000F // Interrupt Disable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PEND0 register.
-//
-//*****************************************************************************
-#define NVIC_PEND0_INT_M 0xFFFFFFFF // Interrupt Set Pending
-#define NVIC_PEND0_INT0 0x00000001 // Interrupt 0 pend
-#define NVIC_PEND0_INT1 0x00000002 // Interrupt 1 pend
-#define NVIC_PEND0_INT2 0x00000004 // Interrupt 2 pend
-#define NVIC_PEND0_INT3 0x00000008 // Interrupt 3 pend
-#define NVIC_PEND0_INT4 0x00000010 // Interrupt 4 pend
-#define NVIC_PEND0_INT5 0x00000020 // Interrupt 5 pend
-#define NVIC_PEND0_INT6 0x00000040 // Interrupt 6 pend
-#define NVIC_PEND0_INT7 0x00000080 // Interrupt 7 pend
-#define NVIC_PEND0_INT8 0x00000100 // Interrupt 8 pend
-#define NVIC_PEND0_INT9 0x00000200 // Interrupt 9 pend
-#define NVIC_PEND0_INT10 0x00000400 // Interrupt 10 pend
-#define NVIC_PEND0_INT11 0x00000800 // Interrupt 11 pend
-#define NVIC_PEND0_INT12 0x00001000 // Interrupt 12 pend
-#define NVIC_PEND0_INT13 0x00002000 // Interrupt 13 pend
-#define NVIC_PEND0_INT14 0x00004000 // Interrupt 14 pend
-#define NVIC_PEND0_INT15 0x00008000 // Interrupt 15 pend
-#define NVIC_PEND0_INT16 0x00010000 // Interrupt 16 pend
-#define NVIC_PEND0_INT17 0x00020000 // Interrupt 17 pend
-#define NVIC_PEND0_INT18 0x00040000 // Interrupt 18 pend
-#define NVIC_PEND0_INT19 0x00080000 // Interrupt 19 pend
-#define NVIC_PEND0_INT20 0x00100000 // Interrupt 20 pend
-#define NVIC_PEND0_INT21 0x00200000 // Interrupt 21 pend
-#define NVIC_PEND0_INT22 0x00400000 // Interrupt 22 pend
-#define NVIC_PEND0_INT23 0x00800000 // Interrupt 23 pend
-#define NVIC_PEND0_INT24 0x01000000 // Interrupt 24 pend
-#define NVIC_PEND0_INT25 0x02000000 // Interrupt 25 pend
-#define NVIC_PEND0_INT26 0x04000000 // Interrupt 26 pend
-#define NVIC_PEND0_INT27 0x08000000 // Interrupt 27 pend
-#define NVIC_PEND0_INT28 0x10000000 // Interrupt 28 pend
-#define NVIC_PEND0_INT29 0x20000000 // Interrupt 29 pend
-#define NVIC_PEND0_INT30 0x40000000 // Interrupt 30 pend
-#define NVIC_PEND0_INT31 0x80000000 // Interrupt 31 pend
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PEND1 register.
-//
-//*****************************************************************************
-#define NVIC_PEND1_INT_M 0xFFFFFFFF // Interrupt Set Pending
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PEND2 register.
-//
-//*****************************************************************************
-#define NVIC_PEND2_INT_M 0xFFFFFFFF // Interrupt Set Pending
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PEND3 register.
-//
-//*****************************************************************************
-#define NVIC_PEND3_INT_M 0xFFFFFFFF // Interrupt Set Pending
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PEND4 register.
-//
-//*****************************************************************************
-#define NVIC_PEND4_INT_M 0x0000000F // Interrupt Set Pending
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_UNPEND0 register.
-//
-//*****************************************************************************
-#define NVIC_UNPEND0_INT_M 0xFFFFFFFF // Interrupt Clear Pending
-#define NVIC_UNPEND0_INT0 0x00000001 // Interrupt 0 unpend
-#define NVIC_UNPEND0_INT1 0x00000002 // Interrupt 1 unpend
-#define NVIC_UNPEND0_INT2 0x00000004 // Interrupt 2 unpend
-#define NVIC_UNPEND0_INT3 0x00000008 // Interrupt 3 unpend
-#define NVIC_UNPEND0_INT4 0x00000010 // Interrupt 4 unpend
-#define NVIC_UNPEND0_INT5 0x00000020 // Interrupt 5 unpend
-#define NVIC_UNPEND0_INT6 0x00000040 // Interrupt 6 unpend
-#define NVIC_UNPEND0_INT7 0x00000080 // Interrupt 7 unpend
-#define NVIC_UNPEND0_INT8 0x00000100 // Interrupt 8 unpend
-#define NVIC_UNPEND0_INT9 0x00000200 // Interrupt 9 unpend
-#define NVIC_UNPEND0_INT10 0x00000400 // Interrupt 10 unpend
-#define NVIC_UNPEND0_INT11 0x00000800 // Interrupt 11 unpend
-#define NVIC_UNPEND0_INT12 0x00001000 // Interrupt 12 unpend
-#define NVIC_UNPEND0_INT13 0x00002000 // Interrupt 13 unpend
-#define NVIC_UNPEND0_INT14 0x00004000 // Interrupt 14 unpend
-#define NVIC_UNPEND0_INT15 0x00008000 // Interrupt 15 unpend
-#define NVIC_UNPEND0_INT16 0x00010000 // Interrupt 16 unpend
-#define NVIC_UNPEND0_INT17 0x00020000 // Interrupt 17 unpend
-#define NVIC_UNPEND0_INT18 0x00040000 // Interrupt 18 unpend
-#define NVIC_UNPEND0_INT19 0x00080000 // Interrupt 19 unpend
-#define NVIC_UNPEND0_INT20 0x00100000 // Interrupt 20 unpend
-#define NVIC_UNPEND0_INT21 0x00200000 // Interrupt 21 unpend
-#define NVIC_UNPEND0_INT22 0x00400000 // Interrupt 22 unpend
-#define NVIC_UNPEND0_INT23 0x00800000 // Interrupt 23 unpend
-#define NVIC_UNPEND0_INT24 0x01000000 // Interrupt 24 unpend
-#define NVIC_UNPEND0_INT25 0x02000000 // Interrupt 25 unpend
-#define NVIC_UNPEND0_INT26 0x04000000 // Interrupt 26 unpend
-#define NVIC_UNPEND0_INT27 0x08000000 // Interrupt 27 unpend
-#define NVIC_UNPEND0_INT28 0x10000000 // Interrupt 28 unpend
-#define NVIC_UNPEND0_INT29 0x20000000 // Interrupt 29 unpend
-#define NVIC_UNPEND0_INT30 0x40000000 // Interrupt 30 unpend
-#define NVIC_UNPEND0_INT31 0x80000000 // Interrupt 31 unpend
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_UNPEND1 register.
-//
-//*****************************************************************************
-#define NVIC_UNPEND1_INT_M 0xFFFFFFFF // Interrupt Clear Pending
-#define NVIC_UNPEND1_INT32 0x00000001 // Interrupt 32 unpend
-#define NVIC_UNPEND1_INT33 0x00000002 // Interrupt 33 unpend
-#define NVIC_UNPEND1_INT34 0x00000004 // Interrupt 34 unpend
-#define NVIC_UNPEND1_INT35 0x00000008 // Interrupt 35 unpend
-#define NVIC_UNPEND1_INT36 0x00000010 // Interrupt 36 unpend
-#define NVIC_UNPEND1_INT37 0x00000020 // Interrupt 37 unpend
-#define NVIC_UNPEND1_INT38 0x00000040 // Interrupt 38 unpend
-#define NVIC_UNPEND1_INT39 0x00000080 // Interrupt 39 unpend
-#define NVIC_UNPEND1_INT40 0x00000100 // Interrupt 40 unpend
-#define NVIC_UNPEND1_INT41 0x00000200 // Interrupt 41 unpend
-#define NVIC_UNPEND1_INT42 0x00000400 // Interrupt 42 unpend
-#define NVIC_UNPEND1_INT43 0x00000800 // Interrupt 43 unpend
-#define NVIC_UNPEND1_INT44 0x00001000 // Interrupt 44 unpend
-#define NVIC_UNPEND1_INT45 0x00002000 // Interrupt 45 unpend
-#define NVIC_UNPEND1_INT46 0x00004000 // Interrupt 46 unpend
-#define NVIC_UNPEND1_INT47 0x00008000 // Interrupt 47 unpend
-#define NVIC_UNPEND1_INT48 0x00010000 // Interrupt 48 unpend
-#define NVIC_UNPEND1_INT49 0x00020000 // Interrupt 49 unpend
-#define NVIC_UNPEND1_INT50 0x00040000 // Interrupt 50 unpend
-#define NVIC_UNPEND1_INT51 0x00080000 // Interrupt 51 unpend
-#define NVIC_UNPEND1_INT52 0x00100000 // Interrupt 52 unpend
-#define NVIC_UNPEND1_INT53 0x00200000 // Interrupt 53 unpend
-#define NVIC_UNPEND1_INT54 0x00400000 // Interrupt 54 unpend
-#define NVIC_UNPEND1_INT55 0x00800000 // Interrupt 55 unpend
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_UNPEND2 register.
-//
-//*****************************************************************************
-#define NVIC_UNPEND2_INT_M 0xFFFFFFFF // Interrupt Clear Pending
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_UNPEND3 register.
-//
-//*****************************************************************************
-#define NVIC_UNPEND3_INT_M 0xFFFFFFFF // Interrupt Clear Pending
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_UNPEND4 register.
-//
-//*****************************************************************************
-#define NVIC_UNPEND4_INT_M 0x0000000F // Interrupt Clear Pending
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ACTIVE0 register.
-//
-//*****************************************************************************
-#define NVIC_ACTIVE0_INT_M 0xFFFFFFFF // Interrupt Active
-#define NVIC_ACTIVE0_INT0 0x00000001 // Interrupt 0 active
-#define NVIC_ACTIVE0_INT1 0x00000002 // Interrupt 1 active
-#define NVIC_ACTIVE0_INT2 0x00000004 // Interrupt 2 active
-#define NVIC_ACTIVE0_INT3 0x00000008 // Interrupt 3 active
-#define NVIC_ACTIVE0_INT4 0x00000010 // Interrupt 4 active
-#define NVIC_ACTIVE0_INT5 0x00000020 // Interrupt 5 active
-#define NVIC_ACTIVE0_INT6 0x00000040 // Interrupt 6 active
-#define NVIC_ACTIVE0_INT7 0x00000080 // Interrupt 7 active
-#define NVIC_ACTIVE0_INT8 0x00000100 // Interrupt 8 active
-#define NVIC_ACTIVE0_INT9 0x00000200 // Interrupt 9 active
-#define NVIC_ACTIVE0_INT10 0x00000400 // Interrupt 10 active
-#define NVIC_ACTIVE0_INT11 0x00000800 // Interrupt 11 active
-#define NVIC_ACTIVE0_INT12 0x00001000 // Interrupt 12 active
-#define NVIC_ACTIVE0_INT13 0x00002000 // Interrupt 13 active
-#define NVIC_ACTIVE0_INT14 0x00004000 // Interrupt 14 active
-#define NVIC_ACTIVE0_INT15 0x00008000 // Interrupt 15 active
-#define NVIC_ACTIVE0_INT16 0x00010000 // Interrupt 16 active
-#define NVIC_ACTIVE0_INT17 0x00020000 // Interrupt 17 active
-#define NVIC_ACTIVE0_INT18 0x00040000 // Interrupt 18 active
-#define NVIC_ACTIVE0_INT19 0x00080000 // Interrupt 19 active
-#define NVIC_ACTIVE0_INT20 0x00100000 // Interrupt 20 active
-#define NVIC_ACTIVE0_INT21 0x00200000 // Interrupt 21 active
-#define NVIC_ACTIVE0_INT22 0x00400000 // Interrupt 22 active
-#define NVIC_ACTIVE0_INT23 0x00800000 // Interrupt 23 active
-#define NVIC_ACTIVE0_INT24 0x01000000 // Interrupt 24 active
-#define NVIC_ACTIVE0_INT25 0x02000000 // Interrupt 25 active
-#define NVIC_ACTIVE0_INT26 0x04000000 // Interrupt 26 active
-#define NVIC_ACTIVE0_INT27 0x08000000 // Interrupt 27 active
-#define NVIC_ACTIVE0_INT28 0x10000000 // Interrupt 28 active
-#define NVIC_ACTIVE0_INT29 0x20000000 // Interrupt 29 active
-#define NVIC_ACTIVE0_INT30 0x40000000 // Interrupt 30 active
-#define NVIC_ACTIVE0_INT31 0x80000000 // Interrupt 31 active
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ACTIVE1 register.
-//
-//*****************************************************************************
-#define NVIC_ACTIVE1_INT_M 0xFFFFFFFF // Interrupt Active
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ACTIVE2 register.
-//
-//*****************************************************************************
-#define NVIC_ACTIVE2_INT_M 0xFFFFFFFF // Interrupt Active
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ACTIVE3 register.
-//
-//*****************************************************************************
-#define NVIC_ACTIVE3_INT_M 0xFFFFFFFF // Interrupt Active
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_ACTIVE4 register.
-//
-//*****************************************************************************
-#define NVIC_ACTIVE4_INT_M 0x0000000F // Interrupt Active
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI0 register.
-//
-//*****************************************************************************
-#define NVIC_PRI0_INT3_M 0xE0000000 // Interrupt 3 Priority Mask
-#define NVIC_PRI0_INT2_M 0x00E00000 // Interrupt 2 Priority Mask
-#define NVIC_PRI0_INT1_M 0x0000E000 // Interrupt 1 Priority Mask
-#define NVIC_PRI0_INT0_M 0x000000E0 // Interrupt 0 Priority Mask
-#define NVIC_PRI0_INT3_S 29
-#define NVIC_PRI0_INT2_S 21
-#define NVIC_PRI0_INT1_S 13
-#define NVIC_PRI0_INT0_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI1 register.
-//
-//*****************************************************************************
-#define NVIC_PRI1_INT7_M 0xE0000000 // Interrupt 7 Priority Mask
-#define NVIC_PRI1_INT6_M 0x00E00000 // Interrupt 6 Priority Mask
-#define NVIC_PRI1_INT5_M 0x0000E000 // Interrupt 5 Priority Mask
-#define NVIC_PRI1_INT4_M 0x000000E0 // Interrupt 4 Priority Mask
-#define NVIC_PRI1_INT7_S 29
-#define NVIC_PRI1_INT6_S 21
-#define NVIC_PRI1_INT5_S 13
-#define NVIC_PRI1_INT4_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI2 register.
-//
-//*****************************************************************************
-#define NVIC_PRI2_INT11_M 0xE0000000 // Interrupt 11 Priority Mask
-#define NVIC_PRI2_INT10_M 0x00E00000 // Interrupt 10 Priority Mask
-#define NVIC_PRI2_INT9_M 0x0000E000 // Interrupt 9 Priority Mask
-#define NVIC_PRI2_INT8_M 0x000000E0 // Interrupt 8 Priority Mask
-#define NVIC_PRI2_INT11_S 29
-#define NVIC_PRI2_INT10_S 21
-#define NVIC_PRI2_INT9_S 13
-#define NVIC_PRI2_INT8_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI3 register.
-//
-//*****************************************************************************
-#define NVIC_PRI3_INT15_M 0xE0000000 // Interrupt 15 Priority Mask
-#define NVIC_PRI3_INT14_M 0x00E00000 // Interrupt 14 Priority Mask
-#define NVIC_PRI3_INT13_M 0x0000E000 // Interrupt 13 Priority Mask
-#define NVIC_PRI3_INT12_M 0x000000E0 // Interrupt 12 Priority Mask
-#define NVIC_PRI3_INT15_S 29
-#define NVIC_PRI3_INT14_S 21
-#define NVIC_PRI3_INT13_S 13
-#define NVIC_PRI3_INT12_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI4 register.
-//
-//*****************************************************************************
-#define NVIC_PRI4_INT19_M 0xE0000000 // Interrupt 19 Priority Mask
-#define NVIC_PRI4_INT18_M 0x00E00000 // Interrupt 18 Priority Mask
-#define NVIC_PRI4_INT17_M 0x0000E000 // Interrupt 17 Priority Mask
-#define NVIC_PRI4_INT16_M 0x000000E0 // Interrupt 16 Priority Mask
-#define NVIC_PRI4_INT19_S 29
-#define NVIC_PRI4_INT18_S 21
-#define NVIC_PRI4_INT17_S 13
-#define NVIC_PRI4_INT16_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI5 register.
-//
-//*****************************************************************************
-#define NVIC_PRI5_INT23_M 0xE0000000 // Interrupt 23 Priority Mask
-#define NVIC_PRI5_INT22_M 0x00E00000 // Interrupt 22 Priority Mask
-#define NVIC_PRI5_INT21_M 0x0000E000 // Interrupt 21 Priority Mask
-#define NVIC_PRI5_INT20_M 0x000000E0 // Interrupt 20 Priority Mask
-#define NVIC_PRI5_INT23_S 29
-#define NVIC_PRI5_INT22_S 21
-#define NVIC_PRI5_INT21_S 13
-#define NVIC_PRI5_INT20_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI6 register.
-//
-//*****************************************************************************
-#define NVIC_PRI6_INT27_M 0xE0000000 // Interrupt 27 Priority Mask
-#define NVIC_PRI6_INT26_M 0x00E00000 // Interrupt 26 Priority Mask
-#define NVIC_PRI6_INT25_M 0x0000E000 // Interrupt 25 Priority Mask
-#define NVIC_PRI6_INT24_M 0x000000E0 // Interrupt 24 Priority Mask
-#define NVIC_PRI6_INT27_S 29
-#define NVIC_PRI6_INT26_S 21
-#define NVIC_PRI6_INT25_S 13
-#define NVIC_PRI6_INT24_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI7 register.
-//
-//*****************************************************************************
-#define NVIC_PRI7_INT31_M 0xE0000000 // Interrupt 31 Priority Mask
-#define NVIC_PRI7_INT30_M 0x00E00000 // Interrupt 30 Priority Mask
-#define NVIC_PRI7_INT29_M 0x0000E000 // Interrupt 29 Priority Mask
-#define NVIC_PRI7_INT28_M 0x000000E0 // Interrupt 28 Priority Mask
-#define NVIC_PRI7_INT31_S 29
-#define NVIC_PRI7_INT30_S 21
-#define NVIC_PRI7_INT29_S 13
-#define NVIC_PRI7_INT28_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI8 register.
-//
-//*****************************************************************************
-#define NVIC_PRI8_INT35_M 0xE0000000 // Interrupt 35 Priority Mask
-#define NVIC_PRI8_INT34_M 0x00E00000 // Interrupt 34 Priority Mask
-#define NVIC_PRI8_INT33_M 0x0000E000 // Interrupt 33 Priority Mask
-#define NVIC_PRI8_INT32_M 0x000000E0 // Interrupt 32 Priority Mask
-#define NVIC_PRI8_INT35_S 29
-#define NVIC_PRI8_INT34_S 21
-#define NVIC_PRI8_INT33_S 13
-#define NVIC_PRI8_INT32_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI9 register.
-//
-//*****************************************************************************
-#define NVIC_PRI9_INT39_M 0xE0000000 // Interrupt 39 Priority Mask
-#define NVIC_PRI9_INT38_M 0x00E00000 // Interrupt 38 Priority Mask
-#define NVIC_PRI9_INT37_M 0x0000E000 // Interrupt 37 Priority Mask
-#define NVIC_PRI9_INT36_M 0x000000E0 // Interrupt 36 Priority Mask
-#define NVIC_PRI9_INT39_S 29
-#define NVIC_PRI9_INT38_S 21
-#define NVIC_PRI9_INT37_S 13
-#define NVIC_PRI9_INT36_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI10 register.
-//
-//*****************************************************************************
-#define NVIC_PRI10_INT43_M 0xE0000000 // Interrupt 43 Priority Mask
-#define NVIC_PRI10_INT42_M 0x00E00000 // Interrupt 42 Priority Mask
-#define NVIC_PRI10_INT41_M 0x0000E000 // Interrupt 41 Priority Mask
-#define NVIC_PRI10_INT40_M 0x000000E0 // Interrupt 40 Priority Mask
-#define NVIC_PRI10_INT43_S 29
-#define NVIC_PRI10_INT42_S 21
-#define NVIC_PRI10_INT41_S 13
-#define NVIC_PRI10_INT40_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI11 register.
-//
-//*****************************************************************************
-#define NVIC_PRI11_INT47_M 0xE0000000 // Interrupt 47 Priority Mask
-#define NVIC_PRI11_INT46_M 0x00E00000 // Interrupt 46 Priority Mask
-#define NVIC_PRI11_INT45_M 0x0000E000 // Interrupt 45 Priority Mask
-#define NVIC_PRI11_INT44_M 0x000000E0 // Interrupt 44 Priority Mask
-#define NVIC_PRI11_INT47_S 29
-#define NVIC_PRI11_INT46_S 21
-#define NVIC_PRI11_INT45_S 13
-#define NVIC_PRI11_INT44_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI12 register.
-//
-//*****************************************************************************
-#define NVIC_PRI12_INT51_M 0xE0000000 // Interrupt 51 Priority Mask
-#define NVIC_PRI12_INT50_M 0x00E00000 // Interrupt 50 Priority Mask
-#define NVIC_PRI12_INT49_M 0x0000E000 // Interrupt 49 Priority Mask
-#define NVIC_PRI12_INT48_M 0x000000E0 // Interrupt 48 Priority Mask
-#define NVIC_PRI12_INT51_S 29
-#define NVIC_PRI12_INT50_S 21
-#define NVIC_PRI12_INT49_S 13
-#define NVIC_PRI12_INT48_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI13 register.
-//
-//*****************************************************************************
-#define NVIC_PRI13_INT55_M 0xE0000000 // Interrupt 55 Priority Mask
-#define NVIC_PRI13_INT54_M 0x00E00000 // Interrupt 54 Priority Mask
-#define NVIC_PRI13_INT53_M 0x0000E000 // Interrupt 53 Priority Mask
-#define NVIC_PRI13_INT52_M 0x000000E0 // Interrupt 52 Priority Mask
-#define NVIC_PRI13_INT55_S 29
-#define NVIC_PRI13_INT54_S 21
-#define NVIC_PRI13_INT53_S 13
-#define NVIC_PRI13_INT52_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI14 register.
-//
-//*****************************************************************************
-#define NVIC_PRI14_INTD_M 0xE0000000 // Interrupt 59 Priority Mask
-#define NVIC_PRI14_INTC_M 0x00E00000 // Interrupt 58 Priority Mask
-#define NVIC_PRI14_INTB_M 0x0000E000 // Interrupt 57 Priority Mask
-#define NVIC_PRI14_INTA_M 0x000000E0 // Interrupt 56 Priority Mask
-#define NVIC_PRI14_INTD_S 29
-#define NVIC_PRI14_INTC_S 21
-#define NVIC_PRI14_INTB_S 13
-#define NVIC_PRI14_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI15 register.
-//
-//*****************************************************************************
-#define NVIC_PRI15_INTD_M 0xE0000000 // Interrupt 63 Priority Mask
-#define NVIC_PRI15_INTC_M 0x00E00000 // Interrupt 62 Priority Mask
-#define NVIC_PRI15_INTB_M 0x0000E000 // Interrupt 61 Priority Mask
-#define NVIC_PRI15_INTA_M 0x000000E0 // Interrupt 60 Priority Mask
-#define NVIC_PRI15_INTD_S 29
-#define NVIC_PRI15_INTC_S 21
-#define NVIC_PRI15_INTB_S 13
-#define NVIC_PRI15_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI16 register.
-//
-//*****************************************************************************
-#define NVIC_PRI16_INTD_M 0xE0000000 // Interrupt 67 Priority Mask
-#define NVIC_PRI16_INTC_M 0x00E00000 // Interrupt 66 Priority Mask
-#define NVIC_PRI16_INTB_M 0x0000E000 // Interrupt 65 Priority Mask
-#define NVIC_PRI16_INTA_M 0x000000E0 // Interrupt 64 Priority Mask
-#define NVIC_PRI16_INTD_S 29
-#define NVIC_PRI16_INTC_S 21
-#define NVIC_PRI16_INTB_S 13
-#define NVIC_PRI16_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI17 register.
-//
-//*****************************************************************************
-#define NVIC_PRI17_INTD_M 0xE0000000 // Interrupt 71 Priority Mask
-#define NVIC_PRI17_INTC_M 0x00E00000 // Interrupt 70 Priority Mask
-#define NVIC_PRI17_INTB_M 0x0000E000 // Interrupt 69 Priority Mask
-#define NVIC_PRI17_INTA_M 0x000000E0 // Interrupt 68 Priority Mask
-#define NVIC_PRI17_INTD_S 29
-#define NVIC_PRI17_INTC_S 21
-#define NVIC_PRI17_INTB_S 13
-#define NVIC_PRI17_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI18 register.
-//
-//*****************************************************************************
-#define NVIC_PRI18_INTD_M 0xE0000000 // Interrupt 75 Priority Mask
-#define NVIC_PRI18_INTC_M 0x00E00000 // Interrupt 74 Priority Mask
-#define NVIC_PRI18_INTB_M 0x0000E000 // Interrupt 73 Priority Mask
-#define NVIC_PRI18_INTA_M 0x000000E0 // Interrupt 72 Priority Mask
-#define NVIC_PRI18_INTD_S 29
-#define NVIC_PRI18_INTC_S 21
-#define NVIC_PRI18_INTB_S 13
-#define NVIC_PRI18_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI19 register.
-//
-//*****************************************************************************
-#define NVIC_PRI19_INTD_M 0xE0000000 // Interrupt 79 Priority Mask
-#define NVIC_PRI19_INTC_M 0x00E00000 // Interrupt 78 Priority Mask
-#define NVIC_PRI19_INTB_M 0x0000E000 // Interrupt 77 Priority Mask
-#define NVIC_PRI19_INTA_M 0x000000E0 // Interrupt 76 Priority Mask
-#define NVIC_PRI19_INTD_S 29
-#define NVIC_PRI19_INTC_S 21
-#define NVIC_PRI19_INTB_S 13
-#define NVIC_PRI19_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI20 register.
-//
-//*****************************************************************************
-#define NVIC_PRI20_INTD_M 0xE0000000 // Interrupt 83 Priority Mask
-#define NVIC_PRI20_INTC_M 0x00E00000 // Interrupt 82 Priority Mask
-#define NVIC_PRI20_INTB_M 0x0000E000 // Interrupt 81 Priority Mask
-#define NVIC_PRI20_INTA_M 0x000000E0 // Interrupt 80 Priority Mask
-#define NVIC_PRI20_INTD_S 29
-#define NVIC_PRI20_INTC_S 21
-#define NVIC_PRI20_INTB_S 13
-#define NVIC_PRI20_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI21 register.
-//
-//*****************************************************************************
-#define NVIC_PRI21_INTD_M 0xE0000000 // Interrupt 87 Priority Mask
-#define NVIC_PRI21_INTC_M 0x00E00000 // Interrupt 86 Priority Mask
-#define NVIC_PRI21_INTB_M 0x0000E000 // Interrupt 85 Priority Mask
-#define NVIC_PRI21_INTA_M 0x000000E0 // Interrupt 84 Priority Mask
-#define NVIC_PRI21_INTD_S 29
-#define NVIC_PRI21_INTC_S 21
-#define NVIC_PRI21_INTB_S 13
-#define NVIC_PRI21_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI22 register.
-//
-//*****************************************************************************
-#define NVIC_PRI22_INTD_M 0xE0000000 // Interrupt 91 Priority Mask
-#define NVIC_PRI22_INTC_M 0x00E00000 // Interrupt 90 Priority Mask
-#define NVIC_PRI22_INTB_M 0x0000E000 // Interrupt 89 Priority Mask
-#define NVIC_PRI22_INTA_M 0x000000E0 // Interrupt 88 Priority Mask
-#define NVIC_PRI22_INTD_S 29
-#define NVIC_PRI22_INTC_S 21
-#define NVIC_PRI22_INTB_S 13
-#define NVIC_PRI22_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI23 register.
-//
-//*****************************************************************************
-#define NVIC_PRI23_INTD_M 0xE0000000 // Interrupt 95 Priority Mask
-#define NVIC_PRI23_INTC_M 0x00E00000 // Interrupt 94 Priority Mask
-#define NVIC_PRI23_INTB_M 0x0000E000 // Interrupt 93 Priority Mask
-#define NVIC_PRI23_INTA_M 0x000000E0 // Interrupt 92 Priority Mask
-#define NVIC_PRI23_INTD_S 29
-#define NVIC_PRI23_INTC_S 21
-#define NVIC_PRI23_INTB_S 13
-#define NVIC_PRI23_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI24 register.
-//
-//*****************************************************************************
-#define NVIC_PRI24_INTD_M 0xE0000000 // Interrupt 99 Priority Mask
-#define NVIC_PRI24_INTC_M 0x00E00000 // Interrupt 98 Priority Mask
-#define NVIC_PRI24_INTB_M 0x0000E000 // Interrupt 97 Priority Mask
-#define NVIC_PRI24_INTA_M 0x000000E0 // Interrupt 96 Priority Mask
-#define NVIC_PRI24_INTD_S 29
-#define NVIC_PRI24_INTC_S 21
-#define NVIC_PRI24_INTB_S 13
-#define NVIC_PRI24_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI25 register.
-//
-//*****************************************************************************
-#define NVIC_PRI25_INTD_M 0xE0000000 // Interrupt 103 Priority Mask
-#define NVIC_PRI25_INTC_M 0x00E00000 // Interrupt 102 Priority Mask
-#define NVIC_PRI25_INTB_M 0x0000E000 // Interrupt 101 Priority Mask
-#define NVIC_PRI25_INTA_M 0x000000E0 // Interrupt 100 Priority Mask
-#define NVIC_PRI25_INTD_S 29
-#define NVIC_PRI25_INTC_S 21
-#define NVIC_PRI25_INTB_S 13
-#define NVIC_PRI25_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI26 register.
-//
-//*****************************************************************************
-#define NVIC_PRI26_INTD_M 0xE0000000 // Interrupt 107 Priority Mask
-#define NVIC_PRI26_INTC_M 0x00E00000 // Interrupt 106 Priority Mask
-#define NVIC_PRI26_INTB_M 0x0000E000 // Interrupt 105 Priority Mask
-#define NVIC_PRI26_INTA_M 0x000000E0 // Interrupt 104 Priority Mask
-#define NVIC_PRI26_INTD_S 29
-#define NVIC_PRI26_INTC_S 21
-#define NVIC_PRI26_INTB_S 13
-#define NVIC_PRI26_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI27 register.
-//
-//*****************************************************************************
-#define NVIC_PRI27_INTD_M 0xE0000000 // Interrupt 111 Priority Mask
-#define NVIC_PRI27_INTC_M 0x00E00000 // Interrupt 110 Priority Mask
-#define NVIC_PRI27_INTB_M 0x0000E000 // Interrupt 109 Priority Mask
-#define NVIC_PRI27_INTA_M 0x000000E0 // Interrupt 108 Priority Mask
-#define NVIC_PRI27_INTD_S 29
-#define NVIC_PRI27_INTC_S 21
-#define NVIC_PRI27_INTB_S 13
-#define NVIC_PRI27_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI28 register.
-//
-//*****************************************************************************
-#define NVIC_PRI28_INTD_M 0xE0000000 // Interrupt 115 Priority Mask
-#define NVIC_PRI28_INTC_M 0x00E00000 // Interrupt 114 Priority Mask
-#define NVIC_PRI28_INTB_M 0x0000E000 // Interrupt 113 Priority Mask
-#define NVIC_PRI28_INTA_M 0x000000E0 // Interrupt 112 Priority Mask
-#define NVIC_PRI28_INTD_S 29
-#define NVIC_PRI28_INTC_S 21
-#define NVIC_PRI28_INTB_S 13
-#define NVIC_PRI28_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI29 register.
-//
-//*****************************************************************************
-#define NVIC_PRI29_INTD_M 0xE0000000 // Interrupt 119 Priority Mask
-#define NVIC_PRI29_INTC_M 0x00E00000 // Interrupt 118 Priority Mask
-#define NVIC_PRI29_INTB_M 0x0000E000 // Interrupt 117 Priority Mask
-#define NVIC_PRI29_INTA_M 0x000000E0 // Interrupt 116 Priority Mask
-#define NVIC_PRI29_INTD_S 29
-#define NVIC_PRI29_INTC_S 21
-#define NVIC_PRI29_INTB_S 13
-#define NVIC_PRI29_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI30 register.
-//
-//*****************************************************************************
-#define NVIC_PRI30_INTD_M 0xE0000000 // Interrupt 123 Priority Mask
-#define NVIC_PRI30_INTC_M 0x00E00000 // Interrupt 122 Priority Mask
-#define NVIC_PRI30_INTB_M 0x0000E000 // Interrupt 121 Priority Mask
-#define NVIC_PRI30_INTA_M 0x000000E0 // Interrupt 120 Priority Mask
-#define NVIC_PRI30_INTD_S 29
-#define NVIC_PRI30_INTC_S 21
-#define NVIC_PRI30_INTB_S 13
-#define NVIC_PRI30_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI31 register.
-//
-//*****************************************************************************
-#define NVIC_PRI31_INTD_M 0xE0000000 // Interrupt 127 Priority Mask
-#define NVIC_PRI31_INTC_M 0x00E00000 // Interrupt 126 Priority Mask
-#define NVIC_PRI31_INTB_M 0x0000E000 // Interrupt 125 Priority Mask
-#define NVIC_PRI31_INTA_M 0x000000E0 // Interrupt 124 Priority Mask
-#define NVIC_PRI31_INTD_S 29
-#define NVIC_PRI31_INTC_S 21
-#define NVIC_PRI31_INTB_S 13
-#define NVIC_PRI31_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_PRI32 register.
-//
-//*****************************************************************************
-#define NVIC_PRI32_INTD_M 0xE0000000 // Interrupt 131 Priority Mask
-#define NVIC_PRI32_INTC_M 0x00E00000 // Interrupt 130 Priority Mask
-#define NVIC_PRI32_INTB_M 0x0000E000 // Interrupt 129 Priority Mask
-#define NVIC_PRI32_INTA_M 0x000000E0 // Interrupt 128 Priority Mask
-#define NVIC_PRI32_INTD_S 29
-#define NVIC_PRI32_INTC_S 21
-#define NVIC_PRI32_INTB_S 13
-#define NVIC_PRI32_INTA_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_CPUID register.
-//
-//*****************************************************************************
-#define NVIC_CPUID_IMP_M 0xFF000000 // Implementer Code
-#define NVIC_CPUID_IMP_ARM 0x41000000 // ARM
-#define NVIC_CPUID_VAR_M 0x00F00000 // Variant Number
-#define NVIC_CPUID_CON_M 0x000F0000 // Constant
-#define NVIC_CPUID_PARTNO_M 0x0000FFF0 // Part Number
-#define NVIC_CPUID_PARTNO_CM4 0x0000C240 // Cortex-M4 processor
-#define NVIC_CPUID_REV_M 0x0000000F // Revision Number
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_INT_CTRL register.
-//
-//*****************************************************************************
-#define NVIC_INT_CTRL_NMI_SET 0x80000000 // NMI Set Pending
-#define NVIC_INT_CTRL_PEND_SV 0x10000000 // PendSV Set Pending
-#define NVIC_INT_CTRL_UNPEND_SV 0x08000000 // PendSV Clear Pending
-#define NVIC_INT_CTRL_PENDSTSET 0x04000000 // SysTick Set Pending
-#define NVIC_INT_CTRL_PENDSTCLR 0x02000000 // SysTick Clear Pending
-#define NVIC_INT_CTRL_ISR_PRE 0x00800000 // Debug Interrupt Handling
-#define NVIC_INT_CTRL_ISR_PEND 0x00400000 // Interrupt Pending
-#define NVIC_INT_CTRL_VEC_PEN_M 0x000FF000 // Interrupt Pending Vector Number
-#define NVIC_INT_CTRL_VEC_PEN_NMI \
- 0x00002000 // NMI
-#define NVIC_INT_CTRL_VEC_PEN_HARD \
- 0x00003000 // Hard fault
-#define NVIC_INT_CTRL_VEC_PEN_MEM \
- 0x00004000 // Memory management fault
-#define NVIC_INT_CTRL_VEC_PEN_BUS \
- 0x00005000 // Bus fault
-#define NVIC_INT_CTRL_VEC_PEN_USG \
- 0x00006000 // Usage fault
-#define NVIC_INT_CTRL_VEC_PEN_SVC \
- 0x0000B000 // SVCall
-#define NVIC_INT_CTRL_VEC_PEN_PNDSV \
- 0x0000E000 // PendSV
-#define NVIC_INT_CTRL_VEC_PEN_TICK \
- 0x0000F000 // SysTick
-#define NVIC_INT_CTRL_RET_BASE 0x00000800 // Return to Base
-#define NVIC_INT_CTRL_VEC_ACT_M 0x000000FF // Interrupt Pending Vector Number
-#define NVIC_INT_CTRL_VEC_ACT_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_VTABLE register.
-//
-//*****************************************************************************
-#define NVIC_VTABLE_BASE 0x20000000 // Vector Table Base
-#define NVIC_VTABLE_OFFSET_M 0x1FFFFC00 // Vector Table Offset
-#define NVIC_VTABLE_OFFSET_S 10
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_APINT register.
-//
-//*****************************************************************************
-#define NVIC_APINT_VECTKEY_M 0xFFFF0000 // Register Key
-#define NVIC_APINT_VECTKEY 0x05FA0000 // Vector key
-#define NVIC_APINT_ENDIANESS 0x00008000 // Data Endianess
-#define NVIC_APINT_PRIGROUP_M 0x00000700 // Interrupt Priority Grouping
-#define NVIC_APINT_PRIGROUP_7_1 0x00000000 // Priority group 7.1 split
-#define NVIC_APINT_PRIGROUP_6_2 0x00000100 // Priority group 6.2 split
-#define NVIC_APINT_PRIGROUP_5_3 0x00000200 // Priority group 5.3 split
-#define NVIC_APINT_PRIGROUP_4_4 0x00000300 // Priority group 4.4 split
-#define NVIC_APINT_PRIGROUP_3_5 0x00000400 // Priority group 3.5 split
-#define NVIC_APINT_PRIGROUP_2_6 0x00000500 // Priority group 2.6 split
-#define NVIC_APINT_PRIGROUP_1_7 0x00000600 // Priority group 1.7 split
-#define NVIC_APINT_PRIGROUP_0_8 0x00000700 // Priority group 0.8 split
-#define NVIC_APINT_SYSRESETREQ 0x00000004 // System Reset Request
-#define NVIC_APINT_VECT_CLR_ACT 0x00000002 // Clear Active NMI / Fault
-#define NVIC_APINT_VECT_RESET 0x00000001 // System Reset
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_SYS_CTRL register.
-//
-//*****************************************************************************
-#define NVIC_SYS_CTRL_SEVONPEND 0x00000010 // Wake Up on Pending
-#define NVIC_SYS_CTRL_SLEEPDEEP 0x00000004 // Deep Sleep Enable
-#define NVIC_SYS_CTRL_SLEEPEXIT 0x00000002 // Sleep on ISR Exit
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_CFG_CTRL register.
-//
-//*****************************************************************************
-#define NVIC_CFG_CTRL_STKALIGN 0x00000200 // Stack Alignment on Exception
- // Entry
-#define NVIC_CFG_CTRL_BFHFNMIGN 0x00000100 // Ignore Bus Fault in NMI and
- // Fault
-#define NVIC_CFG_CTRL_DIV0 0x00000010 // Trap on Divide by 0
-#define NVIC_CFG_CTRL_UNALIGNED 0x00000008 // Trap on Unaligned Access
-#define NVIC_CFG_CTRL_MAIN_PEND 0x00000002 // Allow Main Interrupt Trigger
-#define NVIC_CFG_CTRL_BASE_THR 0x00000001 // Thread State Control
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_SYS_PRI1 register.
-//
-//*****************************************************************************
-#define NVIC_SYS_PRI1_USAGE_M 0x00E00000 // Usage Fault Priority
-#define NVIC_SYS_PRI1_BUS_M 0x0000E000 // Bus Fault Priority
-#define NVIC_SYS_PRI1_MEM_M 0x000000E0 // Memory Management Fault Priority
-#define NVIC_SYS_PRI1_USAGE_S 21
-#define NVIC_SYS_PRI1_BUS_S 13
-#define NVIC_SYS_PRI1_MEM_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_SYS_PRI2 register.
-//
-//*****************************************************************************
-#define NVIC_SYS_PRI2_SVC_M 0xE0000000 // SVCall Priority
-#define NVIC_SYS_PRI2_SVC_S 29
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_SYS_PRI3 register.
-//
-//*****************************************************************************
-#define NVIC_SYS_PRI3_TICK_M 0xE0000000 // SysTick Exception Priority
-#define NVIC_SYS_PRI3_PENDSV_M 0x00E00000 // PendSV Priority
-#define NVIC_SYS_PRI3_DEBUG_M 0x000000E0 // Debug Priority
-#define NVIC_SYS_PRI3_TICK_S 29
-#define NVIC_SYS_PRI3_PENDSV_S 21
-#define NVIC_SYS_PRI3_DEBUG_S 5
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_SYS_HND_CTRL
-// register.
-//
-//*****************************************************************************
-#define NVIC_SYS_HND_CTRL_USAGE 0x00040000 // Usage Fault Enable
-#define NVIC_SYS_HND_CTRL_BUS 0x00020000 // Bus Fault Enable
-#define NVIC_SYS_HND_CTRL_MEM 0x00010000 // Memory Management Fault Enable
-#define NVIC_SYS_HND_CTRL_SVC 0x00008000 // SVC Call Pending
-#define NVIC_SYS_HND_CTRL_BUSP 0x00004000 // Bus Fault Pending
-#define NVIC_SYS_HND_CTRL_MEMP 0x00002000 // Memory Management Fault Pending
-#define NVIC_SYS_HND_CTRL_USAGEP \
- 0x00001000 // Usage Fault Pending
-#define NVIC_SYS_HND_CTRL_TICK 0x00000800 // SysTick Exception Active
-#define NVIC_SYS_HND_CTRL_PNDSV 0x00000400 // PendSV Exception Active
-#define NVIC_SYS_HND_CTRL_MON 0x00000100 // Debug Monitor Active
-#define NVIC_SYS_HND_CTRL_SVCA 0x00000080 // SVC Call Active
-#define NVIC_SYS_HND_CTRL_USGA 0x00000008 // Usage Fault Active
-#define NVIC_SYS_HND_CTRL_BUSA 0x00000002 // Bus Fault Active
-#define NVIC_SYS_HND_CTRL_MEMA 0x00000001 // Memory Management Fault Active
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_FAULT_STAT
-// register.
-//
-//*****************************************************************************
-#define NVIC_FAULT_STAT_DIV0 0x02000000 // Divide-by-Zero Usage Fault
-#define NVIC_FAULT_STAT_UNALIGN 0x01000000 // Unaligned Access Usage Fault
-#define NVIC_FAULT_STAT_NOCP 0x00080000 // No Coprocessor Usage Fault
-#define NVIC_FAULT_STAT_INVPC 0x00040000 // Invalid PC Load Usage Fault
-#define NVIC_FAULT_STAT_INVSTAT 0x00020000 // Invalid State Usage Fault
-#define NVIC_FAULT_STAT_UNDEF 0x00010000 // Undefined Instruction Usage
- // Fault
-#define NVIC_FAULT_STAT_BFARV 0x00008000 // Bus Fault Address Register Valid
-#define NVIC_FAULT_STAT_BLSPERR 0x00002000 // Bus Fault on Floating-Point Lazy
- // State Preservation
-#define NVIC_FAULT_STAT_BSTKE 0x00001000 // Stack Bus Fault
-#define NVIC_FAULT_STAT_BUSTKE 0x00000800 // Unstack Bus Fault
-#define NVIC_FAULT_STAT_IMPRE 0x00000400 // Imprecise Data Bus Error
-#define NVIC_FAULT_STAT_PRECISE 0x00000200 // Precise Data Bus Error
-#define NVIC_FAULT_STAT_IBUS 0x00000100 // Instruction Bus Error
-#define NVIC_FAULT_STAT_MMARV 0x00000080 // Memory Management Fault Address
- // Register Valid
-#define NVIC_FAULT_STAT_MLSPERR 0x00000020 // Memory Management Fault on
- // Floating-Point Lazy State
- // Preservation
-#define NVIC_FAULT_STAT_MSTKE 0x00000010 // Stack Access Violation
-#define NVIC_FAULT_STAT_MUSTKE 0x00000008 // Unstack Access Violation
-#define NVIC_FAULT_STAT_DERR 0x00000002 // Data Access Violation
-#define NVIC_FAULT_STAT_IERR 0x00000001 // Instruction Access Violation
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_HFAULT_STAT
-// register.
-//
-//*****************************************************************************
-#define NVIC_HFAULT_STAT_DBG 0x80000000 // Debug Event
-#define NVIC_HFAULT_STAT_FORCED 0x40000000 // Forced Hard Fault
-#define NVIC_HFAULT_STAT_VECT 0x00000002 // Vector Table Read Fault
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DEBUG_STAT
-// register.
-//
-//*****************************************************************************
-#define NVIC_DEBUG_STAT_EXTRNL 0x00000010 // EDBGRQ asserted
-#define NVIC_DEBUG_STAT_VCATCH 0x00000008 // Vector catch
-#define NVIC_DEBUG_STAT_DWTTRAP 0x00000004 // DWT match
-#define NVIC_DEBUG_STAT_BKPT 0x00000002 // Breakpoint instruction
-#define NVIC_DEBUG_STAT_HALTED 0x00000001 // Halt request
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MM_ADDR register.
-//
-//*****************************************************************************
-#define NVIC_MM_ADDR_M 0xFFFFFFFF // Fault Address
-#define NVIC_MM_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_FAULT_ADDR
-// register.
-//
-//*****************************************************************************
-#define NVIC_FAULT_ADDR_M 0xFFFFFFFF // Fault Address
-#define NVIC_FAULT_ADDR_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_CPAC register.
-//
-//*****************************************************************************
-#define NVIC_CPAC_CP11_M 0x00C00000 // CP11 Coprocessor Access
- // Privilege
-#define NVIC_CPAC_CP11_DIS 0x00000000 // Access Denied
-#define NVIC_CPAC_CP11_PRIV 0x00400000 // Privileged Access Only
-#define NVIC_CPAC_CP11_FULL 0x00C00000 // Full Access
-#define NVIC_CPAC_CP10_M 0x00300000 // CP10 Coprocessor Access
- // Privilege
-#define NVIC_CPAC_CP10_DIS 0x00000000 // Access Denied
-#define NVIC_CPAC_CP10_PRIV 0x00100000 // Privileged Access Only
-#define NVIC_CPAC_CP10_FULL 0x00300000 // Full Access
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_TYPE register.
-//
-//*****************************************************************************
-#define NVIC_MPU_TYPE_IREGION_M 0x00FF0000 // Number of I Regions
-#define NVIC_MPU_TYPE_DREGION_M 0x0000FF00 // Number of D Regions
-#define NVIC_MPU_TYPE_SEPARATE 0x00000001 // Separate or Unified MPU
-#define NVIC_MPU_TYPE_IREGION_S 16
-#define NVIC_MPU_TYPE_DREGION_S 8
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_CTRL register.
-//
-//*****************************************************************************
-#define NVIC_MPU_CTRL_PRIVDEFEN 0x00000004 // MPU Default Region
-#define NVIC_MPU_CTRL_HFNMIENA 0x00000002 // MPU Enabled During Faults
-#define NVIC_MPU_CTRL_ENABLE 0x00000001 // MPU Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_NUMBER
-// register.
-//
-//*****************************************************************************
-#define NVIC_MPU_NUMBER_M 0x00000007 // MPU Region to Access
-#define NVIC_MPU_NUMBER_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_BASE register.
-//
-//*****************************************************************************
-#define NVIC_MPU_BASE_ADDR_M 0xFFFFFFE0 // Base Address Mask
-#define NVIC_MPU_BASE_VALID 0x00000010 // Region Number Valid
-#define NVIC_MPU_BASE_REGION_M 0x00000007 // Region Number
-#define NVIC_MPU_BASE_ADDR_S 5
-#define NVIC_MPU_BASE_REGION_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_ATTR register.
-//
-//*****************************************************************************
-#define NVIC_MPU_ATTR_XN 0x10000000 // Instruction Access Disable
-#define NVIC_MPU_ATTR_AP_M 0x07000000 // Access Privilege
-#define NVIC_MPU_ATTR_TEX_M 0x00380000 // Type Extension Mask
-#define NVIC_MPU_ATTR_SHAREABLE 0x00040000 // Shareable
-#define NVIC_MPU_ATTR_CACHEABLE 0x00020000 // Cacheable
-#define NVIC_MPU_ATTR_BUFFRABLE 0x00010000 // Bufferable
-#define NVIC_MPU_ATTR_SRD_M 0x0000FF00 // Subregion Disable Bits
-#define NVIC_MPU_ATTR_SIZE_M 0x0000003E // Region Size Mask
-#define NVIC_MPU_ATTR_ENABLE 0x00000001 // Region Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_BASE1 register.
-//
-//*****************************************************************************
-#define NVIC_MPU_BASE1_ADDR_M 0xFFFFFFE0 // Base Address Mask
-#define NVIC_MPU_BASE1_VALID 0x00000010 // Region Number Valid
-#define NVIC_MPU_BASE1_REGION_M 0x00000007 // Region Number
-#define NVIC_MPU_BASE1_ADDR_S 5
-#define NVIC_MPU_BASE1_REGION_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_ATTR1 register.
-//
-//*****************************************************************************
-#define NVIC_MPU_ATTR1_XN 0x10000000 // Instruction Access Disable
-#define NVIC_MPU_ATTR1_AP_M 0x07000000 // Access Privilege
-#define NVIC_MPU_ATTR1_TEX_M 0x00380000 // Type Extension Mask
-#define NVIC_MPU_ATTR1_SHAREABLE \
- 0x00040000 // Shareable
-#define NVIC_MPU_ATTR1_CACHEABLE \
- 0x00020000 // Cacheable
-#define NVIC_MPU_ATTR1_BUFFRABLE \
- 0x00010000 // Bufferable
-#define NVIC_MPU_ATTR1_SRD_M 0x0000FF00 // Subregion Disable Bits
-#define NVIC_MPU_ATTR1_SIZE_M 0x0000003E // Region Size Mask
-#define NVIC_MPU_ATTR1_ENABLE 0x00000001 // Region Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_BASE2 register.
-//
-//*****************************************************************************
-#define NVIC_MPU_BASE2_ADDR_M 0xFFFFFFE0 // Base Address Mask
-#define NVIC_MPU_BASE2_VALID 0x00000010 // Region Number Valid
-#define NVIC_MPU_BASE2_REGION_M 0x00000007 // Region Number
-#define NVIC_MPU_BASE2_ADDR_S 5
-#define NVIC_MPU_BASE2_REGION_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_ATTR2 register.
-//
-//*****************************************************************************
-#define NVIC_MPU_ATTR2_XN 0x10000000 // Instruction Access Disable
-#define NVIC_MPU_ATTR2_AP_M 0x07000000 // Access Privilege
-#define NVIC_MPU_ATTR2_TEX_M 0x00380000 // Type Extension Mask
-#define NVIC_MPU_ATTR2_SHAREABLE \
- 0x00040000 // Shareable
-#define NVIC_MPU_ATTR2_CACHEABLE \
- 0x00020000 // Cacheable
-#define NVIC_MPU_ATTR2_BUFFRABLE \
- 0x00010000 // Bufferable
-#define NVIC_MPU_ATTR2_SRD_M 0x0000FF00 // Subregion Disable Bits
-#define NVIC_MPU_ATTR2_SIZE_M 0x0000003E // Region Size Mask
-#define NVIC_MPU_ATTR2_ENABLE 0x00000001 // Region Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_BASE3 register.
-//
-//*****************************************************************************
-#define NVIC_MPU_BASE3_ADDR_M 0xFFFFFFE0 // Base Address Mask
-#define NVIC_MPU_BASE3_VALID 0x00000010 // Region Number Valid
-#define NVIC_MPU_BASE3_REGION_M 0x00000007 // Region Number
-#define NVIC_MPU_BASE3_ADDR_S 5
-#define NVIC_MPU_BASE3_REGION_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_MPU_ATTR3 register.
-//
-//*****************************************************************************
-#define NVIC_MPU_ATTR3_XN 0x10000000 // Instruction Access Disable
-#define NVIC_MPU_ATTR3_AP_M 0x07000000 // Access Privilege
-#define NVIC_MPU_ATTR3_TEX_M 0x00380000 // Type Extension Mask
-#define NVIC_MPU_ATTR3_SHAREABLE \
- 0x00040000 // Shareable
-#define NVIC_MPU_ATTR3_CACHEABLE \
- 0x00020000 // Cacheable
-#define NVIC_MPU_ATTR3_BUFFRABLE \
- 0x00010000 // Bufferable
-#define NVIC_MPU_ATTR3_SRD_M 0x0000FF00 // Subregion Disable Bits
-#define NVIC_MPU_ATTR3_SIZE_M 0x0000003E // Region Size Mask
-#define NVIC_MPU_ATTR3_ENABLE 0x00000001 // Region Enable
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DBG_CTRL register.
-//
-//*****************************************************************************
-#define NVIC_DBG_CTRL_DBGKEY_M 0xFFFF0000 // Debug key mask
-#define NVIC_DBG_CTRL_DBGKEY 0xA05F0000 // Debug key
-#define NVIC_DBG_CTRL_S_RESET_ST \
- 0x02000000 // Core has reset since last read
-#define NVIC_DBG_CTRL_S_RETIRE_ST \
- 0x01000000 // Core has executed insruction
- // since last read
-#define NVIC_DBG_CTRL_S_LOCKUP 0x00080000 // Core is locked up
-#define NVIC_DBG_CTRL_S_SLEEP 0x00040000 // Core is sleeping
-#define NVIC_DBG_CTRL_S_HALT 0x00020000 // Core status on halt
-#define NVIC_DBG_CTRL_S_REGRDY 0x00010000 // Register read/write available
-#define NVIC_DBG_CTRL_C_SNAPSTALL \
- 0x00000020 // Breaks a stalled load/store
-#define NVIC_DBG_CTRL_C_MASKINT 0x00000008 // Mask interrupts when stepping
-#define NVIC_DBG_CTRL_C_STEP 0x00000004 // Step the core
-#define NVIC_DBG_CTRL_C_HALT 0x00000002 // Halt the core
-#define NVIC_DBG_CTRL_C_DEBUGEN 0x00000001 // Enable debug
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DBG_XFER register.
-//
-//*****************************************************************************
-#define NVIC_DBG_XFER_REG_WNR 0x00010000 // Write or not read
-#define NVIC_DBG_XFER_REG_SEL_M 0x0000001F // Register
-#define NVIC_DBG_XFER_REG_R0 0x00000000 // Register R0
-#define NVIC_DBG_XFER_REG_R1 0x00000001 // Register R1
-#define NVIC_DBG_XFER_REG_R2 0x00000002 // Register R2
-#define NVIC_DBG_XFER_REG_R3 0x00000003 // Register R3
-#define NVIC_DBG_XFER_REG_R4 0x00000004 // Register R4
-#define NVIC_DBG_XFER_REG_R5 0x00000005 // Register R5
-#define NVIC_DBG_XFER_REG_R6 0x00000006 // Register R6
-#define NVIC_DBG_XFER_REG_R7 0x00000007 // Register R7
-#define NVIC_DBG_XFER_REG_R8 0x00000008 // Register R8
-#define NVIC_DBG_XFER_REG_R9 0x00000009 // Register R9
-#define NVIC_DBG_XFER_REG_R10 0x0000000A // Register R10
-#define NVIC_DBG_XFER_REG_R11 0x0000000B // Register R11
-#define NVIC_DBG_XFER_REG_R12 0x0000000C // Register R12
-#define NVIC_DBG_XFER_REG_R13 0x0000000D // Register R13
-#define NVIC_DBG_XFER_REG_R14 0x0000000E // Register R14
-#define NVIC_DBG_XFER_REG_R15 0x0000000F // Register R15
-#define NVIC_DBG_XFER_REG_FLAGS 0x00000010 // xPSR/Flags register
-#define NVIC_DBG_XFER_REG_MSP 0x00000011 // Main SP
-#define NVIC_DBG_XFER_REG_PSP 0x00000012 // Process SP
-#define NVIC_DBG_XFER_REG_DSP 0x00000013 // Deep SP
-#define NVIC_DBG_XFER_REG_CFBP 0x00000014 // Control/Fault/BasePri/PriMask
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DBG_DATA register.
-//
-//*****************************************************************************
-#define NVIC_DBG_DATA_M 0xFFFFFFFF // Data temporary cache
-#define NVIC_DBG_DATA_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_DBG_INT register.
-//
-//*****************************************************************************
-#define NVIC_DBG_INT_HARDERR 0x00000400 // Debug trap on hard fault
-#define NVIC_DBG_INT_INTERR 0x00000200 // Debug trap on interrupt errors
-#define NVIC_DBG_INT_BUSERR 0x00000100 // Debug trap on bus error
-#define NVIC_DBG_INT_STATERR 0x00000080 // Debug trap on usage fault state
-#define NVIC_DBG_INT_CHKERR 0x00000040 // Debug trap on usage fault check
-#define NVIC_DBG_INT_NOCPERR 0x00000020 // Debug trap on coprocessor error
-#define NVIC_DBG_INT_MMERR 0x00000010 // Debug trap on mem manage fault
-#define NVIC_DBG_INT_RESET 0x00000008 // Core reset status
-#define NVIC_DBG_INT_RSTPENDCLR 0x00000004 // Clear pending core reset
-#define NVIC_DBG_INT_RSTPENDING 0x00000002 // Core reset is pending
-#define NVIC_DBG_INT_RSTVCATCH 0x00000001 // Reset vector catch
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_SW_TRIG register.
-//
-//*****************************************************************************
-#define NVIC_SW_TRIG_INTID_M 0x000000FF // Interrupt ID
-#define NVIC_SW_TRIG_INTID_S 0
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_FPCC register.
-//
-//*****************************************************************************
-#define NVIC_FPCC_ASPEN 0x80000000 // Automatic State Preservation
- // Enable
-#define NVIC_FPCC_LSPEN 0x40000000 // Lazy State Preservation Enable
-#define NVIC_FPCC_MONRDY 0x00000100 // Monitor Ready
-#define NVIC_FPCC_BFRDY 0x00000040 // Bus Fault Ready
-#define NVIC_FPCC_MMRDY 0x00000020 // Memory Management Fault Ready
-#define NVIC_FPCC_HFRDY 0x00000010 // Hard Fault Ready
-#define NVIC_FPCC_THREAD 0x00000008 // Thread Mode
-#define NVIC_FPCC_USER 0x00000002 // User Privilege Level
-#define NVIC_FPCC_LSPACT 0x00000001 // Lazy State Preservation Active
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_FPCA register.
-//
-//*****************************************************************************
-#define NVIC_FPCA_ADDRESS_M 0xFFFFFFF8 // Address
-#define NVIC_FPCA_ADDRESS_S 3
-
-//*****************************************************************************
-//
-// The following are defines for the bit fields in the NVIC_FPDSC register.
-//
-//*****************************************************************************
-#define NVIC_FPDSC_AHP 0x04000000 // AHP Bit Default
-#define NVIC_FPDSC_DN 0x02000000 // DN Bit Default
-#define NVIC_FPDSC_FZ 0x01000000 // FZ Bit Default
-#define NVIC_FPDSC_RMODE_M 0x00C00000 // RMODE Bit Default
-#define NVIC_FPDSC_RMODE_RN 0x00000000 // Round to Nearest (RN) mode
-#define NVIC_FPDSC_RMODE_RP 0x00400000 // Round towards Plus Infinity (RP)
- // mode
-#define NVIC_FPDSC_RMODE_RM 0x00800000 // Round towards Minus Infinity
- // (RM) mode
-#define NVIC_FPDSC_RMODE_RZ 0x00C00000 // Round towards Zero (RZ) mode
-
-#endif // __LM4F232H5QD_H__
diff --git a/bsp/lm4f232/project.uvproj b/bsp/lm4f232/project.uvproj
index e31fcb4326..5b210bbe5b 100644
--- a/bsp/lm4f232/project.uvproj
+++ b/bsp/lm4f232/project.uvproj
@@ -43,7 +43,7 @@
0
1
- .\obj\
+ .\build\
project
1
0
@@ -344,9 +344,9 @@
0
-
+ PART_LM4F232H5QD
- ..\..\include;drivers;.;Libraries;applications;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\finsh
+ .;..\..\components\finsh;..\..\include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;Libraries;applications;drivers
@@ -571,25 +571,25 @@
Kernel
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
device.c
1
..\..\src\device.c
- thread.c
+ idle.c
1
- ..\..\src\thread.c
+ ..\..\src\idle.c
- scheduler.c
+ ipc.c
1
- ..\..\src\scheduler.c
-
-
- src_timer.c
- 1
- ..\..\src\timer.c
+ ..\..\src\ipc.c
irq.c
@@ -602,14 +602,9 @@
..\..\src\kservice.c
- clock.c
+ mem.c
1
- ..\..\src\clock.c
-
-
- object.c
- 1
- ..\..\src\object.c
+ ..\..\src\mem.c
mempool.c
@@ -617,19 +612,24 @@
..\..\src\mempool.c
- ipc.c
+ object.c
1
- ..\..\src\ipc.c
+ ..\..\src\object.c
- idle.c
+ scheduler.c
1
- ..\..\src\idle.c
+ ..\..\src\scheduler.c
- mem.c
+ thread.c
1
- ..\..\src\mem.c
+ ..\..\src\thread.c
+
+
+ src_timer.c
+ 1
+ ..\..\src\timer.c
diff --git a/bsp/lm4f232/rtconfig.py b/bsp/lm4f232/rtconfig.py
index 4076805b93..903a5e9281 100644
--- a/bsp/lm4f232/rtconfig.py
+++ b/bsp/lm4f232/rtconfig.py
@@ -3,6 +3,9 @@ ARCH='arm'
CPU='cortex-m4'
CROSS_TOOL='keil'
+#device options
+PART_TYPE = 'PART_LM4F232H5QD'
+
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
if CROSS_TOOL == 'gcc':
diff --git a/bsp/lm4f232/template.uvproj b/bsp/lm4f232/template.uvproj
index e4824f5943..22d359c599 100644
--- a/bsp/lm4f232/template.uvproj
+++ b/bsp/lm4f232/template.uvproj
@@ -43,14 +43,14 @@
0
1
- .\obj\
+ .\build\
project
1
0
0
1
1
- .\obj\
+ .\build\
1
0
0