Xmega Application Note


clksys_driver.h

Go to the documentation of this file.
00001 
00062 #ifndef CLKSYS_DRIVER_H
00063 #define CLKSYS_DRIVER_H
00064 
00065 #include "avr_compiler.h"
00066 
00067 
00068 /* Definitions of macros. */
00069 
00081 #define CLKSYS_Enable( _oscSel ) ( OSC.CTRL |= (_oscSel) )
00082 
00094 #define CLKSYS_IsReady( _oscSel ) ( OSC.STATUS & (_oscSel) )
00095 
00101 #define CLKSYS_RTC_ClockSource_Disable() ( CLK.RTCCTRL &= ~CLK_RTCEN_bm )
00102 
00108 #define CLKSYS_AutoCalibration_Disable( _clk ) ( (_clk).CTRL &= ~DFLL_ENABLE_bm )
00109 
00110 
00111 /* Prototyping of function. Detailed information is found in source file. */
00112 void CCPWrite( volatile uint8_t * address, uint8_t value );
00113 void CLKSYS_XOSC_Config( OSC_FRQRANGE_t freqRange,
00114                          bool lowPower32kHz,
00115                          OSC_XOSCSEL_t xoscModeSelection );
00116 void CLKSYS_PLL_Config( OSC_PLLSRC_t clockSource, uint8_t factor );
00117 uint8_t CLKSYS_Disable( uint8_t oscSel );
00118 void CLKSYS_Prescalers_Config( CLK_PSADIV_t PSAfactor,
00119                                CLK_PSBCDIV_t PSBCfactor );
00120 uint8_t CLKSYS_Main_ClockSource_Select( CLK_SCLKSEL_t clockSource );
00121 void CLKSYS_RTC_ClockSource_Enable( CLK_RTCSRC_t clockSource );
00122 void CLKSYS_AutoCalibration_Enable( uint8_t clkSource, bool extReference );
00123 void CLKSYS_XOSC_FailureDetection_Enable( void );
00124 void CLKSYS_Configuration_Lock( void );
00125 
00126 
00127 #endif
@DOC_TITLE@
Generated on Tue Jan 19 18:41:58 2010 for AVR1320: True 400kHz operation for TWI slave by doxygen 1.5.8