fsl_clock.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 - 2020, NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef _FSL_CLOCK_H_
9 #define _FSL_CLOCK_H_
10 
11 #include "fsl_common.h"
12 
18 /*******************************************************************************
19  * Configurations
20  ******************************************************************************/
21 
32 #if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL))
33 #define FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL 0
34 #endif
35 
36 /*******************************************************************************
37  * Definitions
38  ******************************************************************************/
39 
43 #define FSL_CLOCK_DRIVER_VERSION (MAKE_VERSION(2, 3, 2))
44 
45 /* Definition for delay API in clock driver, users can redefine it to the real application. */
46 #ifndef SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY
47 #define SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY (600000000UL)
48 #endif
49 
50 /* analog pll definition */
51 #define CCM_ANALOG_PLL_BYPASS_SHIFT (16U)
52 #define CCM_ANALOG_PLL_BYPASS_CLK_SRC_MASK (0xC000U)
53 #define CCM_ANALOG_PLL_BYPASS_CLK_SRC_SHIFT (14U)
54 
60 #define CCSR_OFFSET 0x0C
61 #define CBCDR_OFFSET 0x14
62 #define CBCMR_OFFSET 0x18
63 #define CSCMR1_OFFSET 0x1C
64 #define CSCMR2_OFFSET 0x20
65 #define CSCDR1_OFFSET 0x24
66 #define CDCDR_OFFSET 0x30
67 #define CSCDR2_OFFSET 0x38
68 #define CSCDR3_OFFSET 0x3C
69 #define CACRR_OFFSET 0x10
70 #define CS1CDR_OFFSET 0x28
71 #define CS2CDR_OFFSET 0x2C
72 
76 #define PLL_ARM_OFFSET 0x00
77 #define PLL_SYS_OFFSET 0x30
78 #define PLL_USB1_OFFSET 0x10
79 #define PLL_AUDIO_OFFSET 0x70
80 #define PLL_VIDEO_OFFSET 0xA0
81 #define PLL_ENET_OFFSET 0xE0
82 #define PLL_USB2_OFFSET 0x20
83 
84 #define CCM_TUPLE(reg, shift, mask, busyShift) \
85  (int)(((reg)&0xFFU) | ((shift) << 8U) | ((((mask) >> (shift)) & 0x1FFFU) << 13U) | ((busyShift) << 26U))
86 #define CCM_TUPLE_REG(base, tuple) (*((volatile uint32_t *)(((uint32_t)(base)) + ((uint32_t)(tuple)&0xFFU))))
87 #define CCM_TUPLE_SHIFT(tuple) ((((uint32_t)tuple) >> 8U) & 0x1FU)
88 #define CCM_TUPLE_MASK(tuple) \
89  ((uint32_t)((((uint32_t)(tuple) >> 13U) & 0x1FFFU) << (((((uint32_t)tuple) >> 8U) & 0x1FU))))
90 #define CCM_TUPLE_BUSY_SHIFT(tuple) ((((uint32_t)tuple) >> 26U) & 0x3FU)
91 
92 #define CCM_NO_BUSY_WAIT (0x20U)
93 
97 #define CCM_ANALOG_TUPLE(reg, shift) ((((reg)&0xFFFU) << 16U) | (shift))
98 #define CCM_ANALOG_TUPLE_SHIFT(tuple) (((uint32_t)tuple) & 0x1FU)
99 #define CCM_ANALOG_TUPLE_REG_OFF(base, tuple, off) \
100  (*((volatile uint32_t *)((uint32_t)(base) + (((uint32_t)(tuple) >> 16U) & 0xFFFU) + (off))))
101 #define CCM_ANALOG_TUPLE_REG(base, tuple) CCM_ANALOG_TUPLE_REG_OFF(base, tuple, 0U)
102 
103 /* Definition for ERRATA 50235 check */
104 #if (defined(FSL_FEATURE_CCM_HAS_ERRATA_50235) && FSL_FEATURE_CCM_HAS_ERRATA_50235)
105 #define CAN_CLOCK_CHECK_NO_AFFECTS \
106  ((CCM_CSCMR2_CAN_CLK_SEL(2U) != (CCM->CSCMR2 & CCM_CSCMR2_CAN_CLK_SEL_MASK)) || \
107  (CCM_CCGR5_CG12(0) != (CCM->CCGR5 & CCM_CCGR5_CG12_MASK)))
108 #endif /* FSL_FEATURE_CCM_HAS_ERRATA_50235 */
109 
113 #define CLKPN_FREQ 0U
114 
125 extern volatile uint32_t g_xtalFreq;
126 
132 extern volatile uint32_t g_rtcXtalFreq;
133 
134 /* For compatible with other platforms */
135 #define CLOCK_SetXtal0Freq CLOCK_SetXtalFreq
136 #define CLOCK_SetXtal32Freq CLOCK_SetRtcXtalFreq
137 
139 #define ADC_CLOCKS \
140  { \
141  kCLOCK_IpInvalid, kCLOCK_Adc1, kCLOCK_Adc2 \
142  }
143 
145 #define AOI_CLOCKS \
146  { \
147  kCLOCK_IpInvalid, kCLOCK_Aoi1, kCLOCK_Aoi2 \
148  }
149 
151 #define BEE_CLOCKS \
152  { \
153  kCLOCK_Bee \
154  }
155 
157 #define CMP_CLOCKS \
158  { \
159  kCLOCK_IpInvalid, kCLOCK_Acmp1, kCLOCK_Acmp2, kCLOCK_Acmp3, kCLOCK_Acmp4 \
160  }
161 
163 #define CSI_CLOCKS \
164  { \
165  kCLOCK_Csi \
166  }
167 
169 #define DCDC_CLOCKS \
170  { \
171  kCLOCK_Dcdc \
172  }
173 
175 #define DCP_CLOCKS \
176  { \
177  kCLOCK_Dcp \
178  }
179 
181 #define DMAMUX_CLOCKS \
182  { \
183  kCLOCK_Dma \
184  }
185 
187 #define EDMA_CLOCKS \
188  { \
189  kCLOCK_Dma \
190  }
191 
193 #define ENC_CLOCKS \
194  { \
195  kCLOCK_IpInvalid, kCLOCK_Enc1, kCLOCK_Enc2, kCLOCK_Enc3, kCLOCK_Enc4 \
196  }
197 
199 #define ENET_CLOCKS \
200  { \
201  kCLOCK_Enet \
202  }
203 
205 #define EWM_CLOCKS \
206  { \
207  kCLOCK_Ewm0 \
208  }
209 
211 #define FLEXCAN_CLOCKS \
212  { \
213  kCLOCK_IpInvalid, kCLOCK_Can1, kCLOCK_Can2 \
214  }
215 
217 #define FLEXCAN_PERIPH_CLOCKS \
218  { \
219  kCLOCK_IpInvalid, kCLOCK_Can1S, kCLOCK_Can2S \
220  }
221 
223 #define FLEXIO_CLOCKS \
224  { \
225  kCLOCK_IpInvalid, kCLOCK_Flexio1, kCLOCK_Flexio2 \
226  }
227 
229 #define FLEXRAM_CLOCKS \
230  { \
231  kCLOCK_FlexRam \
232  }
233 
235 #define FLEXSPI_CLOCKS \
236  { \
237  kCLOCK_FlexSpi \
238  }
239 
241 #define FLEXSPI_EXSC_CLOCKS \
242  { \
243  kCLOCK_FlexSpiExsc \
244  }
245 
247 #define GPIO_CLOCKS \
248  { \
249  kCLOCK_IpInvalid, kCLOCK_Gpio1, kCLOCK_Gpio2, kCLOCK_Gpio3, kCLOCK_Gpio4, kCLOCK_Gpio5 \
250  }
251 
253 #define GPT_CLOCKS \
254  { \
255  kCLOCK_IpInvalid, kCLOCK_Gpt1, kCLOCK_Gpt2 \
256  }
257 
259 #define KPP_CLOCKS \
260  { \
261  kCLOCK_Kpp \
262  }
263 
265 #define LCDIF_CLOCKS \
266  { \
267  kCLOCK_Lcd \
268  }
269 
271 #define LCDIF_PERIPH_CLOCKS \
272  { \
273  kCLOCK_LcdPixel \
274  }
275 
277 #define LPI2C_CLOCKS \
278  { \
279  kCLOCK_IpInvalid, kCLOCK_Lpi2c1, kCLOCK_Lpi2c2, kCLOCK_Lpi2c3, kCLOCK_Lpi2c4 \
280  }
281 
283 #define LPSPI_CLOCKS \
284  { \
285  kCLOCK_IpInvalid, kCLOCK_Lpspi1, kCLOCK_Lpspi2, kCLOCK_Lpspi3, kCLOCK_Lpspi4 \
286  }
287 
289 #define LPUART_CLOCKS \
290  { \
291  kCLOCK_IpInvalid, kCLOCK_Lpuart1, kCLOCK_Lpuart2, kCLOCK_Lpuart3, kCLOCK_Lpuart4, kCLOCK_Lpuart5, \
292  kCLOCK_Lpuart6, kCLOCK_Lpuart7, kCLOCK_Lpuart8 \
293  }
294 
296 #define MQS_CLOCKS \
297  { \
298  kCLOCK_Mqs \
299  }
300 
302 #define OCRAM_EXSC_CLOCKS \
303  { \
304  kCLOCK_OcramExsc \
305  }
306 
308 #define PIT_CLOCKS \
309  { \
310  kCLOCK_Pit \
311  }
312 
314 #define PWM_CLOCKS \
315  { \
316  {kCLOCK_IpInvalid, kCLOCK_IpInvalid, kCLOCK_IpInvalid, kCLOCK_IpInvalid}, \
317  {kCLOCK_Pwm1, kCLOCK_Pwm1, kCLOCK_Pwm1, kCLOCK_Pwm1}, \
318  {kCLOCK_Pwm2, kCLOCK_Pwm2, kCLOCK_Pwm2, kCLOCK_Pwm2}, \
319  {kCLOCK_Pwm3, kCLOCK_Pwm3, kCLOCK_Pwm3, kCLOCK_Pwm3}, \
320  { \
321  kCLOCK_Pwm4, kCLOCK_Pwm4, kCLOCK_Pwm4, kCLOCK_Pwm4 \
322  } \
323  }
324 
326 #define PXP_CLOCKS \
327  { \
328  kCLOCK_Pxp \
329  }
330 
332 #define RTWDOG_CLOCKS \
333  { \
334  kCLOCK_Wdog3 \
335  }
336 
338 #define SAI_CLOCKS \
339  { \
340  kCLOCK_IpInvalid, kCLOCK_Sai1, kCLOCK_Sai2, kCLOCK_Sai3 \
341  }
342 
344 #define SEMC_CLOCKS \
345  { \
346  kCLOCK_Semc \
347  }
348 
350 #define SEMC_EXSC_CLOCKS \
351  { \
352  kCLOCK_SemcExsc \
353  }
354 
356 #define TMR_CLOCKS \
357  { \
358  kCLOCK_IpInvalid, kCLOCK_Timer1, kCLOCK_Timer2, kCLOCK_Timer3, kCLOCK_Timer4 \
359  }
360 
362 #define TRNG_CLOCKS \
363  { \
364  kCLOCK_Trng \
365  }
366 
368 #define TSC_CLOCKS \
369  { \
370  kCLOCK_Tsc \
371  }
372 
374 #define WDOG_CLOCKS \
375  { \
376  kCLOCK_IpInvalid, kCLOCK_Wdog1, kCLOCK_Wdog2 \
377  }
378 
380 #define USDHC_CLOCKS \
381  { \
382  kCLOCK_IpInvalid, kCLOCK_Usdhc1, kCLOCK_Usdhc2 \
383  }
384 
386 #define SPDIF_CLOCKS \
387  { \
388  kCLOCK_Spdif \
389  }
390 
392 #define XBARA_CLOCKS \
393  { \
394  kCLOCK_Xbar1 \
395  }
396 
398 #define XBARB_CLOCKS \
399  { \
400  kCLOCK_IpInvalid, kCLOCK_IpInvalid, kCLOCK_Xbar2, kCLOCK_Xbar3 \
401  }
402 
404 typedef enum _clock_name
405 {
406  kCLOCK_CpuClk = 0x0U,
407  kCLOCK_AhbClk = 0x1U,
408  kCLOCK_SemcClk = 0x2U,
409  kCLOCK_IpgClk = 0x3U,
410  kCLOCK_PerClk = 0x4U,
412  kCLOCK_OscClk = 0x5U,
413  kCLOCK_RtcClk = 0x6U,
436 } clock_name_t;
437 
438 #define kCLOCK_CoreSysClk kCLOCK_CpuClk
439 #define CLOCK_GetCoreSysClkFreq CLOCK_GetCpuClkFreq
444 typedef enum _clock_ip_name
445 {
447 
448  /* CCM CCGR0 */
466  /* CCM CCGR1 */
484  /* CCM CCGR2 */
502  /* CCM CCGR3 */
520  /* CCM CCGR4 */
537  /* CCM CCGR5 */
555  /* CCM CCGR6 */
574 
576 typedef enum _clock_osc
577 {
580 } clock_osc_t;
581 
583 typedef enum _clock_gate_value
584 {
589 
591 typedef enum _clock_mode_t
592 {
596 } clock_mode_t;
597 
606 typedef enum _clock_mux
607 {
708 } clock_mux_t;
709 
718 typedef enum _clock_div
719 {
838 } clock_div_t;
839 
841 typedef enum _clock_usb_src
842 {
844  kCLOCK_UsbSrcUnused = (int)0xFFFFFFFFU,
847 
849 typedef enum _clock_usb_phy_src
850 {
853 
856 {
859 };
860 
862 typedef struct _clock_arm_pll_config
863 {
864  uint32_t loopDivider;
865  uint8_t src;
867 
869 typedef struct _clock_usb_pll_config
870 {
871  uint8_t loopDivider;
874  uint8_t src;
877 
879 typedef struct _clock_sys_pll_config
880 {
881  uint8_t loopDivider;
884  uint32_t numerator;
885  uint32_t denominator;
886  uint8_t src;
887  uint16_t ss_stop;
888  uint8_t ss_enable;
889  uint16_t ss_step;
892 
895 {
896  uint8_t loopDivider;
897  uint8_t postDivider;
898  uint32_t numerator;
899  uint32_t denominator;
900  uint8_t src;
902 
905 {
906  uint8_t loopDivider;
907  uint8_t postDivider;
908  uint32_t numerator;
909  uint32_t denominator;
910  uint8_t src;
913 
916 {
920  uint8_t loopDivider;
925  uint8_t src;
928 
930 typedef enum _clock_pll
931 {
944 } clock_pll_t;
945 
947 typedef enum _clock_pfd
948 {
949  kCLOCK_Pfd0 = 0U,
950  kCLOCK_Pfd1 = 1U,
951  kCLOCK_Pfd2 = 2U,
952  kCLOCK_Pfd3 = 3U,
953 } clock_pfd_t;
954 
955 /*******************************************************************************
956  * API
957  ******************************************************************************/
958 
959 #if defined(__cplusplus)
960 extern "C" {
961 #endif /* __cplusplus */
962 
969 static inline void CLOCK_SetMux(clock_mux_t mux, uint32_t value)
970 {
971  uint32_t busyShift;
972 
973  busyShift = (uint32_t)CCM_TUPLE_BUSY_SHIFT(mux);
974  CCM_TUPLE_REG(CCM, mux) = (CCM_TUPLE_REG(CCM, mux) & (~CCM_TUPLE_MASK(mux))) |
975  (((uint32_t)((value) << CCM_TUPLE_SHIFT(mux))) & CCM_TUPLE_MASK(mux));
976 
977  assert(busyShift <= CCM_NO_BUSY_WAIT);
978 
979  /* Clock switch need Handshake? */
980  if (CCM_NO_BUSY_WAIT != busyShift)
981  {
982  /* Wait until CCM internal handshake finish. */
983  while ((CCM->CDHIPR & ((1UL << busyShift))) != 0UL)
984  {
985  }
986  }
987 }
988 
995 static inline uint32_t CLOCK_GetMux(clock_mux_t mux)
996 {
997  return (((uint32_t)(CCM_TUPLE_REG(CCM, mux) & CCM_TUPLE_MASK(mux))) >> CCM_TUPLE_SHIFT(mux));
998 }
999 
1006 static inline void CLOCK_SetDiv(clock_div_t divider, uint32_t value)
1007 {
1008  uint32_t busyShift;
1009 
1010  busyShift = CCM_TUPLE_BUSY_SHIFT(divider);
1011  CCM_TUPLE_REG(CCM, divider) = (CCM_TUPLE_REG(CCM, divider) & (~CCM_TUPLE_MASK(divider))) |
1012  (((uint32_t)((value) << CCM_TUPLE_SHIFT(divider))) & CCM_TUPLE_MASK(divider));
1013 
1014  assert(busyShift <= CCM_NO_BUSY_WAIT);
1015 
1016  /* Clock switch need Handshake? */
1017  if (CCM_NO_BUSY_WAIT != busyShift)
1018  {
1019  /* Wait until CCM internal handshake finish. */
1020  while ((CCM->CDHIPR & ((uint32_t)(1UL << busyShift))) != 0UL)
1021  {
1022  }
1023  }
1024 }
1025 
1031 static inline uint32_t CLOCK_GetDiv(clock_div_t divider)
1032 {
1033  return ((uint32_t)(CCM_TUPLE_REG(CCM, divider) & CCM_TUPLE_MASK(divider)) >> CCM_TUPLE_SHIFT(divider));
1034 }
1035 
1043 {
1044  uint32_t index = ((uint32_t)name) >> 8U;
1045  uint32_t shift = ((uint32_t)name) & 0x1FU;
1046  volatile uint32_t *reg;
1047 
1048  assert(index <= 6UL);
1049 
1050  reg = (volatile uint32_t *)(&(((volatile uint32_t *)&CCM->CCGR0)[index]));
1051  *reg = ((*reg) & ~((uint32_t)(3UL << shift))) | (((uint32_t)value) << shift);
1052 }
1053 
1060 {
1062 }
1063 
1070 {
1072 }
1073 
1079 static inline void CLOCK_SetMode(clock_mode_t mode)
1080 {
1081  CCM->CLPCR = (CCM->CLPCR & ~CCM_CLPCR_LPM_MASK) | CCM_CLPCR_LPM((uint32_t)mode);
1082 }
1083 
1092 static inline uint32_t CLOCK_GetOscFreq(void)
1093 {
1094  return ((XTALOSC24M->LOWPWR_CTRL & XTALOSC24M_LOWPWR_CTRL_OSC_SEL_MASK) != 0UL) ? 24000000UL : g_xtalFreq;
1095 }
1096 
1102 uint32_t CLOCK_GetAhbFreq(void);
1103 
1109 uint32_t CLOCK_GetSemcFreq(void);
1110 
1116 uint32_t CLOCK_GetIpgFreq(void);
1117 
1123 uint32_t CLOCK_GetPerClkFreq(void);
1124 
1134 uint32_t CLOCK_GetFreq(clock_name_t name);
1135 
1141 static inline uint32_t CLOCK_GetCpuClkFreq(void)
1142 {
1143  return CLOCK_GetFreq(kCLOCK_CpuClk);
1144 }
1145 
1165 void CLOCK_InitExternalClk(bool bypassXtalOsc);
1166 
1175 void CLOCK_DeinitExternalClk(void);
1176 
1184 void CLOCK_SwitchOsc(clock_osc_t osc);
1185 
1191 static inline uint32_t CLOCK_GetRtcFreq(void)
1192 {
1193  return 32768U;
1194 }
1195 
1201 static inline void CLOCK_SetXtalFreq(uint32_t freq)
1202 {
1203  g_xtalFreq = freq;
1204 }
1205 
1211 static inline void CLOCK_SetRtcXtalFreq(uint32_t freq)
1212 {
1213  g_rtcXtalFreq = freq;
1214 }
1215 
1219 void CLOCK_InitRcOsc24M(void);
1220 
1224 void CLOCK_DeinitRcOsc24M(void);
1225 /* @} */
1226 
1238 bool CLOCK_EnableUsbhs0Clock(clock_usb_src_t src, uint32_t freq);
1239 
1251 bool CLOCK_EnableUsbhs1Clock(clock_usb_src_t src, uint32_t freq);
1252 
1253 /* @} */
1254 
1268 static inline void CLOCK_SetPllBypass(CCM_ANALOG_Type *base, clock_pll_t pll, bool bypass)
1269 {
1270  if (bypass)
1271  {
1272  CCM_ANALOG_TUPLE_REG_OFF(base, pll, 4U) = 1UL << CCM_ANALOG_PLL_BYPASS_SHIFT;
1273  }
1274  else
1275  {
1276  CCM_ANALOG_TUPLE_REG_OFF(base, pll, 8U) = 1UL << CCM_ANALOG_PLL_BYPASS_SHIFT;
1277  }
1278 }
1279 
1289 static inline bool CLOCK_IsPllBypassed(CCM_ANALOG_Type *base, clock_pll_t pll)
1290 {
1291  return (bool)(CCM_ANALOG_TUPLE_REG(base, pll) & (1UL << CCM_ANALOG_PLL_BYPASS_SHIFT));
1292 }
1293 
1303 static inline bool CLOCK_IsPllEnabled(CCM_ANALOG_Type *base, clock_pll_t pll)
1304 {
1305  return ((CCM_ANALOG_TUPLE_REG(base, pll) & (1UL << CCM_ANALOG_TUPLE_SHIFT(pll))) != 0U);
1306 }
1307 
1316 static inline void CLOCK_SetPllBypassRefClkSrc(CCM_ANALOG_Type *base, clock_pll_t pll, uint32_t src)
1317 {
1319 }
1320 
1329 static inline uint32_t CLOCK_GetPllBypassRefClk(CCM_ANALOG_Type *base, clock_pll_t pll)
1330 {
1331  return (((CCM_ANALOG_TUPLE_REG(base, pll) & CCM_ANALOG_PLL_BYPASS_CLK_SRC_MASK) >>
1333  CLOCK_GetOscFreq() :
1334  CLKPN_FREQ;
1335 }
1336 
1345 
1349 void CLOCK_DeinitArmPll(void);
1350 
1359 
1363 void CLOCK_DeinitSysPll(void);
1364 
1373 
1377 void CLOCK_DeinitUsb1Pll(void);
1378 
1387 
1391 void CLOCK_DeinitUsb2Pll(void);
1392 
1401 
1405 void CLOCK_DeinitAudioPll(void);
1406 
1415 
1419 void CLOCK_DeinitVideoPll(void);
1428 
1434 void CLOCK_DeinitEnetPll(void);
1435 
1444 uint32_t CLOCK_GetPllFreq(clock_pll_t pll);
1445 
1456 void CLOCK_InitSysPfd(clock_pfd_t pfd, uint8_t pfdFrac);
1457 
1466 
1477 void CLOCK_InitUsb1Pfd(clock_pfd_t pfd, uint8_t pfdFrac);
1478 
1487 
1496 uint32_t CLOCK_GetSysPfdFreq(clock_pfd_t pfd);
1497 
1506 uint32_t CLOCK_GetUsb1PfdFreq(clock_pfd_t pfd);
1507 
1517 bool CLOCK_EnableUsbhs0PhyPllClock(clock_usb_phy_src_t src, uint32_t freq);
1518 
1524 
1534 bool CLOCK_EnableUsbhs1PhyPllClock(clock_usb_phy_src_t src, uint32_t freq);
1535 
1541 
1542 /* @} */
1543 
1544 #if defined(__cplusplus)
1545 }
1546 #endif /* __cplusplus */
1547 
1550 #endif /* _FSL_CLOCK_H_ */
CCM_ANALOG_PLL_BYPASS_SHIFT
#define CCM_ANALOG_PLL_BYPASS_SHIFT
Definition: fsl_clock.h:51
CCM_ANALOG_PLL_BYPASS_CLK_SRC_MASK
#define CCM_ANALOG_PLL_BYPASS_CLK_SRC_MASK
Definition: fsl_clock.h:52
kCLOCK_Usdhc2Div
@ kCLOCK_Usdhc2Div
Definition: fsl_clock.h:763
kCLOCK_AudioPllClk
@ kCLOCK_AudioPllClk
Definition: fsl_clock.h:434
kCLOCK_Sai2
@ kCLOCK_Sai2
Definition: fsl_clock.h:548
kCLOCK_Flexio2PreDiv
@ kCLOCK_Flexio2PreDiv
Definition: fsl_clock.h:788
CCM_CCGR2_CG8_SHIFT
#define CCM_CCGR2_CG8_SHIFT
Definition: MIMXRT1052.h:5760
fsl_common.h
CCM_CCGR2_CG9_SHIFT
#define CCM_CCGR2_CG9_SHIFT
Definition: MIMXRT1052.h:5763
PLL_ENET_OFFSET
#define PLL_ENET_OFFSET
Definition: fsl_clock.h:81
_clock_div
_clock_div
DIV control names for clock div setting.
Definition: fsl_clock.h:718
g_xtalFreq
volatile uint32_t g_xtalFreq
External XTAL (24M OSC/SYSOSC) clock frequency.
Definition: fsl_clock.c:59
CCM_CCGR0_CG6_SHIFT
#define CCM_CCGR0_CG6_SHIFT
Definition: MIMXRT1052.h:5650
CCM_CSCDR2_LPI2C_CLK_SEL_MASK
#define CCM_CSCDR2_LPI2C_CLK_SEL_MASK
Definition: MIMXRT1052.h:5158
_clock_video_pll_config
PLL configuration for AUDIO and VIDEO.
Definition: fsl_clock.h:904
kCLOCK_SpdifMux
@ kCLOCK_SpdifMux
Definition: fsl_clock.h:686
kCLOCK_Usdhc2
@ kCLOCK_Usdhc2
Definition: fsl_clock.h:558
CCM_CDCDR_SPDIF0_CLK_PRED_SHIFT
#define CCM_CDCDR_SPDIF0_CLK_PRED_SHIFT
Definition: MIMXRT1052.h:5118
kCLOCK_SemcClk
@ kCLOCK_SemcClk
Definition: fsl_clock.h:408
kCLOCK_PllEnet
@ kCLOCK_PllEnet
Definition: fsl_clock.h:938
CCM_CCGR4_CG6_SHIFT
#define CCM_CCGR4_CG6_SHIFT
Definition: MIMXRT1052.h:5858
CCM_CS1CDR_SAI3_CLK_PODF_MASK
#define CCM_CS1CDR_SAI3_CLK_PODF_MASK
Definition: MIMXRT1052.h:4873
_clock_name
_clock_name
Clock name used to get clock frequency.
Definition: fsl_clock.h:404
_clock_sys_pll_config::src
uint8_t src
Definition: fsl_clock.h:886
CLOCK_GetAhbFreq
uint32_t CLOCK_GetAhbFreq(void)
Gets the AHB clock frequency.
Definition: fsl_clock.c:227
CCM_CS1CDR_SAI1_CLK_PODF_MASK
#define CCM_CS1CDR_SAI1_CLK_PODF_MASK
Definition: MIMXRT1052.h:4777
CCM_CCGR0_CG11_SHIFT
#define CCM_CCGR0_CG11_SHIFT
Definition: MIMXRT1052.h:5665
CCM_CS1CDR_SAI3_CLK_PRED_SHIFT
#define CCM_CS1CDR_SAI3_CLK_PRED_SHIFT
Definition: MIMXRT1052.h:4944
kCLOCK_Ocram
@ kCLOCK_Ocram
Definition: fsl_clock.h:517
kCLOCK_Ocotp
@ kCLOCK_Ocotp
Definition: fsl_clock.h:491
CCM_CCGR4_CG3_SHIFT
#define CCM_CCGR4_CG3_SHIFT
Definition: MIMXRT1052.h:5849
kCLOCK_PeriphMux
@ kCLOCK_PeriphMux
Definition: fsl_clock.h:613
CCM_CCGR1_CG15_SHIFT
#define CCM_CCGR1_CG15_SHIFT
Definition: MIMXRT1052.h:5729
clock_pfd_t
enum _clock_pfd clock_pfd_t
PLL PFD name.
CCM_CCGR6_CG5_SHIFT
#define CCM_CCGR6_CG5_SHIFT
Definition: MIMXRT1052.h:5959
CCM_CCGR1_CG8_SHIFT
#define CCM_CCGR1_CG8_SHIFT
Definition: MIMXRT1052.h:5708
CCM_CBCMR_LCDIF_PODF_MASK
#define CCM_CBCMR_LCDIF_PODF_MASK
Definition: MIMXRT1052.h:4398
CCM_CCGR4_CG13_SHIFT
#define CCM_CCGR4_CG13_SHIFT
Definition: MIMXRT1052.h:5879
kCLOCK_Wdog2
@ kCLOCK_Wdog2
Definition: fsl_clock.h:543
CCM_CLPCR_LPM
#define CCM_CLPCR_LPM(x)
Definition: MIMXRT1052.h:5318
kCLOCK_SemcExsc
@ kCLOCK_SemcExsc
Definition: fsl_clock.h:476
clock_gate_value_t
enum _clock_gate_value clock_gate_value_t
Clock gate value.
CCM_TUPLE_REG
#define CCM_TUPLE_REG(base, tuple)
Definition: fsl_clock.h:86
kCLOCK_PeriphClk2Mux
@ kCLOCK_PeriphClk2Mux
Definition: fsl_clock.h:634
kCLOCK_Usdhc1Div
@ kCLOCK_Usdhc1Div
Definition: fsl_clock.h:767
kCLOCK_Lpuart4
@ kCLOCK_Lpuart4
Definition: fsl_clock.h:479
CCM_CCGR5_CG12_SHIFT
#define CCM_CCGR5_CG12_SHIFT
Definition: MIMXRT1052.h:5928
CACRR_OFFSET
#define CACRR_OFFSET
Definition: fsl_clock.h:69
kCLOCK_Lpuart5
@ kCLOCK_Lpuart5
Definition: fsl_clock.h:504
CCM_CBCMR_TRACE_CLK_SEL_SHIFT
#define CCM_CBCMR_TRACE_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4381
kCLOCK_ModeRun
@ kCLOCK_ModeRun
Definition: fsl_clock.h:593
CCM_ANALOG_PLL_ENET_ENET_25M_REF_EN_SHIFT
#define CCM_ANALOG_PLL_ENET_ENET_25M_REF_EN_SHIFT
Definition: MIMXRT1052.h:7049
kCLOCK_Timer2
@ kCLOCK_Timer2
Definition: fsl_clock.h:570
CCM_CCGR1_CG5_SHIFT
#define CCM_CCGR1_CG5_SHIFT
Definition: MIMXRT1052.h:5699
CLOCK_DeinitAudioPll
void CLOCK_DeinitAudioPll(void)
De-initialize the Audio PLL.
Definition: fsl_clock.c:711
CCM_CS2CDR_SAI2_CLK_PODF_MASK
#define CCM_CS2CDR_SAI2_CLK_PODF_MASK
Definition: MIMXRT1052.h:4973
CLOCK_GetPllBypassRefClk
static uint32_t CLOCK_GetPllBypassRefClk(CCM_ANALOG_Type *base, clock_pll_t pll)
Get PLL bypass clock value, it is PLL reference clock actually. If CLOCK1_P,CLOCK1_N is choose as the...
Definition: fsl_clock.h:1329
kCLOCK_Rom
@ kCLOCK_Rom
Definition: fsl_clock.h:538
clock_osc_t
enum _clock_osc clock_osc_t
OSC 24M sorce select.
kCLOCK_Acmp4
@ kCLOCK_Acmp4
Definition: fsl_clock.h:516
clock_audio_pll_config_t
struct _clock_audio_pll_config clock_audio_pll_config_t
PLL configuration for AUDIO and VIDEO.
CCM_CCSR_PLL3_SW_CLK_SEL_MASK
#define CCM_CCSR_PLL3_SW_CLK_SEL_MASK
Definition: MIMXRT1052.h:4261
_clock_audio_pll_config::denominator
uint32_t denominator
Definition: fsl_clock.h:899
CCM_CBCDR_AHB_PODF_SHIFT
#define CCM_CBCDR_AHB_PODF_SHIFT
Definition: MIMXRT1052.h:4313
CCM_CS2CDR_SAI2_CLK_PRED_MASK
#define CCM_CS2CDR_SAI2_CLK_PRED_MASK
Definition: MIMXRT1052.h:5043
CLOCK_DisableUsbhs0PhyPllClock
void CLOCK_DisableUsbhs0PhyPllClock(void)
Disable USB HS PHY PLL clock.
Definition: fsl_clock.c:482
PLL_ARM_OFFSET
#define PLL_ARM_OFFSET
CCM Analog registers offset.
Definition: fsl_clock.h:76
CCM_CDCDR_SPDIF0_CLK_PODF_SHIFT
#define CCM_CDCDR_SPDIF0_CLK_PODF_SHIFT
Definition: MIMXRT1052.h:5105
CCM_CDHIPR_PERIPH_CLK_SEL_BUSY_SHIFT
#define CCM_CDHIPR_PERIPH_CLK_SEL_BUSY_SHIFT
Definition: MIMXRT1052.h:5291
CCM_CCGR1_CG9_SHIFT
#define CCM_CCGR1_CG9_SHIFT
Definition: MIMXRT1052.h:5711
CCM_CDCDR_FLEXIO1_CLK_PRED_SHIFT
#define CCM_CDCDR_FLEXIO1_CLK_PRED_SHIFT
Definition: MIMXRT1052.h:5083
kCLOCK_Aips_tz2
@ kCLOCK_Aips_tz2
Definition: fsl_clock.h:450
CLOCK_SetPllBypass
static void CLOCK_SetPllBypass(CCM_ANALOG_Type *base, clock_pll_t pll, bool bypass)
PLL bypass setting.
Definition: fsl_clock.h:1268
CLOCK_DeinitUsb1Pfd
void CLOCK_DeinitUsb1Pfd(clock_pfd_t pfd)
De-initialize the USB1 PLL PFD.
Definition: fsl_clock.c:1136
CLOCK_GetPerClkFreq
uint32_t CLOCK_GetPerClkFreq(void)
Gets the PER clock frequency.
Definition: fsl_clock.c:281
kCLOCK_PllVideo
@ kCLOCK_PllVideo
Definition: fsl_clock.h:936
CLOCK_GetRtcFreq
static uint32_t CLOCK_GetRtcFreq(void)
Gets the RTC clock frequency.
Definition: fsl_clock.h:1191
CCM_CCGR3_CG7_SHIFT
#define CCM_CCGR3_CG7_SHIFT
Definition: MIMXRT1052.h:5809
CCM_CCGR3_CG5_SHIFT
#define CCM_CCGR3_CG5_SHIFT
Definition: MIMXRT1052.h:5803
CCM_CCGR5_CG7_SHIFT
#define CCM_CCGR5_CG7_SHIFT
Definition: MIMXRT1052.h:5913
kCLOCK_Spdif0Div
@ kCLOCK_Spdif0Div
Definition: fsl_clock.h:814
kCLOCK_UartMux
@ kCLOCK_UartMux
Definition: fsl_clock.h:681
kCLOCK_IomuxcSnvs
@ kCLOCK_IomuxcSnvs
Definition: fsl_clock.h:487
PLL_USB1_OFFSET
#define PLL_USB1_OFFSET
Definition: fsl_clock.h:78
kCLOCK_PllClkSrc24M
@ kCLOCK_PllClkSrc24M
Definition: fsl_clock.h:857
CCM_CCGR3_CG15_SHIFT
#define CCM_CCGR3_CG15_SHIFT
Definition: MIMXRT1052.h:5833
CCM_CS1CDR_FLEXIO2_CLK_PRED_MASK
#define CCM_CS1CDR_FLEXIO2_CLK_PRED_MASK
Definition: MIMXRT1052.h:4860
CCM_ANALOG_PLL_ARM_ENABLE_SHIFT
#define CCM_ANALOG_PLL_ARM_ENABLE_SHIFT
Definition: MIMXRT1052.h:6156
kCLOCK_Aoi2
@ kCLOCK_Aoi2
Definition: fsl_clock.h:474
CCM_CS1CDR_SAI1_CLK_PRED_SHIFT
#define CCM_CS1CDR_SAI1_CLK_PRED_SHIFT
Definition: MIMXRT1052.h:4848
CCM_CBCDR_PERIPH_CLK_SEL_MASK
#define CCM_CBCDR_PERIPH_CLK_SEL_MASK
Definition: MIMXRT1052.h:4338
kCLOCK_Pwm2
@ kCLOCK_Pwm2
Definition: fsl_clock.h:529
kCLOCK_Ewm0
@ kCLOCK_Ewm0
Definition: fsl_clock.h:510
kCLOCK_Lpspi1
@ kCLOCK_Lpspi1
Definition: fsl_clock.h:467
CCM_CCGR6_CG11_SHIFT
#define CCM_CCGR6_CG11_SHIFT
Definition: MIMXRT1052.h:5977
CCM_CSCMR2_FLEXIO2_CLK_SEL_MASK
#define CCM_CSCMR2_FLEXIO2_CLK_SEL_MASK
Definition: MIMXRT1052.h:4649
kCLOCK_Flexio1Div
@ kCLOCK_Flexio1Div
Definition: fsl_clock.h:822
CCM_CCGR4_CG15_SHIFT
#define CCM_CCGR4_CG15_SHIFT
Definition: MIMXRT1052.h:5885
kCLOCK_Pll3SwMux
@ kCLOCK_Pll3SwMux
Definition: fsl_clock.h:608
CCM_CDHIPR_SEMC_PODF_BUSY_SHIFT
#define CCM_CDHIPR_SEMC_PODF_BUSY_SHIFT
Definition: MIMXRT1052.h:5267
CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK
#define CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK
Definition: MIMXRT1052.h:4389
kCLOCK_ModeStop
@ kCLOCK_ModeStop
Definition: fsl_clock.h:595
kCLOCK_LcdPixel
@ kCLOCK_LcdPixel
Definition: fsl_clock.h:508
CCM_CSCMR1_PERCLK_PODF_MASK
#define CCM_CSCMR1_PERCLK_PODF_MASK
Definition: MIMXRT1052.h:4428
kCLOCK_CanDiv
@ kCLOCK_CanDiv
Definition: fsl_clock.h:754
CCM_CCGR1_CG3_SHIFT
#define CCM_CCGR1_CG3_SHIFT
Definition: MIMXRT1052.h:5693
CLOCK_GetUsb1PfdFreq
uint32_t CLOCK_GetUsb1PfdFreq(clock_pfd_t pfd)
Get current USB1 PLL PFD output frequency.
Definition: fsl_clock.c:1188
_clock_usb_phy_src
_clock_usb_phy_src
Source of the USB HS PHY.
Definition: fsl_clock.h:849
CCM_CBCDR_SEMC_PODF_MASK
#define CCM_CBCDR_SEMC_PODF_MASK
Definition: MIMXRT1052.h:4325
CCM_CCGR6_CG2_SHIFT
#define CCM_CCGR6_CG2_SHIFT
Definition: MIMXRT1052.h:5950
kCLOCK_Lpspi2
@ kCLOCK_Lpspi2
Definition: fsl_clock.h:468
kCLOCK_Sai3Div
@ kCLOCK_Sai3Div
Definition: fsl_clock.h:784
kCLOCK_Lpuart1
@ kCLOCK_Lpuart1
Definition: fsl_clock.h:550
CCM_CBCDR_SEMC_CLK_SEL_MASK
#define CCM_CBCDR_SEMC_CLK_SEL_MASK
Definition: MIMXRT1052.h:4289
kCLOCK_FlexspiDiv
@ kCLOCK_FlexspiDiv
Definition: fsl_clock.h:745
CCM_CBCDR_PERIPH_CLK2_PODF_MASK
#define CCM_CBCDR_PERIPH_CLK2_PODF_MASK
Definition: MIMXRT1052.h:4345
CCM_CCGR5_CG4_SHIFT
#define CCM_CCGR5_CG4_SHIFT
Definition: MIMXRT1052.h:5904
CCM_CCGR5_CG8_SHIFT
#define CCM_CCGR5_CG8_SHIFT
Definition: MIMXRT1052.h:5916
kCLOCK_TraceMux
@ kCLOCK_TraceMux
Definition: fsl_clock.h:630
kCLOCK_Flexio2Div
@ kCLOCK_Flexio2Div
Definition: fsl_clock.h:776
CCM_CCGR6_CG4_SHIFT
#define CCM_CCGR6_CG4_SHIFT
Definition: MIMXRT1052.h:5956
CCM_CSCDR3_CSI_CLK_SEL_SHIFT
#define CCM_CSCDR3_CSI_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:5241
CCM_CBCDR_IPG_PODF_SHIFT
#define CCM_CBCDR_IPG_PODF_SHIFT
Definition: MIMXRT1052.h:4304
CCM_CCGR2_CG3_SHIFT
#define CCM_CCGR2_CG3_SHIFT
Definition: MIMXRT1052.h:5745
CCM_CCGR3_CG2_SHIFT
#define CCM_CCGR3_CG2_SHIFT
Definition: MIMXRT1052.h:5794
kCLOCK_Enc2
@ kCLOCK_Enc2
Definition: fsl_clock.h:533
CLOCK_EnableUsbhs1Clock
bool CLOCK_EnableUsbhs1Clock(clock_usb_src_t src, uint32_t freq)
Enable USB HS clock.
Definition: fsl_clock.c:433
CCM_CCGR3_CG13_SHIFT
#define CCM_CCGR3_CG13_SHIFT
Definition: MIMXRT1052.h:5827
CLOCK_InitVideoPll
void CLOCK_InitVideoPll(const clock_video_pll_config_t *config)
Initialize the video PLL.
Definition: fsl_clock.c:723
kCLOCK_Xbar1
@ kCLOCK_Xbar1
Definition: fsl_clock.h:496
kCLOCK_Pwm4
@ kCLOCK_Pwm4
Definition: fsl_clock.h:531
kCLOCK_Tsc
@ kCLOCK_Tsc
Definition: fsl_clock.h:525
CCM_CLPCR_LPM_MASK
#define CCM_CLPCR_LPM_MASK
Definition: MIMXRT1052.h:5310
kCLOCK_Acmp3
@ kCLOCK_Acmp3
Definition: fsl_clock.h:515
CCM_CSCMR1_USDHC1_CLK_SEL_MASK
#define CCM_CSCMR1_USDHC1_CLK_SEL_MASK
Definition: MIMXRT1052.h:4531
kCLOCK_Timer1
@ kCLOCK_Timer1
Definition: fsl_clock.h:569
CCM_NO_BUSY_WAIT
#define CCM_NO_BUSY_WAIT
Definition: fsl_clock.h:92
clock_div_t
enum _clock_div clock_div_t
DIV control names for clock div setting.
CCM_CCGR1_CG11_SHIFT
#define CCM_CCGR1_CG11_SHIFT
Definition: MIMXRT1052.h:5717
kCLOCK_Flexio1
@ kCLOCK_Flexio1
Definition: fsl_clock.h:539
CCM_CCGR4_CG2_SHIFT
#define CCM_CCGR4_CG2_SHIFT
Definition: MIMXRT1052.h:5846
CLOCK_GetPllFreq
uint32_t CLOCK_GetPllFreq(clock_pll_t pll)
Get current PLL output frequency.
Definition: fsl_clock.c:857
_clock_enet_pll_config::src
uint8_t src
Definition: fsl_clock.h:925
clock_arm_pll_config_t
struct _clock_arm_pll_config clock_arm_pll_config_t
PLL configuration for ARM.
CCSR_OFFSET
#define CCSR_OFFSET
CCM registers offset.
Definition: fsl_clock.h:60
kCLOCK_Lpuart7
@ kCLOCK_Lpuart7
Definition: fsl_clock.h:551
CLOCK_InitUsb2Pll
void CLOCK_InitUsb2Pll(const clock_usb_pll_config_t *config)
Initialize the USB2 PLL.
Definition: fsl_clock.c:603
CLOCK_DeinitSysPfd
void CLOCK_DeinitSysPfd(clock_pfd_t pfd)
De-initialize the System PLL PFD.
Definition: fsl_clock.c:1098
CCM_CCGR2_CG2_SHIFT
#define CCM_CCGR2_CG2_SHIFT
Definition: MIMXRT1052.h:5742
CCM_CSCDR1_TRACE_PODF_MASK
#define CCM_CSCDR1_TRACE_PODF_MASK
Definition: MIMXRT1052.h:4764
CCM_CCGR6_CG15_SHIFT
#define CCM_CCGR6_CG15_SHIFT
Definition: MIMXRT1052.h:5989
CCM_TUPLE_BUSY_SHIFT
#define CCM_TUPLE_BUSY_SHIFT(tuple)
Definition: fsl_clock.h:90
CDCDR_OFFSET
#define CDCDR_OFFSET
Definition: fsl_clock.h:66
CCM_CBCDR_IPG_PODF_MASK
#define CCM_CBCDR_IPG_PODF_MASK
Definition: MIMXRT1052.h:4303
CCM_CCGR6_CG9_SHIFT
#define CCM_CCGR6_CG9_SHIFT
Definition: MIMXRT1052.h:5971
CCM_CSCDR3_CSI_PODF_MASK
#define CCM_CSCDR3_CSI_PODF_MASK
Definition: MIMXRT1052.h:5249
CCM_CCGR5_CG2_SHIFT
#define CCM_CCGR5_CG2_SHIFT
Definition: MIMXRT1052.h:5898
_clock_usb_pll_config::src
uint8_t src
Definition: fsl_clock.h:874
CCM_CSCMR1_SAI1_CLK_SEL_MASK
#define CCM_CSCMR1_SAI1_CLK_SEL_MASK
Definition: MIMXRT1052.h:4504
CLOCK_DeinitSysPll
void CLOCK_DeinitSysPll(void)
De-initialize the System PLL.
Definition: fsl_clock.c:558
_clock_sys_pll_config::ss_enable
uint8_t ss_enable
Definition: fsl_clock.h:888
CCM_CSCMR1_SAI3_CLK_SEL_MASK
#define CCM_CSCMR1_SAI3_CLK_SEL_MASK
Definition: MIMXRT1052.h:4522
CCM_CS2CDR_SAI2_CLK_PRED_SHIFT
#define CCM_CS2CDR_SAI2_CLK_PRED_SHIFT
Definition: MIMXRT1052.h:5044
kCLOCK_Xbar2
@ kCLOCK_Xbar2
Definition: fsl_clock.h:497
CCM_CCGR4_CG5_SHIFT
#define CCM_CCGR4_CG5_SHIFT
Definition: MIMXRT1052.h:5855
CCM_CCGR1_CG14_SHIFT
#define CCM_CCGR1_CG14_SHIFT
Definition: MIMXRT1052.h:5726
kCLOCK_Usb480M
@ kCLOCK_Usb480M
Definition: fsl_clock.h:843
kCLOCK_CanMux
@ kCLOCK_CanMux
Definition: fsl_clock.h:676
CCM_CBCMR_PERIPH_CLK2_SEL_MASK
#define CCM_CBCMR_PERIPH_CLK2_SEL_MASK
Definition: MIMXRT1052.h:4371
kCLOCK_Acmp2
@ kCLOCK_Acmp2
Definition: fsl_clock.h:514
kCLOCK_Aoi1
@ kCLOCK_Aoi1
Definition: fsl_clock.h:507
CCM_CCGR3_CG11_SHIFT
#define CCM_CCGR3_CG11_SHIFT
Definition: MIMXRT1052.h:5821
kCLOCK_Pwm1
@ kCLOCK_Pwm1
Definition: fsl_clock.h:528
kCLOCK_Ipmux2
@ kCLOCK_Ipmux2
Definition: fsl_clock.h:494
kCLOCK_Ipmux4
@ kCLOCK_Ipmux4
Definition: fsl_clock.h:560
clock_usb_phy_src_t
enum _clock_usb_phy_src clock_usb_phy_src_t
Source of the USB HS PHY.
CCM_CSCDR2_LCDIF_PRED_SHIFT
#define CCM_CSCDR2_LCDIF_PRED_SHIFT
Definition: MIMXRT1052.h:5135
CCM_TUPLE_MASK
#define CCM_TUPLE_MASK(tuple)
Definition: fsl_clock.h:88
kCLOCK_Pfd3
@ kCLOCK_Pfd3
Definition: fsl_clock.h:952
CCM_CCGR4_CG12_SHIFT
#define CCM_CCGR4_CG12_SHIFT
Definition: MIMXRT1052.h:5876
kCLOCK_Sai1Div
@ kCLOCK_Sai1Div
Definition: fsl_clock.h:796
CCM_CDCDR_FLEXIO1_CLK_SEL_SHIFT
#define CCM_CDCDR_FLEXIO1_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:5061
CCM_CSCMR1_PERCLK_CLK_SEL_MASK
#define CCM_CSCMR1_PERCLK_CLK_SEL_MASK
Definition: MIMXRT1052.h:4497
kCLOCK_IomuxcGpr
@ kCLOCK_IomuxcGpr
Definition: fsl_clock.h:522
CLOCK_InitAudioPll
void CLOCK_InitAudioPll(const clock_audio_pll_config_t *config)
Initializes the Audio PLL.
Definition: fsl_clock.c:636
kCLOCK_OcramExsc
@ kCLOCK_OcramExsc
Definition: fsl_clock.h:485
kCLOCK_UsbOh3
@ kCLOCK_UsbOh3
Definition: fsl_clock.h:556
CCM_CCGR4_CG9_SHIFT
#define CCM_CCGR4_CG9_SHIFT
Definition: MIMXRT1052.h:5867
kCLOCK_Lpspi4
@ kCLOCK_Lpspi4
Definition: fsl_clock.h:470
_clock_audio_pll_config::numerator
uint32_t numerator
Definition: fsl_clock.h:898
CCM_CSCDR1_UART_CLK_SEL_MASK
#define CCM_CSCDR1_UART_CLK_SEL_MASK
Definition: MIMXRT1052.h:4731
CCM_CCGR6_CG8_SHIFT
#define CCM_CCGR6_CG8_SHIFT
Definition: MIMXRT1052.h:5968
CCM_ANALOG_TUPLE_REG_OFF
#define CCM_ANALOG_TUPLE_REG_OFF(base, tuple, off)
Definition: fsl_clock.h:99
kCLOCK_Usb1PllPfd2Clk
@ kCLOCK_Usb1PllPfd2Clk
Definition: fsl_clock.h:420
CLOCK_DisableUsbhs1PhyPllClock
void CLOCK_DisableUsbhs1PhyPllClock(void)
Disable USB HS PHY PLL clock.
Definition: fsl_clock.c:1246
CCM_CSCDR1_UART_CLK_PODF_SHIFT
#define CCM_CSCDR1_UART_CLK_PODF_SHIFT
Definition: MIMXRT1052.h:4663
kCLOCK_Lpuart6
@ kCLOCK_Lpuart6
Definition: fsl_clock.h:506
kCLOCK_SnvsHp
@ kCLOCK_SnvsHp
Definition: fsl_clock.h:552
_clock_video_pll_config::loopDivider
uint8_t loopDivider
Definition: fsl_clock.h:906
CCM_CDCDR_SPDIF0_CLK_SEL_SHIFT
#define CCM_CDCDR_SPDIF0_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:5096
kCLOCK_Spdif0PreDiv
@ kCLOCK_Spdif0PreDiv
Definition: fsl_clock.h:810
CCM_CSCDR2_LPI2C_CLK_SEL_SHIFT
#define CCM_CSCDR2_LPI2C_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:5159
CCM_CSCMR1_SAI1_CLK_SEL_SHIFT
#define CCM_CSCMR1_SAI1_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4505
kCLOCK_Aips_tz1
@ kCLOCK_Aips_tz1
Definition: fsl_clock.h:449
kCLOCK_VideoPllClk
@ kCLOCK_VideoPllClk
Definition: fsl_clock.h:435
CCM_CSCDR3_CSI_PODF_SHIFT
#define CCM_CSCDR3_CSI_PODF_SHIFT
Definition: MIMXRT1052.h:5250
_clock_sys_pll_config::ss_step
uint16_t ss_step
Definition: fsl_clock.h:889
CCM_CCGR6_CG14_SHIFT
#define CCM_CCGR6_CG14_SHIFT
Definition: MIMXRT1052.h:5986
_clock_sys_pll_config::loopDivider
uint8_t loopDivider
Definition: fsl_clock.h:881
CCM_CCGR6_CG1_SHIFT
#define CCM_CCGR6_CG1_SHIFT
Definition: MIMXRT1052.h:5947
CLOCK_InitUsb1Pfd
void CLOCK_InitUsb1Pfd(clock_pfd_t pfd, uint8_t pfdFrac)
Initialize the USB1 PLL PFD.
Definition: fsl_clock.c:1113
kCLOCK_Lpi2c3
@ kCLOCK_Lpi2c3
Definition: fsl_clock.h:490
kCLOCK_Can1
@ kCLOCK_Can1
Definition: fsl_clock.h:456
CCM_CCGR0_CG1_SHIFT
#define CCM_CCGR0_CG1_SHIFT
Definition: MIMXRT1052.h:5635
kCLOCK_PllSrcClkPN
@ kCLOCK_PllSrcClkPN
Definition: fsl_clock.h:858
kCLOCK_Enc3
@ kCLOCK_Enc3
Definition: fsl_clock.h:534
CCM_CCGR1_CG10_SHIFT
#define CCM_CCGR1_CG10_SHIFT
Definition: MIMXRT1052.h:5714
PLL_SYS_OFFSET
#define PLL_SYS_OFFSET
Definition: fsl_clock.h:77
kCLOCK_XtalOsc
@ kCLOCK_XtalOsc
Definition: fsl_clock.h:579
kCLOCK_SimM7
@ kCLOCK_SimM7
Definition: fsl_clock.h:524
CCM_CCGR4_CG14_SHIFT
#define CCM_CCGR4_CG14_SHIFT
Definition: MIMXRT1052.h:5882
CCM_CBCDR_AHB_PODF_MASK
#define CCM_CBCDR_AHB_PODF_MASK
Definition: MIMXRT1052.h:4312
CCM_CCGR1_CG1_SHIFT
#define CCM_CCGR1_CG1_SHIFT
Definition: MIMXRT1052.h:5687
CCM_CCGR3_CG0_SHIFT
#define CCM_CCGR3_CG0_SHIFT
Definition: MIMXRT1052.h:5788
kCLOCK_SimPer
@ kCLOCK_SimPer
Definition: fsl_clock.h:566
_clock_arm_pll_config
PLL configuration for ARM.
Definition: fsl_clock.h:862
_clock_pll
_clock_pll
PLL name.
Definition: fsl_clock.h:930
CCM_CSCDR2_LCDIF_PRE_CLK_SEL_SHIFT
#define CCM_CSCDR2_LCDIF_PRE_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:5148
kCLOCK_TraceDiv
@ kCLOCK_TraceDiv
Definition: fsl_clock.h:759
CLOCK_DeinitUsb2Pll
void CLOCK_DeinitUsb2Pll(void)
Deinitialize the USB2 PLL.
Definition: fsl_clock.c:624
CLOCK_GetCpuClkFreq
static uint32_t CLOCK_GetCpuClkFreq(void)
Get the CCM CPU/core/system frequency.
Definition: fsl_clock.h:1141
kCLOCK_SysPllClk
@ kCLOCK_SysPllClk
Definition: fsl_clock.h:425
CCM_CCGR3_CG9_SHIFT
#define CCM_CCGR3_CG9_SHIFT
Definition: MIMXRT1052.h:5815
CCM_ANALOG_PLL_BYPASS_CLK_SRC_SHIFT
#define CCM_ANALOG_PLL_BYPASS_CLK_SRC_SHIFT
Definition: fsl_clock.h:53
CCM_CCGR1_CG13_SHIFT
#define CCM_CCGR1_CG13_SHIFT
Definition: MIMXRT1052.h:5723
CCM_CCGR5_CG15_SHIFT
#define CCM_CCGR5_CG15_SHIFT
Definition: MIMXRT1052.h:5937
python.setup.name
name
Definition: porcupine/binding/python/setup.py:69
CCM_CCGR3_CG10_SHIFT
#define CCM_CCGR3_CG10_SHIFT
Definition: MIMXRT1052.h:5818
_clock_sys_pll_config::numerator
uint32_t numerator
Definition: fsl_clock.h:884
CCM_CDCDR_SPDIF0_CLK_SEL_MASK
#define CCM_CDCDR_SPDIF0_CLK_SEL_MASK
Definition: MIMXRT1052.h:5095
kCLOCK_Flexio1PreDiv
@ kCLOCK_Flexio1PreDiv
Definition: fsl_clock.h:818
CCM_ANALOG_PLL_USB2_ENABLE_SHIFT
#define CCM_ANALOG_PLL_USB2_ENABLE_SHIFT
Definition: MIMXRT1052.h:6415
CCM_CBCDR_SEMC_ALT_CLK_SEL_MASK
#define CCM_CBCDR_SEMC_ALT_CLK_SEL_MASK
Definition: MIMXRT1052.h:4296
CCM_CBCMR_LPSPI_CLK_SEL_SHIFT
#define CCM_CBCMR_LPSPI_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4363
kCLOCK_SimM
@ kCLOCK_SimM
Definition: fsl_clock.h:526
kCLOCK_Can1S
@ kCLOCK_Can1S
Definition: fsl_clock.h:457
CCM_CBCMR_LCDIF_PODF_SHIFT
#define CCM_CBCMR_LCDIF_PODF_SHIFT
Definition: MIMXRT1052.h:4399
kCLOCK_PllUsb2
@ kCLOCK_PllUsb2
Definition: fsl_clock.h:942
kCLOCK_Wdog1
@ kCLOCK_Wdog1
Definition: fsl_clock.h:511
CBCDR_OFFSET
#define CBCDR_OFFSET
Definition: fsl_clock.h:61
CCM_ANALOG_TUPLE
#define CCM_ANALOG_TUPLE(reg, shift)
CCM ANALOG tuple macros to map corresponding registers and bit fields.
Definition: fsl_clock.h:97
kCLOCK_Gpio3
@ kCLOCK_Gpio3
Definition: fsl_clock.h:498
kCLOCK_Sai3PreDiv
@ kCLOCK_Sai3PreDiv
Definition: fsl_clock.h:780
CCM_CCGR3_CG14_SHIFT
#define CCM_CCGR3_CG14_SHIFT
Definition: MIMXRT1052.h:5830
kCLOCK_PerClk
@ kCLOCK_PerClk
Definition: fsl_clock.h:410
CCM_CCGR0_CG9_SHIFT
#define CCM_CCGR0_CG9_SHIFT
Definition: MIMXRT1052.h:5659
CCM_CCGR5_CG9_SHIFT
#define CCM_CCGR5_CG9_SHIFT
Definition: MIMXRT1052.h:5919
kCLOCK_Ipmux3
@ kCLOCK_Ipmux3
Definition: fsl_clock.h:495
CCM_CDHIPR_AHB_PODF_BUSY_SHIFT
#define CCM_CDHIPR_AHB_PODF_BUSY_SHIFT
Definition: MIMXRT1052.h:5275
kCLOCK_SemcAltMux
@ kCLOCK_SemcAltMux
Definition: fsl_clock.h:617
CCM_CSCMR1_USDHC2_CLK_SEL_MASK
#define CCM_CSCMR1_USDHC2_CLK_SEL_MASK
Definition: MIMXRT1052.h:4538
CCM_CCGR0_CG15_SHIFT
#define CCM_CCGR0_CG15_SHIFT
Definition: MIMXRT1052.h:5677
kCLOCK_Pfd0
@ kCLOCK_Pfd0
Definition: fsl_clock.h:949
kCLOCK_FlexspiMux
@ kCLOCK_FlexspiMux
Definition: fsl_clock.h:643
CCM_CSCMR1_SAI2_CLK_SEL_MASK
#define CCM_CSCMR1_SAI2_CLK_SEL_MASK
Definition: MIMXRT1052.h:4513
kCLOCK_IpgDiv
@ kCLOCK_IpgDiv
Definition: fsl_clock.h:737
CCM_CS1CDR_SAI3_CLK_PRED_MASK
#define CCM_CS1CDR_SAI3_CLK_PRED_MASK
Definition: MIMXRT1052.h:4943
kCLOCK_PeriphClk2Div
@ kCLOCK_PeriphClk2Div
Definition: fsl_clock.h:725
_clock_osc
_clock_osc
OSC 24M sorce select.
Definition: fsl_clock.h:576
CCM_CSCMR1_PERCLK_CLK_SEL_SHIFT
#define CCM_CSCMR1_PERCLK_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4498
CCM_CS1CDR_SAI1_CLK_PRED_MASK
#define CCM_CS1CDR_SAI1_CLK_PRED_MASK
Definition: MIMXRT1052.h:4847
_clock_sys_pll_config::ss_stop
uint16_t ss_stop
Definition: fsl_clock.h:887
CLOCK_DeinitArmPll
void CLOCK_DeinitArmPll(void)
De-initialize the ARM PLL.
Definition: fsl_clock.c:516
CCM_CCGR3_CG3_SHIFT
#define CCM_CCGR3_CG3_SHIFT
Definition: MIMXRT1052.h:5797
CCM_CCGR5_CG6_SHIFT
#define CCM_CCGR5_CG6_SHIFT
Definition: MIMXRT1052.h:5910
CCM_CCGR1_CG6_SHIFT
#define CCM_CCGR1_CG6_SHIFT
Definition: MIMXRT1052.h:5702
CCM_CCGR6_CG0_SHIFT
#define CCM_CCGR6_CG0_SHIFT
Definition: MIMXRT1052.h:5944
CLOCK_SetRtcXtalFreq
static void CLOCK_SetRtcXtalFreq(uint32_t freq)
Set the RTC XTAL (32K OSC) frequency based on board setting.
Definition: fsl_clock.h:1211
CCM_CCGR5_CG13_SHIFT
#define CCM_CCGR5_CG13_SHIFT
Definition: MIMXRT1052.h:5931
kCLOCK_Usb1PllClk
@ kCLOCK_Usb1PllClk
Definition: fsl_clock.h:417
kCLOCK_Sai1
@ kCLOCK_Sai1
Definition: fsl_clock.h:547
kCLOCK_Enc4
@ kCLOCK_Enc4
Definition: fsl_clock.h:535
kCLOCK_SysPllPfd1Clk
@ kCLOCK_SysPllPfd1Clk
Definition: fsl_clock.h:427
_clock_video_pll_config::postDivider
uint8_t postDivider
Definition: fsl_clock.h:907
kCLOCK_Anadig
@ kCLOCK_Anadig
Definition: fsl_clock.h:567
CLOCK_InitSysPfd
void CLOCK_InitSysPfd(clock_pfd_t pfd, uint8_t pfdFrac)
Initialize the System PLL PFD.
Definition: fsl_clock.c:1075
CCM_CBCMR_PERIPH_CLK2_SEL_SHIFT
#define CCM_CBCMR_PERIPH_CLK2_SEL_SHIFT
Definition: MIMXRT1052.h:4372
_clock_audio_pll_config
PLL configuration for AUDIO and VIDEO.
Definition: fsl_clock.h:894
CLOCK_SetPllBypassRefClkSrc
static void CLOCK_SetPllBypassRefClkSrc(CCM_ANALOG_Type *base, clock_pll_t pll, uint32_t src)
PLL bypass clock source setting. Note: change the bypass clock source also change the pll reference c...
Definition: fsl_clock.h:1316
CCM
#define CCM
Definition: MIMXRT1052.h:6049
CCM_CCGR0_CG3_SHIFT
#define CCM_CCGR0_CG3_SHIFT
Definition: MIMXRT1052.h:5641
CCM_CSCMR1_SAI2_CLK_SEL_SHIFT
#define CCM_CSCMR1_SAI2_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4514
kCLOCK_LcdifDiv
@ kCLOCK_LcdifDiv
Definition: fsl_clock.h:742
CCM_CCGR0_CG7_SHIFT
#define CCM_CCGR0_CG7_SHIFT
Definition: MIMXRT1052.h:5653
CLOCK_GetMux
static uint32_t CLOCK_GetMux(clock_mux_t mux)
Get CCM MUX value.
Definition: fsl_clock.h:995
kCLOCK_IpInvalid
@ kCLOCK_IpInvalid
Definition: fsl_clock.h:446
CCM_CCGR5_CG14_SHIFT
#define CCM_CCGR5_CG14_SHIFT
Definition: MIMXRT1052.h:5934
clock_video_pll_config_t
struct _clock_video_pll_config clock_video_pll_config_t
PLL configuration for AUDIO and VIDEO.
CLOCK_InitRcOsc24M
void CLOCK_InitRcOsc24M(void)
Initialize the RC oscillator 24MHz clock.
Definition: fsl_clock.c:209
kCLOCK_FlexRam
@ kCLOCK_FlexRam
Definition: fsl_clock.h:512
CLOCK_SetMux
static void CLOCK_SetMux(clock_mux_t mux, uint32_t value)
Set CCM MUX node to certain value.
Definition: fsl_clock.h:969
kCLOCK_Csi
@ kCLOCK_Csi
Definition: fsl_clock.h:486
CLOCK_EnableUsbhs0Clock
bool CLOCK_EnableUsbhs0Clock(clock_usb_src_t src, uint32_t freq)
Enable USB HS clock.
Definition: fsl_clock.c:406
kCLOCK_PerclkMux
@ kCLOCK_PerclkMux
Definition: fsl_clock.h:667
CS2CDR_OFFSET
#define CS2CDR_OFFSET
Definition: fsl_clock.h:71
CCM_ANALOG_PLL_SYS_ENABLE_SHIFT
#define CCM_ANALOG_PLL_SYS_ENABLE_SHIFT
Definition: MIMXRT1052.h:6536
CCM_CCGR2_CG12_SHIFT
#define CCM_CCGR2_CG12_SHIFT
Definition: MIMXRT1052.h:5772
CCM_CSCMR1_FLEXSPI_CLK_SEL_SHIFT
#define CCM_CSCMR1_FLEXSPI_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4559
CSCDR3_OFFSET
#define CSCDR3_OFFSET
Definition: fsl_clock.h:68
CCM_CSCDR1_UART_CLK_SEL_SHIFT
#define CCM_CSCDR1_UART_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4732
kCLOCK_Usb2PllClk
@ kCLOCK_Usb2PllClk
Definition: fsl_clock.h:423
CCM_CBCDR_SEMC_ALT_CLK_SEL_SHIFT
#define CCM_CBCDR_SEMC_ALT_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4297
CCM_CCGR6_CG10_SHIFT
#define CCM_CCGR6_CG10_SHIFT
Definition: MIMXRT1052.h:5974
kCLOCK_Sai2PreDiv
@ kCLOCK_Sai2PreDiv
Definition: fsl_clock.h:801
CLOCK_InitEnetPll
void CLOCK_InitEnetPll(const clock_enet_pll_config_t *config)
Initialize the ENET PLL.
Definition: fsl_clock.c:809
kCLOCK_IpgClk
@ kCLOCK_IpgClk
Definition: fsl_clock.h:409
CCM_CSCMR1_FLEXSPI_PODF_MASK
#define CCM_CSCMR1_FLEXSPI_PODF_MASK
Definition: MIMXRT1052.h:4545
CCM_CCGR6_CG12_SHIFT
#define CCM_CCGR6_CG12_SHIFT
Definition: MIMXRT1052.h:5980
CCM_CCGR6_CG6_SHIFT
#define CCM_CCGR6_CG6_SHIFT
Definition: MIMXRT1052.h:5962
CCM_TUPLE_SHIFT
#define CCM_TUPLE_SHIFT(tuple)
Definition: fsl_clock.h:87
CLOCK_GetDiv
static uint32_t CLOCK_GetDiv(clock_div_t divider)
Get CCM DIV node value.
Definition: fsl_clock.h:1031
_clock_enet_pll_config::loopDivider
uint8_t loopDivider
Definition: fsl_clock.h:920
CCM_CSCMR2_CAN_CLK_SEL_SHIFT
#define CCM_CSCMR2_CAN_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4641
CCM_CCGR3_CG1_SHIFT
#define CCM_CCGR3_CG1_SHIFT
Definition: MIMXRT1052.h:5791
CCM_CCGR2_CG11_SHIFT
#define CCM_CCGR2_CG11_SHIFT
Definition: MIMXRT1052.h:5769
_clock_mux
_clock_mux
MUX control names for clock mux setting.
Definition: fsl_clock.h:606
CLOCK_EnableUsbhs1PhyPllClock
bool CLOCK_EnableUsbhs1PhyPllClock(clock_usb_phy_src_t src, uint32_t freq)
Enable USB HS PHY PLL clock.
Definition: fsl_clock.c:1228
CCM_CDCDR_SPDIF0_CLK_PRED_MASK
#define CCM_CDCDR_SPDIF0_CLK_PRED_MASK
Definition: MIMXRT1052.h:5117
CCM_CDCDR_FLEXIO1_CLK_PODF_SHIFT
#define CCM_CDCDR_FLEXIO1_CLK_PODF_SHIFT
Definition: MIMXRT1052.h:5070
kCLOCK_Timer3
@ kCLOCK_Timer3
Definition: fsl_clock.h:571
CCM_CCGR4_CG7_SHIFT
#define CCM_CCGR4_CG7_SHIFT
Definition: MIMXRT1052.h:5861
CCM_CCGR4_CG10_SHIFT
#define CCM_CCGR4_CG10_SHIFT
Definition: MIMXRT1052.h:5870
kCLOCK_OscClk
@ kCLOCK_OscClk
Definition: fsl_clock.h:412
CCM_CCGR0_CG5_SHIFT
#define CCM_CCGR0_CG5_SHIFT
Definition: MIMXRT1052.h:5647
kCLOCK_LpspiDiv
@ kCLOCK_LpspiDiv
Definition: fsl_clock.h:740
CCM_CSCMR1_PERCLK_PODF_SHIFT
#define CCM_CSCMR1_PERCLK_PODF_SHIFT
Definition: MIMXRT1052.h:4429
kCLOCK_Pwm3
@ kCLOCK_Pwm3
Definition: fsl_clock.h:530
CCM_CCGR0_CG0_SHIFT
#define CCM_CCGR0_CG0_SHIFT
Definition: MIMXRT1052.h:5632
CLOCK_DeinitRcOsc24M
void CLOCK_DeinitRcOsc24M(void)
Power down the RCOSC 24M clock.
Definition: fsl_clock.c:217
CCM_CCGR3_CG6_SHIFT
#define CCM_CCGR3_CG6_SHIFT
Definition: MIMXRT1052.h:5806
clock_enet_pll_config_t
struct _clock_enet_pll_config clock_enet_pll_config_t
PLL configuration for ENET.
CCM_CCGR4_CG8_SHIFT
#define CCM_CCGR4_CG8_SHIFT
Definition: MIMXRT1052.h:5864
CCM_ANALOG_PLL_USB1_ENABLE_SHIFT
#define CCM_ANALOG_PLL_USB1_ENABLE_SHIFT
Definition: MIMXRT1052.h:6287
CCM_CCGR2_CG7_SHIFT
#define CCM_CCGR2_CG7_SHIFT
Definition: MIMXRT1052.h:5757
CCM_CCGR2_CG1_SHIFT
#define CCM_CCGR2_CG1_SHIFT
Definition: MIMXRT1052.h:5739
CCM_CCGR2_CG10_SHIFT
#define CCM_CCGR2_CG10_SHIFT
Definition: MIMXRT1052.h:5766
CLOCK_EnableClock
static void CLOCK_EnableClock(clock_ip_name_t name)
Enable the clock for specific IP.
Definition: fsl_clock.h:1059
kCLOCK_Sim_M_Main
@ kCLOCK_Sim_M_Main
Definition: fsl_clock.h:453
kCLOCK_Semc
@ kCLOCK_Semc
Definition: fsl_clock.h:505
clock_mux_t
enum _clock_mux clock_mux_t
MUX control names for clock mux setting.
_clock_pll_clk_src
_clock_pll_clk_src
PLL clock source, bypass cloco source also.
Definition: fsl_clock.h:855
clock_sys_pll_config_t
struct _clock_sys_pll_config clock_sys_pll_config_t
PLL configuration for System.
CCM_CCGR2_CG0_SHIFT
#define CCM_CCGR2_CG0_SHIFT
Definition: MIMXRT1052.h:5736
CCM_CDCDR_SPDIF0_CLK_PODF_MASK
#define CCM_CDCDR_SPDIF0_CLK_PODF_MASK
Definition: MIMXRT1052.h:5104
CCM_CCGR2_CG6_SHIFT
#define CCM_CCGR2_CG6_SHIFT
Definition: MIMXRT1052.h:5754
CCM_CSCDR3_CSI_CLK_SEL_MASK
#define CCM_CSCDR3_CSI_CLK_SEL_MASK
Definition: MIMXRT1052.h:5240
XTALOSC24M_LOWPWR_CTRL_OSC_SEL_MASK
#define XTALOSC24M_LOWPWR_CTRL_OSC_SEL_MASK
Definition: MIMXRT1052.h:45604
kCLOCK_ArmDiv
@ kCLOCK_ArmDiv
Definition: fsl_clock.h:720
CCM_CCGR0_CG13_SHIFT
#define CCM_CCGR0_CG13_SHIFT
Definition: MIMXRT1052.h:5671
PLL_AUDIO_OFFSET
#define PLL_AUDIO_OFFSET
Definition: fsl_clock.h:79
_clock_audio_pll_config::src
uint8_t src
Definition: fsl_clock.h:900
_clock_video_pll_config::denominator
uint32_t denominator
Definition: fsl_clock.h:909
kCLOCK_Gpio4
@ kCLOCK_Gpio4
Definition: fsl_clock.h:509
CLOCK_DeinitVideoPll
void CLOCK_DeinitVideoPll(void)
De-initialize the Video PLL.
Definition: fsl_clock.c:797
_clock_usb_src
_clock_usb_src
USB clock source definition.
Definition: fsl_clock.h:841
kCLOCK_Trace
@ kCLOCK_Trace
Definition: fsl_clock.h:460
CCM_CDCDR_FLEXIO1_CLK_PODF_MASK
#define CCM_CDCDR_FLEXIO1_CLK_PODF_MASK
Definition: MIMXRT1052.h:5069
kCLOCK_Flexio2
@ kCLOCK_Flexio2
Definition: fsl_clock.h:503
CCM_CCGR1_CG2_SHIFT
#define CCM_CCGR1_CG2_SHIFT
Definition: MIMXRT1052.h:5690
_clock_arm_pll_config::loopDivider
uint32_t loopDivider
Definition: fsl_clock.h:864
kCLOCK_SysPllPfd3Clk
@ kCLOCK_SysPllPfd3Clk
Definition: fsl_clock.h:429
_clock_usb_pll_config
PLL configuration for USB.
Definition: fsl_clock.h:869
CLOCK_InitUsb1Pll
void CLOCK_InitUsb1Pll(const clock_usb_pll_config_t *config)
Initialize the USB1 PLL.
Definition: fsl_clock.c:570
kCLOCK_Wdog3
@ kCLOCK_Wdog3
Definition: fsl_clock.h:540
CCM_CACRR_ARM_PODF_SHIFT
#define CCM_CACRR_ARM_PODF_SHIFT
Definition: MIMXRT1052.h:4273
kCLOCK_Usb1PllPfd0Clk
@ kCLOCK_Usb1PllPfd0Clk
Definition: fsl_clock.h:418
kCLOCK_Trng
@ kCLOCK_Trng
Definition: fsl_clock.h:562
CCM_TUPLE
#define CCM_TUPLE(reg, shift, mask, busyShift)
Definition: fsl_clock.h:84
kCLOCK_PllAudio
@ kCLOCK_PllAudio
Definition: fsl_clock.h:935
CCM_CS1CDR_FLEXIO2_CLK_PODF_MASK
#define CCM_CS1CDR_FLEXIO2_CLK_PODF_MASK
Definition: MIMXRT1052.h:4956
kCLOCK_Gpt1
@ kCLOCK_Gpt1
Definition: fsl_clock.h:477
kCLOCK_PrePeriphMux
@ kCLOCK_PrePeriphMux
Definition: fsl_clock.h:626
kCLOCK_Lpi2c4
@ kCLOCK_Lpi2c4
Definition: fsl_clock.h:568
kCLOCK_IomuxcSnvsGpr
@ kCLOCK_IomuxcSnvsGpr
Definition: fsl_clock.h:518
kCLOCK_ClockNeededRun
@ kCLOCK_ClockNeededRun
Definition: fsl_clock.h:586
CCM_CBCMR_LPSPI_PODF_SHIFT
#define CCM_CBCMR_LPSPI_PODF_SHIFT
Definition: MIMXRT1052.h:4412
kCLOCK_FlexSpiExsc
@ kCLOCK_FlexSpiExsc
Definition: fsl_clock.h:452
CCM_CSCDR2_LPI2C_CLK_PODF_SHIFT
#define CCM_CSCDR2_LPI2C_CLK_PODF_SHIFT
Definition: MIMXRT1052.h:5166
kCLOCK_Usb1PllPfd1Clk
@ kCLOCK_Usb1PllPfd1Clk
Definition: fsl_clock.h:419
CSCMR2_OFFSET
#define CSCMR2_OFFSET
Definition: fsl_clock.h:64
XTALOSC24M
#define XTALOSC24M
Definition: MIMXRT1052.h:46093
kCLOCK_AhbDiv
@ kCLOCK_AhbDiv
Definition: fsl_clock.h:733
clock_usb_src_t
enum _clock_usb_src clock_usb_src_t
USB clock source definition.
kCLOCK_ArmPllClk
@ kCLOCK_ArmPllClk
Definition: fsl_clock.h:415
kCLOCK_Sai2Mux
@ kCLOCK_Sai2Mux
Definition: fsl_clock.h:659
CCM_CSCDR1_UART_CLK_PODF_MASK
#define CCM_CSCDR1_UART_CLK_PODF_MASK
Definition: MIMXRT1052.h:4662
clock_pll_t
enum _clock_pll clock_pll_t
PLL name.
CCM_CCSR_PLL3_SW_CLK_SEL_SHIFT
#define CCM_CCSR_PLL3_SW_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4262
kCLOCK_Sai1Mux
@ kCLOCK_Sai1Mux
Definition: fsl_clock.h:663
CCM_CCGR3_CG8_SHIFT
#define CCM_CCGR3_CG8_SHIFT
Definition: MIMXRT1052.h:5812
kCLOCK_Usdhc2Mux
@ kCLOCK_Usdhc2Mux
Definition: fsl_clock.h:647
CLOCK_SetDiv
static void CLOCK_SetDiv(clock_div_t divider, uint32_t value)
Set CCM DIV node to certain value.
Definition: fsl_clock.h:1006
kCLOCK_Usdhc1
@ kCLOCK_Usdhc1
Definition: fsl_clock.h:557
kCLOCK_Lpuart2
@ kCLOCK_Lpuart2
Definition: fsl_clock.h:463
CCM_CSCMR2_FLEXIO2_CLK_SEL_SHIFT
#define CCM_CSCMR2_FLEXIO2_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4650
kCLOCK_Can2
@ kCLOCK_Can2
Definition: fsl_clock.h:458
kCLOCK_RtcClk
@ kCLOCK_RtcClk
Definition: fsl_clock.h:413
kCLOCK_ModeWait
@ kCLOCK_ModeWait
Definition: fsl_clock.h:594
kCLOCK_Usb1PllPfd3Clk
@ kCLOCK_Usb1PllPfd3Clk
Definition: fsl_clock.h:421
CCM_CCGR6_CG3_SHIFT
#define CCM_CCGR6_CG3_SHIFT
Definition: MIMXRT1052.h:5953
_clock_audio_pll_config::loopDivider
uint8_t loopDivider
Definition: fsl_clock.h:896
CSCMR1_OFFSET
#define CSCMR1_OFFSET
Definition: fsl_clock.h:63
CCM_CCGR0_CG2_SHIFT
#define CCM_CCGR0_CG2_SHIFT
Definition: MIMXRT1052.h:5638
kCLOCK_Pfd1
@ kCLOCK_Pfd1
Definition: fsl_clock.h:950
kCLOCK_Iomuxc
@ kCLOCK_Iomuxc
Definition: fsl_clock.h:521
CCM_CCGR2_CG4_SHIFT
#define CCM_CCGR2_CG4_SHIFT
Definition: MIMXRT1052.h:5748
_clock_usb_pll_config::loopDivider
uint8_t loopDivider
Definition: fsl_clock.h:871
CCM_CSCMR1_USDHC2_CLK_SEL_SHIFT
#define CCM_CSCMR1_USDHC2_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4539
kCLOCK_Enet
@ kCLOCK_Enet
Definition: fsl_clock.h:472
kCLOCK_SysPllPfd2Clk
@ kCLOCK_SysPllPfd2Clk
Definition: fsl_clock.h:428
CCM_CDCDR_FLEXIO1_CLK_PRED_MASK
#define CCM_CDCDR_FLEXIO1_CLK_PRED_MASK
Definition: MIMXRT1052.h:5082
CCM_CCGR1_CG7_SHIFT
#define CCM_CCGR1_CG7_SHIFT
Definition: MIMXRT1052.h:5705
CCM_CSCMR2_CAN_CLK_PODF_SHIFT
#define CCM_CSCMR2_CAN_CLK_PODF_SHIFT
Definition: MIMXRT1052.h:4572
CCM_CSCMR1_FLEXSPI_PODF_SHIFT
#define CCM_CSCMR1_FLEXSPI_PODF_SHIFT
Definition: MIMXRT1052.h:4546
CLOCK_SwitchOsc
void CLOCK_SwitchOsc(clock_osc_t osc)
Switch the OSC.
Definition: fsl_clock.c:194
kCLOCK_SemcMux
@ kCLOCK_SemcMux
Definition: fsl_clock.h:621
CCM_CCGR3_CG12_SHIFT
#define CCM_CCGR3_CG12_SHIFT
Definition: MIMXRT1052.h:5824
kCLOCK_Spdif
@ kCLOCK_Spdif
Definition: fsl_clock.h:545
CCM_CS1CDR_FLEXIO2_CLK_PODF_SHIFT
#define CCM_CS1CDR_FLEXIO2_CLK_PODF_SHIFT
Definition: MIMXRT1052.h:4957
CLOCK_InitSysPll
void CLOCK_InitSysPll(const clock_sys_pll_config_t *config)
Initialize the System PLL.
Definition: fsl_clock.c:528
CLOCK_DeinitEnetPll
void CLOCK_DeinitEnetPll(void)
Deinitialize the ENET PLL.
Definition: fsl_clock.c:844
kCLOCK_LcdifPreMux
@ kCLOCK_LcdifPreMux
Definition: fsl_clock.h:699
CLOCK_GetSemcFreq
uint32_t CLOCK_GetSemcFreq(void)
Gets the SEMC clock frequency.
Definition: fsl_clock.c:237
CCM_ANALOG_Type
Definition: MIMXRT1052.h:6072
CCM_CCGR5_CG11_SHIFT
#define CCM_CCGR5_CG11_SHIFT
Definition: MIMXRT1052.h:5925
PLL_USB2_OFFSET
#define PLL_USB2_OFFSET
Definition: fsl_clock.h:82
CLOCK_ControlGate
static void CLOCK_ControlGate(clock_ip_name_t name, clock_gate_value_t value)
Control the clock gate for specific IP.
Definition: fsl_clock.h:1042
kCLOCK_Lpi2c1
@ kCLOCK_Lpi2c1
Definition: fsl_clock.h:488
kCLOCK_Bee
@ kCLOCK_Bee
Definition: fsl_clock.h:523
kCLOCK_LpspiMux
@ kCLOCK_LpspiMux
Definition: fsl_clock.h:638
CCM_CSCDR2_LCDIF_PRED_MASK
#define CCM_CSCDR2_LCDIF_PRED_MASK
Definition: MIMXRT1052.h:5134
kCLOCK_EnetPll0Clk
@ kCLOCK_EnetPll0Clk
Definition: fsl_clock.h:431
CCM_CBCMR_LPSPI_PODF_MASK
#define CCM_CBCMR_LPSPI_PODF_MASK
Definition: MIMXRT1052.h:4411
kCLOCK_Lpi2cMux
@ kCLOCK_Lpi2cMux
Definition: fsl_clock.h:695
clock_mode_t
enum _clock_mode_t clock_mode_t
System clock mode.
CCM_CCGR5_CG1_SHIFT
#define CCM_CCGR5_CG1_SHIFT
Definition: MIMXRT1052.h:5895
CCM_CCGR5_CG10_SHIFT
#define CCM_CCGR5_CG10_SHIFT
Definition: MIMXRT1052.h:5922
CCM_CS1CDR_SAI1_CLK_PODF_SHIFT
#define CCM_CS1CDR_SAI1_CLK_PODF_SHIFT
Definition: MIMXRT1052.h:4778
CLOCK_DeinitExternalClk
void CLOCK_DeinitExternalClk(void)
Deinitialize the external 24MHz clock.
Definition: fsl_clock.c:182
clock_name_t
enum _clock_name clock_name_t
Clock name used to get clock frequency.
_clock_sys_pll_config::denominator
uint32_t denominator
Definition: fsl_clock.h:885
CLOCK_EnableUsbhs0PhyPllClock
bool CLOCK_EnableUsbhs0PhyPllClock(clock_usb_phy_src_t src, uint32_t freq)
Enable USB HS PHY PLL clock.
Definition: fsl_clock.c:458
kCLOCK_Usdhc1Mux
@ kCLOCK_Usdhc1Mux
Definition: fsl_clock.h:651
kCLOCK_UartDiv
@ kCLOCK_UartDiv
Definition: fsl_clock.h:771
kCLOCK_Aips_tz3
@ kCLOCK_Aips_tz3
Definition: fsl_clock.h:565
CCM_CSCMR2_CAN_CLK_PODF_MASK
#define CCM_CSCMR2_CAN_CLK_PODF_MASK
Definition: MIMXRT1052.h:4571
CCM_CCGR5_CG5_SHIFT
#define CCM_CCGR5_CG5_SHIFT
Definition: MIMXRT1052.h:5907
kCLOCK_Pfd2
@ kCLOCK_Pfd2
Definition: fsl_clock.h:951
kCLOCK_AhbClk
@ kCLOCK_AhbClk
Definition: fsl_clock.h:407
_clock_video_pll_config::numerator
uint32_t numerator
Definition: fsl_clock.h:908
CSCDR2_OFFSET
#define CSCDR2_OFFSET
Definition: fsl_clock.h:67
CCM_CBCMR_TRACE_CLK_SEL_MASK
#define CCM_CBCMR_TRACE_CLK_SEL_MASK
Definition: MIMXRT1052.h:4380
CCM_CBCDR_PERIPH_CLK_SEL_SHIFT
#define CCM_CBCDR_PERIPH_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4339
CCM_CCGR1_CG4_SHIFT
#define CCM_CCGR1_CG4_SHIFT
Definition: MIMXRT1052.h:5696
kCLOCK_Gpt1S
@ kCLOCK_Gpt1S
Definition: fsl_clock.h:478
kCLOCK_Lpspi3
@ kCLOCK_Lpspi3
Definition: fsl_clock.h:469
kCLOCK_Usbphy480M
@ kCLOCK_Usbphy480M
Definition: fsl_clock.h:851
CCM_CDCDR_FLEXIO1_CLK_SEL_MASK
#define CCM_CDCDR_FLEXIO1_CLK_SEL_MASK
Definition: MIMXRT1052.h:5060
kCLOCK_PerclkDiv
@ kCLOCK_PerclkDiv
Definition: fsl_clock.h:749
CLOCK_DisableClock
static void CLOCK_DisableClock(clock_ip_name_t name)
Disable the clock for specific IP.
Definition: fsl_clock.h:1069
_clock_enet_pll_config::enableClkOutput
bool enableClkOutput
Definition: fsl_clock.h:917
CCM_CACRR_ARM_PODF_MASK
#define CCM_CACRR_ARM_PODF_MASK
Definition: MIMXRT1052.h:4272
CCM_CCGR5_CG0_SHIFT
#define CCM_CCGR5_CG0_SHIFT
Definition: MIMXRT1052.h:5892
CCM_CSCDR1_USDHC2_PODF_MASK
#define CCM_CSCDR1_USDHC2_PODF_MASK
Definition: MIMXRT1052.h:4751
CCM_CBCDR_SEMC_CLK_SEL_SHIFT
#define CCM_CBCDR_SEMC_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4290
kCLOCK_Lpi2cDiv
@ kCLOCK_Lpi2cDiv
Definition: fsl_clock.h:827
CCM_CCGR2_CG13_SHIFT
#define CCM_CCGR2_CG13_SHIFT
Definition: MIMXRT1052.h:5775
kCLOCK_Csu
@ kCLOCK_Csu
Definition: fsl_clock.h:481
CCM_CCGR6_CG7_SHIFT
#define CCM_CCGR6_CG7_SHIFT
Definition: MIMXRT1052.h:5965
kCLOCK_SimEms
@ kCLOCK_SimEms
Definition: fsl_clock.h:527
CLOCK_GetOscFreq
static uint32_t CLOCK_GetOscFreq(void)
Gets the OSC clock frequency.
Definition: fsl_clock.h:1092
kCLOCK_PllUsb1
@ kCLOCK_PllUsb1
Definition: fsl_clock.h:934
CCM_ANALOG_TUPLE_REG
#define CCM_ANALOG_TUPLE_REG(base, tuple)
Definition: fsl_clock.h:101
kCLOCK_FlexSpi
@ kCLOCK_FlexSpi
Definition: fsl_clock.h:561
kCLOCK_Pit
@ kCLOCK_Pit
Definition: fsl_clock.h:473
CLOCK_InitExternalClk
void CLOCK_InitExternalClk(bool bypassXtalOsc)
Initialize the external 24MHz clock.
Definition: fsl_clock.c:158
clock_usb_pll_config_t
struct _clock_usb_pll_config clock_usb_pll_config_t
PLL configuration for USB.
_clock_gate_value
_clock_gate_value
Clock gate value.
Definition: fsl_clock.h:583
CCM_CSCDR1_TRACE_PODF_SHIFT
#define CCM_CSCDR1_TRACE_PODF_SHIFT
Definition: MIMXRT1052.h:4765
kCLOCK_SnvsLp
@ kCLOCK_SnvsLp
Definition: fsl_clock.h:553
kCLOCK_UsbSrcUnused
@ kCLOCK_UsbSrcUnused
Definition: fsl_clock.h:844
kCLOCK_Adc2
@ kCLOCK_Adc2
Definition: fsl_clock.h:471
CCM_CS1CDR_FLEXIO2_CLK_PRED_SHIFT
#define CCM_CS1CDR_FLEXIO2_CLK_PRED_SHIFT
Definition: MIMXRT1052.h:4861
CCM_CS2CDR_SAI2_CLK_PODF_SHIFT
#define CCM_CS2CDR_SAI2_CLK_PODF_SHIFT
Definition: MIMXRT1052.h:4974
CCM_CSCMR1_SAI3_CLK_SEL_SHIFT
#define CCM_CSCMR1_SAI3_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4523
CBCMR_OFFSET
#define CBCMR_OFFSET
Definition: fsl_clock.h:62
CCM_CSCDR2_LCDIF_PRE_CLK_SEL_MASK
#define CCM_CSCDR2_LCDIF_PRE_CLK_SEL_MASK
Definition: MIMXRT1052.h:5147
CLOCK_DeinitUsb1Pll
void CLOCK_DeinitUsb1Pll(void)
Deinitialize the USB1 PLL.
Definition: fsl_clock.c:591
kCLOCK_Ipmux1
@ kCLOCK_Ipmux1
Definition: fsl_clock.h:493
kCLOCK_Acmp1
@ kCLOCK_Acmp1
Definition: fsl_clock.h:513
kCLOCK_Flexio2Mux
@ kCLOCK_Flexio2Mux
Definition: fsl_clock.h:672
kCLOCK_Lpuart8
@ kCLOCK_Lpuart8
Definition: fsl_clock.h:563
CCM_CCGR5_CG3_SHIFT
#define CCM_CCGR5_CG3_SHIFT
Definition: MIMXRT1052.h:5901
CCM_CS1CDR_SAI3_CLK_PODF_SHIFT
#define CCM_CS1CDR_SAI3_CLK_PODF_SHIFT
Definition: MIMXRT1052.h:4874
CLOCK_SetXtalFreq
static void CLOCK_SetXtalFreq(uint32_t freq)
Set the XTAL (24M OSC) frequency based on board setting.
Definition: fsl_clock.h:1201
kCLOCK_Sai2Div
@ kCLOCK_Sai2Div
Definition: fsl_clock.h:805
CLOCK_IsPllEnabled
static bool CLOCK_IsPllEnabled(CCM_ANALOG_Type *base, clock_pll_t pll)
Check if PLL is enabled.
Definition: fsl_clock.h:1303
CCM_CCGR4_CG4_SHIFT
#define CCM_CCGR4_CG4_SHIFT
Definition: MIMXRT1052.h:5852
CCM_ANALOG_PLL_VIDEO_ENABLE_SHIFT
#define CCM_ANALOG_PLL_VIDEO_ENABLE_SHIFT
Definition: MIMXRT1052.h:6857
_clock_pfd
_clock_pfd
PLL PFD name.
Definition: fsl_clock.h:947
kCLOCK_Timer4
@ kCLOCK_Timer4
Definition: fsl_clock.h:564
CS1CDR_OFFSET
#define CS1CDR_OFFSET
Definition: fsl_clock.h:70
kCLOCK_Mqs
@ kCLOCK_Mqs
Definition: fsl_clock.h:451
config
static sai_transceiver_t config
Definition: imxrt1050/imxrt1050-evkb/source/pv_audio_rec.c:75
_clock_arm_pll_config::src
uint8_t src
Definition: fsl_clock.h:865
kCLOCK_Dcdc
@ kCLOCK_Dcdc
Definition: fsl_clock.h:559
CCM_CSCDR1_USDHC1_PODF_MASK
#define CCM_CSCDR1_USDHC1_PODF_MASK
Definition: MIMXRT1052.h:4738
kCLOCK_Lpi2c2
@ kCLOCK_Lpi2c2
Definition: fsl_clock.h:489
_clock_enet_pll_config::enableClkOutput25M
bool enableClkOutput25M
Definition: fsl_clock.h:919
clock_ip_name_t
enum _clock_ip_name clock_ip_name_t
CCM CCGR gate control for each module independently.
CLOCK_GetSysPfdFreq
uint32_t CLOCK_GetSysPfdFreq(clock_pfd_t pfd)
Get current System PLL PFD output frequency.
Definition: fsl_clock.c:1149
CLOCK_InitArmPll
void CLOCK_InitArmPll(const clock_arm_pll_config_t *config)
Initialize the ARM PLL.
Definition: fsl_clock.c:495
kCLOCK_Lpuart3
@ kCLOCK_Lpuart3
Definition: fsl_clock.h:455
CCM_CDHIPR_ARM_PODF_BUSY_SHIFT
#define CCM_CDHIPR_ARM_PODF_BUSY_SHIFT
Definition: MIMXRT1052.h:5299
_clock_audio_pll_config::postDivider
uint8_t postDivider
Definition: fsl_clock.h:897
CCM_CBCMR_LPSPI_CLK_SEL_MASK
#define CCM_CBCMR_LPSPI_CLK_SEL_MASK
Definition: MIMXRT1052.h:4362
kCLOCK_Pxp
@ kCLOCK_Pxp
Definition: fsl_clock.h:500
kCLOCK_ClockNeededRunWait
@ kCLOCK_ClockNeededRunWait
Definition: fsl_clock.h:587
kCLOCK_Can2S
@ kCLOCK_Can2S
Definition: fsl_clock.h:459
kCLOCK_CsiDiv
@ kCLOCK_CsiDiv
Definition: fsl_clock.h:836
kCLOCK_LcdifPreDiv
@ kCLOCK_LcdifPreDiv
Definition: fsl_clock.h:831
kCLOCK_Sai3Mux
@ kCLOCK_Sai3Mux
Definition: fsl_clock.h:655
CCM_CBCDR_PERIPH_CLK2_PODF_SHIFT
#define CCM_CBCDR_PERIPH_CLK2_PODF_SHIFT
Definition: MIMXRT1052.h:4346
CCM_ANALOG_PLL_AUDIO_ENABLE_SHIFT
#define CCM_ANALOG_PLL_AUDIO_ENABLE_SHIFT
Definition: MIMXRT1052.h:6683
CCM_CSCMR2_CAN_CLK_SEL_MASK
#define CCM_CSCMR2_CAN_CLK_SEL_MASK
Definition: MIMXRT1052.h:4640
kCLOCK_SimMain
@ kCLOCK_SimMain
Definition: fsl_clock.h:546
CCM_CCGR4_CG11_SHIFT
#define CCM_CCGR4_CG11_SHIFT
Definition: MIMXRT1052.h:5873
CCM_CCGR2_CG14_SHIFT
#define CCM_CCGR2_CG14_SHIFT
Definition: MIMXRT1052.h:5778
CCM_CCGR0_CG12_SHIFT
#define CCM_CCGR0_CG12_SHIFT
Definition: MIMXRT1052.h:5668
kCLOCK_Sai1PreDiv
@ kCLOCK_Sai1PreDiv
Definition: fsl_clock.h:792
CCM_CSCDR1_USDHC2_PODF_SHIFT
#define CCM_CSCDR1_USDHC2_PODF_SHIFT
Definition: MIMXRT1052.h:4752
kCLOCK_RcOsc
@ kCLOCK_RcOsc
Definition: fsl_clock.h:578
kCLOCK_SysPllPfd0Clk
@ kCLOCK_SysPllPfd0Clk
Definition: fsl_clock.h:426
_clock_enet_pll_config
PLL configuration for ENET.
Definition: fsl_clock.h:915
kCLOCK_Dma
@ kCLOCK_Dma
Definition: fsl_clock.h:541
CCM_CCGR0_CG4_SHIFT
#define CCM_CCGR0_CG4_SHIFT
Definition: MIMXRT1052.h:5644
CCM_CCGR1_CG12_SHIFT
#define CCM_CCGR1_CG12_SHIFT
Definition: MIMXRT1052.h:5720
kCLOCK_Adc1
@ kCLOCK_Adc1
Definition: fsl_clock.h:475
kCLOCK_Gpio1
@ kCLOCK_Gpio1
Definition: fsl_clock.h:480
PLL_VIDEO_OFFSET
#define PLL_VIDEO_OFFSET
Definition: fsl_clock.h:80
CCM_CBCDR_SEMC_PODF_SHIFT
#define CCM_CBCDR_SEMC_PODF_SHIFT
Definition: MIMXRT1052.h:4326
g_rtcXtalFreq
volatile uint32_t g_rtcXtalFreq
External RTC XTAL (32K OSC) clock frequency.
Definition: fsl_clock.c:61
CCM_CCGR2_CG5_SHIFT
#define CCM_CCGR2_CG5_SHIFT
Definition: MIMXRT1052.h:5751
kCLOCK_Gpio5
@ kCLOCK_Gpio5
Definition: fsl_clock.h:482
kCLOCK_Aips_tz4
@ kCLOCK_Aips_tz4
Definition: fsl_clock.h:544
_clock_sys_pll_config
PLL configuration for System.
Definition: fsl_clock.h:879
CCM_CCGR1_CG0_SHIFT
#define CCM_CCGR1_CG0_SHIFT
Definition: MIMXRT1052.h:5684
kCLOCK_PllArm
@ kCLOCK_PllArm
Definition: fsl_clock.h:932
CLOCK_IsPllBypassed
static bool CLOCK_IsPllBypassed(CCM_ANALOG_Type *base, clock_pll_t pll)
Check if PLL is bypassed.
Definition: fsl_clock.h:1289
kCLOCK_Sai3
@ kCLOCK_Sai3
Definition: fsl_clock.h:549
kCLOCK_CpuClk
@ kCLOCK_CpuClk
Definition: fsl_clock.h:406
kCLOCK_ClockNotNeeded
@ kCLOCK_ClockNotNeeded
Definition: fsl_clock.h:585
kCLOCK_Flexio1Mux
@ kCLOCK_Flexio1Mux
Definition: fsl_clock.h:690
CCM_CCGR3_CG4_SHIFT
#define CCM_CCGR3_CG4_SHIFT
Definition: MIMXRT1052.h:5800
CCM_CCGR0_CG8_SHIFT
#define CCM_CCGR0_CG8_SHIFT
Definition: MIMXRT1052.h:5656
kCLOCK_PllSys
@ kCLOCK_PllSys
Definition: fsl_clock.h:933
kCLOCK_Gpio2
@ kCLOCK_Gpio2
Definition: fsl_clock.h:464
kCLOCK_EnetPll1Clk
@ kCLOCK_EnetPll1Clk
Definition: fsl_clock.h:432
CCM_ANALOG_TUPLE_SHIFT
#define CCM_ANALOG_TUPLE_SHIFT(tuple)
Definition: fsl_clock.h:98
CLOCK_SetMode
static void CLOCK_SetMode(clock_mode_t mode)
Setting the low power mode that system will enter on next assertion of dsm_request signal.
Definition: fsl_clock.h:1079
kCLOCK_Lcd
@ kCLOCK_Lcd
Definition: fsl_clock.h:499
_clock_video_pll_config::src
uint8_t src
Definition: fsl_clock.h:910
_clock_mode_t
_clock_mode_t
System clock mode.
Definition: fsl_clock.h:591
CCM_CCGR0_CG14_SHIFT
#define CCM_CCGR0_CG14_SHIFT
Definition: MIMXRT1052.h:5674
CLOCK_GetFreq
uint32_t CLOCK_GetFreq(clock_name_t name)
Gets the clock frequency for a specific clock name.
Definition: fsl_clock.c:310
kCLOCK_Gpt2S
@ kCLOCK_Gpt2S
Definition: fsl_clock.h:462
CLKPN_FREQ
#define CLKPN_FREQ
clock1PN frequency.
Definition: fsl_clock.h:113
CCM_CCGR0_CG10_SHIFT
#define CCM_CCGR0_CG10_SHIFT
Definition: MIMXRT1052.h:5662
kCLOCK_Gpt2
@ kCLOCK_Gpt2
Definition: fsl_clock.h:461
CSCDR1_OFFSET
#define CSCDR1_OFFSET
Definition: fsl_clock.h:65
CCM_CSCDR2_LPI2C_CLK_PODF_MASK
#define CCM_CSCDR2_LPI2C_CLK_PODF_MASK
Definition: MIMXRT1052.h:5165
CCM_CCGR6_CG13_SHIFT
#define CCM_CCGR6_CG13_SHIFT
Definition: MIMXRT1052.h:5983
kCLOCK_SemcDiv
@ kCLOCK_SemcDiv
Definition: fsl_clock.h:729
kCLOCK_Xbar3
@ kCLOCK_Xbar3
Definition: fsl_clock.h:492
kCLOCK_Dcp
@ kCLOCK_Dcp
Definition: fsl_clock.h:454
CCM_CSCMR1_USDHC1_CLK_SEL_SHIFT
#define CCM_CSCMR1_USDHC1_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4532
kCLOCK_PllEnet25M
@ kCLOCK_PllEnet25M
Definition: fsl_clock.h:940
kCLOCK_Kpp
@ kCLOCK_Kpp
Definition: fsl_clock.h:542
kCLOCK_Enc1
@ kCLOCK_Enc1
Definition: fsl_clock.h:532
CCM_CBCMR_PRE_PERIPH_CLK_SEL_SHIFT
#define CCM_CBCMR_PRE_PERIPH_CLK_SEL_SHIFT
Definition: MIMXRT1052.h:4390
CCM_CSCMR1_FLEXSPI_CLK_SEL_MASK
#define CCM_CSCMR1_FLEXSPI_CLK_SEL_MASK
Definition: MIMXRT1052.h:4558
CCM_CSCDR1_USDHC1_PODF_SHIFT
#define CCM_CSCDR1_USDHC1_PODF_SHIFT
Definition: MIMXRT1052.h:4739
CCM_ANALOG_PLL_ENET_ENABLE_SHIFT
#define CCM_ANALOG_PLL_ENET_ENABLE_SHIFT
Definition: MIMXRT1052.h:7031
CCM_CCGR2_CG15_SHIFT
#define CCM_CCGR2_CG15_SHIFT
Definition: MIMXRT1052.h:5781
kCLOCK_CsiMux
@ kCLOCK_CsiMux
Definition: fsl_clock.h:704
CCM_CCGR4_CG1_SHIFT
#define CCM_CCGR4_CG1_SHIFT
Definition: MIMXRT1052.h:5843
CLOCK_GetIpgFreq
uint32_t CLOCK_GetIpgFreq(void)
Gets the IPG clock frequency.
Definition: fsl_clock.c:271


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:13:56