Xmega Application Note


pll.h

Go to the documentation of this file.
00001 
00038 #ifndef CLK_PLL_H_INCLUDED
00039 #define CLK_PLL_H_INCLUDED
00040 
00041 #include <parts.h>
00042 #include "conf_clock.h"
00043 
00044 #if (UC3A0 || UC3A1)
00045 # include "uc3a0_a1/pll.h"
00046 #elif UC3A3
00047 # include "uc3a3_a4/pll.h"
00048 #elif UC3B
00049 # include "uc3b0_b1/pll.h"
00050 #elif UC3C
00051 # include "uc3c/pll.h"
00052 #elif XMEGA
00053 # include "xmega/pll.h"
00054 #else
00055 # error Unsupported chip type
00056 #endif
00057 
00107 
00108 
00109 
00131 
00137 
00138 
00139 
00218 
00220 
00221 
00261 static inline int pll_wait_for_lock(unsigned int pll_id)
00262 {
00263         Assert(pll_id < NR_PLLS);
00264 
00265         while (!pll_is_locked(pll_id)) {
00266                 /* Do nothing */
00267         }
00268 
00269         return 0;
00270 }
00271 
00273 
00274 
00275 #endif /* CLK_PLL_H_INCLUDED */
@DOC_TITLE@
Generated on Fri Oct 22 12:15:25 2010 for AVR1300 Using the Xmega ADC by doxygen 1.6.3