Fix names of XMEGA ClockManagement driver functions.
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 18 Jul 2011 09:24:50 +0000 (09:24 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 18 Jul 2011 09:24:50 +0000 (09:24 +0000)
Remove V2 branch for now, to concentrate on a V1 implementation of the USB XMEGAs before large-scale API alterations.

LUFA/Platform/XMEGA/ClockManagement.h

index 62e9284..dd8d60c 100644 (file)
                         *
                         *  \return Boolean \c true if the external oscillator was successfully started, \c false if invalid parameters specified.
                         */
-                       static inline bool AVR32CLK_StartExternalOscillator(const uint8_t FreqRange,
+                       static inline bool XMEGACLK_StartExternalOscillator(const uint8_t FreqRange,
                                                                            const uint8_t Startup) ATTR_ALWAYS_INLINE;
-                       static inline bool AVR32CLK_StartExternalOscillator(const uint8_t FreqRange,
+                       static inline bool XMEGACLK_StartExternalOscillator(const uint8_t FreqRange,
                                                                            const uint8_t Startup)
                        {
                                OSC.XOSCCTRL  = (FreqRange | ((Startup == EXOSC_START_32KCLK) ? OSC_X32KLPM_bm : 0) | Startup);
                        }
 
                        /** Stops the external oscillator of the XMEGA microcontroller. */
-                       static inline void AVR32CLK_StopExternalOscillator(void) ATTR_ALWAYS_INLINE;
-                       static inline void AVR32CLK_StopExternalOscillator(void)
+                       static inline void XMEGACLK_StopExternalOscillator(void) ATTR_ALWAYS_INLINE;
+                       static inline void XMEGACLK_StopExternalOscillator(void)
                        {
                                OSC.CTRL     &= ~OSC_XOSCEN_bm;
                        }
                         *
                         *  \return Boolean \c true if the internal oscillator was successfully started, \c false if invalid parameters specified.
                         */
-                       static inline uint8_t AVR32CLK_StartInternalOscillator(const uint8_t Source) ATTR_ALWAYS_INLINE;
-                       static inline uint8_t AVR32CLK_StartInternalOscillator(const uint8_t Source)
+                       static inline uint8_t XMEGACLK_StartInternalOscillator(const uint8_t Source) ATTR_ALWAYS_INLINE;
+                       static inline uint8_t XMEGACLK_StartInternalOscillator(const uint8_t Source)
                        {
                                switch (Source)
                                {
                         *
                         *  \return Boolean \c true if the internal oscillator was successfully stopped, \c false if invalid parameters specified.
                         */                     
-                       static inline bool AVR32CLK_StopInternalOscillator(const uint8_t Source) ATTR_ALWAYS_INLINE;
-                       static inline bool AVR32CLK_StopInternalOscillator(const uint8_t Source)
+                       static inline bool XMEGACLK_StopInternalOscillator(const uint8_t Source) ATTR_ALWAYS_INLINE;
+                       static inline bool XMEGACLK_StopInternalOscillator(const uint8_t Source)
                        {
                                switch (Source)
                                {
                         *
                         *  \return Boolean \c true if the PLL was successfully started, \c false if invalid parameters specified.
                         */
-                       static inline bool AVR32CLK_StartPLL(const uint8_t Source,
+                       static inline bool XMEGACLK_StartPLL(const uint8_t Source,
                                                             const uint32_t SourceFreq,
                                                             const uint32_t Frequency) ATTR_ALWAYS_INLINE;
-                       static inline bool AVR32CLK_StartPLL(const uint8_t Source,
+                       static inline bool XMEGACLK_StartPLL(const uint8_t Source,
                                                             const uint32_t SourceFreq,
                                                             const uint32_t Frequency)
                        {
                        }
 
                        /** Stops the PLL of the XMEGA microcontroller. */
-                       static inline void AVR32CLK_StopPLL(void) ATTR_ALWAYS_INLINE;
-                       static inline void AVR32CLK_StopPLL(void)
+                       static inline void XMEGACLK_StopPLL(void) ATTR_ALWAYS_INLINE;
+                       static inline void XMEGACLK_StopPLL(void)
                        {
                                OSC.CTRL &= ~OSC_PLLEN_bm;
                        }