Fix compile errors in the UC3 platform support due to a forward reference and an...
authorDean Camera <dean@fourwalledcubicle.com>
Thu, 14 Jul 2011 00:26:11 +0000 (00:26 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Thu, 14 Jul 2011 00:26:11 +0000 (00:26 +0000)
LUFA/Platform/UC3/ClockManagement.h
LUFA/Platform/UC3/InterruptManagement.h

index deac64f..60a3d18 100644 (file)
                         *\r
                         *  \return Boolean \c true if the external oscillator was successfully started, \c false if invalid parameters specified.\r
                         */\r
-                       static inline void AVR32CLK_StartExternalOscillator(const uint8_t Channel,\r
-                                                                           const uint8_t Type,\r
-                                                                           const uint8_t Startup) ATTR_ALWAYS_INLINE;\r
-                       static inline void AVR32CLK_StartExternalOscillator(const uint8_t Channel,\r
-                                                                           const uint8_t Type,\r
-                                                                           const uint8_t Startup)\r
+                       static inline uint8_t AVR32CLK_StartExternalOscillator(const uint8_t Channel,\r
+                                                                              const uint8_t Type,\r
+                                                                              const uint8_t Startup) ATTR_ALWAYS_INLINE;\r
+                       static inline uint8_t AVR32CLK_StartExternalOscillator(const uint8_t Channel,\r
+                                                                              const uint8_t Type,\r
+                                                                              const uint8_t Startup)\r
                        {\r
                                switch (Channel)\r
                                {\r
index bcceab7..bc27f22 100644 (file)
@@ -84,6 +84,9 @@
 \r
        /* Private Interface - For use in library only: */\r
        #if !defined(__DOXYGEN__)\r
+               /* Type Defines: */\r
+                       typedef void (*InterruptHandlerPtr_t)(void);\r
+\r
                /* External Variables: */\r
                        extern const void            EVBA_Table;\r
                        extern const uint32_t        Autovector_Table[];\r
                         */\r
                        #define INTC_IRQ_LINE(IRQIndex)   (IRQIndex % 32)\r
 \r
-               /* Type Defines: */\r
-                       /** Type define for an interrupt handler ISR function. */\r
-                       typedef void (*InterruptHandlerPtr_t)(void);\r
-\r
                /* Function Prototypes: */\r
                        /** Initializes the interrupt controller, nulling out all interrupt handlers ready for new registration. This\r
                         *  function should be called once on startup to ensure the interrupt controller is ready for use.\r