Xmega Application Note


osc.h

Go to the documentation of this file.
00001 
00038 #ifndef OSC_H_INCLUDED
00039 #define OSC_H_INCLUDED
00040 
00041 #include <parts.h>
00042 #include "conf_clock.h"
00043 
00044 #if (UC3A0 || UC3A1)
00045 # include "uc3a0_a1/osc.h"
00046 #elif UC3A3
00047 # include "uc3a3_a4/osc.h"
00048 #elif UC3B
00049 # include "uc3b0_b1/osc.h"
00050 #elif UC3C
00051 # include "uc3c/osc.h"
00052 #elif UC3L
00053 # include "uc3l/osc.h"
00054 #elif XMEGA
00055 # include "xmega/osc.h"
00056 #else
00057 # error Unsupported chip type
00058 #endif
00059 
00095 
00096 
00097 
00120 #ifndef __ASSEMBLY__
00121 
00130 static inline void osc_wait_ready(uint8_t id)
00131 {
00132         while (!osc_is_ready(id)) {
00133                 /* Do nothing */
00134         }
00135 }
00136 
00137 #endif /* __ASSEMBLY__ */
00138 
00140 
00142 
00143 #endif /* OSC_H_INCLUDED */
@DOC_TITLE@
Generated on Fri Oct 22 12:15:25 2010 for AVR1300 Using the Xmega ADC by doxygen 1.6.3