osc.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 OSC_H_INCLUDED
37 #define OSC_H_INCLUDED
38 
39 #include "parts.h"
40 #include "conf_clock.h"
41 
42 #if SAM3S
43 # include "sam3s/osc.h"
44 #elif SAM3XA
45 # include "sam3x/osc.h"
46 #elif SAM3U
47 # include "sam3u/osc.h"
48 #elif SAM3N
49 # include "sam3n/osc.h"
50 #elif SAM4S
51 # include "sam4s/osc.h"
52 #elif SAM4E
53 # include "sam4e/osc.h"
54 #elif SAM4C
55 # include "sam4c/osc.h"
56 #elif SAM4CM
57 # include "sam4cm/osc.h"
58 #elif SAM4CP
59 # include "sam4cp/osc.h"
60 #elif SAM4L
61 # include "sam4l/osc.h"
62 #elif SAM4N
63 # include "sam4n/osc.h"
64 #elif SAMG
65 # include "samg/osc.h"
66 #elif SAMV71
67 # include "samv71/osc.h"
68 #elif SAMV70
69 # include "samv70/osc.h"
70 #elif SAME70
71 # include "same70/osc.h"
72 #elif SAMS70
73 # include "sams70/osc.h"
74 #elif (UC3A0 || UC3A1)
75 # include "uc3a0_a1/osc.h"
76 #elif UC3A3
77 # include "uc3a3_a4/osc.h"
78 #elif UC3B
79 # include "uc3b0_b1/osc.h"
80 #elif UC3C
81 # include "uc3c/osc.h"
82 #elif UC3D
83 # include "uc3d/osc.h"
84 #elif UC3L
85 # include "uc3l/osc.h"
86 #elif XMEGA
87 # include "xmega/osc.h"
88 #else
89 # error Unsupported chip type
90 #endif
91 
127 
129 
152 #ifndef __ASSEMBLY__
153 
162 static inline void osc_wait_ready(uint8_t id)
163 {
164  while (!osc_is_ready(id)) {
165  /* Do nothing */
166  }
167 }
168 
169 #endif /* __ASSEMBLY__ */
170 
172 
174 
175 #endif /* OSC_H_INCLUDED */
static void osc_wait_ready(uint8_t id)
Wait until the oscillator identified by id is ready.
Definition: osc.h:162
Atmel part identification macros.
SAME70 clock configuration.
static bool osc_is_ready(uint32_t ul_id)
Definition: same70/osc.h:175
Chip-specific oscillator management functions.


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58