pll.h
Go to the documentation of this file.
1 
33 /*
34  * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
35  */
36 #ifndef CLK_PLL_H_INCLUDED
37 #define CLK_PLL_H_INCLUDED
38 
39 #include "parts.h"
40 #include "conf_clock.h"
41 
42 #if SAM3S
43 # include "sam3s/pll.h"
44 #elif SAM3XA
45 # include "sam3x/pll.h"
46 #elif SAM3U
47 # include "sam3u/pll.h"
48 #elif SAM3N
49 # include "sam3n/pll.h"
50 #elif SAM4S
51 # include "sam4s/pll.h"
52 #elif SAM4E
53 # include "sam4e/pll.h"
54 #elif SAM4C
55 # include "sam4c/pll.h"
56 #elif SAM4CM
57 # include "sam4cm/pll.h"
58 #elif SAM4CP
59 # include "sam4cp/pll.h"
60 #elif SAM4L
61 # include "sam4l/pll.h"
62 #elif SAM4N
63 # include "sam4n/pll.h"
64 #elif SAMG
65 # include "samg/pll.h"
66 #elif SAMV71
67 # include "samv71/pll.h"
68 #elif SAMV70
69 # include "samv70/pll.h"
70 #elif SAME70
71 # include "same70/pll.h"
72 #elif SAMS70
73 # include "sams70/pll.h"
74 #elif (UC3A0 || UC3A1)
75 # include "uc3a0_a1/pll.h"
76 #elif UC3A3
77 # include "uc3a3_a4/pll.h"
78 #elif UC3B
79 # include "uc3b0_b1/pll.h"
80 #elif UC3C
81 # include "uc3c/pll.h"
82 #elif UC3D
83 # include "uc3d/pll.h"
84 #elif (UC3L0128 || UC3L0256 || UC3L3_L4)
85 # include "uc3l/pll.h"
86 #elif XMEGA
87 # include "xmega/pll.h"
88 #else
89 # error Unsupported chip type
90 #endif
91 
149 
151 
173 
179 
181 
260 
262 
263 
317 static inline int pll_wait_for_lock(unsigned int pll_id)
318 {
319  Assert(pll_id < NR_PLLS);
320 
321  while (!pll_is_locked(pll_id)) {
322  /* Do nothing */
323  }
324 
325  return 0;
326 }
327 
329 
331 #endif /* CLK_PLL_H_INCLUDED */
Chip-specific PLL definitions.
Atmel part identification macros.
static int pll_wait_for_lock(unsigned int pll_id)
Wait for PLL pll_id to become locked.
Definition: pll.h:317
SAME70 clock configuration.
#define Assert(expr)
This macro is used to test fatal errors.
Definition: compiler.h:196
#define NR_PLLS
Number of on-chip PLLs.
Definition: same70/pll.h:61
static uint32_t pll_is_locked(uint32_t ul_pll_id)
Definition: same70/pll.h:186


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04