forked from mfulz_github/qmk_firmware
		
	Fix compile errors in the UC3 platform support due to a forward reference and an incorrect function prototype.
This commit is contained in:
		
							parent
							
								
									01d269879f
								
							
						
					
					
						commit
						13951ab043
					
				| @ -127,12 +127,12 @@ | |||||||
| 			 * | 			 * | ||||||
| 			 *  \return Boolean \c true if the external oscillator was successfully started, \c false if invalid parameters specified. | 			 *  \return Boolean \c true if the external oscillator was successfully started, \c false if invalid parameters specified. | ||||||
| 			 */ | 			 */ | ||||||
| 			static inline void AVR32CLK_StartExternalOscillator(const uint8_t Channel, | 			static inline uint8_t AVR32CLK_StartExternalOscillator(const uint8_t Channel, | ||||||
| 			                                                    const uint8_t Type, | 			                                                       const uint8_t Type, | ||||||
| 			                                                    const uint8_t Startup) ATTR_ALWAYS_INLINE; | 			                                                       const uint8_t Startup) ATTR_ALWAYS_INLINE; | ||||||
| 			static inline void AVR32CLK_StartExternalOscillator(const uint8_t Channel, | 			static inline uint8_t AVR32CLK_StartExternalOscillator(const uint8_t Channel, | ||||||
| 			                                                    const uint8_t Type, | 			                                                       const uint8_t Type, | ||||||
| 			                                                    const uint8_t Startup) | 			                                                       const uint8_t Startup) | ||||||
| 			{ | 			{ | ||||||
| 				switch (Channel) | 				switch (Channel) | ||||||
| 				{ | 				{ | ||||||
|  | |||||||
| @ -84,6 +84,9 @@ | |||||||
| 
 | 
 | ||||||
| 	/* Private Interface - For use in library only: */ | 	/* Private Interface - For use in library only: */ | ||||||
| 	#if !defined(__DOXYGEN__) | 	#if !defined(__DOXYGEN__) | ||||||
|  | 		/* Type Defines: */ | ||||||
|  | 			typedef void (*InterruptHandlerPtr_t)(void); | ||||||
|  | 
 | ||||||
| 		/* External Variables: */ | 		/* External Variables: */ | ||||||
| 			extern const void            EVBA_Table; | 			extern const void            EVBA_Table; | ||||||
| 			extern const uint32_t        Autovector_Table[]; | 			extern const uint32_t        Autovector_Table[]; | ||||||
| @ -108,10 +111,6 @@ | |||||||
| 			 */ | 			 */ | ||||||
| 			#define INTC_IRQ_LINE(IRQIndex)   (IRQIndex % 32) | 			#define INTC_IRQ_LINE(IRQIndex)   (IRQIndex % 32) | ||||||
| 
 | 
 | ||||||
| 		/* Type Defines: */ |  | ||||||
| 			/** Type define for an interrupt handler ISR function. */ |  | ||||||
| 			typedef void (*InterruptHandlerPtr_t)(void); |  | ||||||
| 
 |  | ||||||
| 		/* Function Prototypes: */ | 		/* Function Prototypes: */ | ||||||
| 			/** Initializes the interrupt controller, nulling out all interrupt handlers ready for new registration. This
 | 			/** Initializes the interrupt controller, nulling out all interrupt handlers ready for new registration. This
 | ||||||
| 			 *  function should be called once on startup to ensure the interrupt controller is ready for use. | 			 *  function should be called once on startup to ensure the interrupt controller is ready for use. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera