diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2a4s/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2a4s/clock_config.h | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2a4s/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2a4s/clock_config.h new file mode 100644 index 000000000..8b843df13 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2a4s/clock_config.h | |||
@@ -0,0 +1,141 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | #ifndef _CLOCK_CONFIG_H_ | ||
9 | #define _CLOCK_CONFIG_H_ | ||
10 | |||
11 | #include "fsl_common.h" | ||
12 | |||
13 | /******************************************************************************* | ||
14 | * Definitions | ||
15 | ******************************************************************************/ | ||
16 | #define BOARD_XTAL0_CLK_HZ 32768U /*!< Board xtal0 frequency in Hz */ | ||
17 | |||
18 | /******************************************************************************* | ||
19 | ********************** Configuration BOARD_BootClockRUN *********************** | ||
20 | ******************************************************************************/ | ||
21 | /******************************************************************************* | ||
22 | * Definitions for BOARD_BootClockRUN configuration | ||
23 | ******************************************************************************/ | ||
24 | #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 48000000U /*!< Core clock frequency: 48000000Hz */ | ||
25 | |||
26 | /*! @brief SCG set for BOARD_BootClockRUN configuration. | ||
27 | */ | ||
28 | extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockRUN; | ||
29 | /*! @brief System OSC set for BOARD_BootClockRUN configuration. | ||
30 | */ | ||
31 | extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockRUN; | ||
32 | /*! @brief SIRC set for BOARD_BootClockRUN configuration. | ||
33 | */ | ||
34 | extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockRUN; | ||
35 | /*! @brief FIRC set for BOARD_BootClockRUN configuration. | ||
36 | */ | ||
37 | extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockRUN; | ||
38 | extern const scg_spll_config_t g_scgSysPllConfigBOARD_BootClockRUN; | ||
39 | /*! @brief Low Power FLL set for BOARD_BootClockRUN configuration. | ||
40 | */ | ||
41 | |||
42 | /******************************************************************************* | ||
43 | * API for BOARD_BootClockRUN configuration | ||
44 | ******************************************************************************/ | ||
45 | #if defined(__cplusplus) | ||
46 | extern "C" { | ||
47 | #endif /* __cplusplus*/ | ||
48 | |||
49 | /*! | ||
50 | * @brief This function executes configuration of clocks. | ||
51 | * | ||
52 | */ | ||
53 | void BOARD_BootClockRUN(void); | ||
54 | |||
55 | #if defined(__cplusplus) | ||
56 | } | ||
57 | #endif /* __cplusplus*/ | ||
58 | |||
59 | /******************************************************************************* | ||
60 | ********************* Configuration BOARD_BootClockHSRUN ********************** | ||
61 | ******************************************************************************/ | ||
62 | /******************************************************************************* | ||
63 | * Definitions for BOARD_BootClockHSRUN configuration | ||
64 | ******************************************************************************/ | ||
65 | #define BOARD_BOOTCLOCKHSRUN_CORE_CLOCK 96000000U /*!< Core clock frequency: 96000000Hz */ | ||
66 | |||
67 | /*! @brief SCG set for BOARD_BootClockHSRUN configuration. | ||
68 | */ | ||
69 | extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockHSRUN; | ||
70 | /*! @brief System OSC set for BOARD_BootClockHSRUN configuration. | ||
71 | */ | ||
72 | extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockHSRUN; | ||
73 | /*! @brief SIRC set for BOARD_BootClockHSRUN configuration. | ||
74 | */ | ||
75 | extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockHSRUN; | ||
76 | /*! @brief FIRC set for BOARD_BootClockHSRUN configuration. | ||
77 | */ | ||
78 | extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockHSRUN; | ||
79 | extern const scg_spll_config_t g_scgSysPllConfigBOARD_BootClockHSRUN; | ||
80 | /*! @brief Low Power FLL set for BOARD_BootClockHSRUN configuration. | ||
81 | */ | ||
82 | |||
83 | /******************************************************************************* | ||
84 | * API for BOARD_BootClockHSRUN configuration | ||
85 | ******************************************************************************/ | ||
86 | #if defined(__cplusplus) | ||
87 | extern "C" { | ||
88 | #endif /* __cplusplus*/ | ||
89 | |||
90 | /*! | ||
91 | * @brief This function executes configuration of clocks. | ||
92 | * | ||
93 | */ | ||
94 | void BOARD_BootClockHSRUN(void); | ||
95 | |||
96 | #if defined(__cplusplus) | ||
97 | } | ||
98 | #endif /* __cplusplus*/ | ||
99 | |||
100 | /******************************************************************************* | ||
101 | ********************* Configuration BOARD_BootClockVLPR *********************** | ||
102 | ******************************************************************************/ | ||
103 | /******************************************************************************* | ||
104 | * Definitions for BOARD_BootClockVLPR configuration | ||
105 | ******************************************************************************/ | ||
106 | #define BOARD_BOOTCLOCKVLPR_CORE_CLOCK 8000000U /*!< Core clock frequency: 8000000Hz */ | ||
107 | |||
108 | /*! @brief SCG set for BOARD_BootClockVLPR configuration. | ||
109 | */ | ||
110 | extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockVLPR; | ||
111 | /*! @brief System OSC set for BOARD_BootClockVLPR configuration. | ||
112 | */ | ||
113 | extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockVLPR; | ||
114 | /*! @brief SIRC set for BOARD_BootClockVLPR configuration. | ||
115 | */ | ||
116 | extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockVLPR; | ||
117 | /*! @brief FIRC set for BOARD_BootClockVLPR configuration. | ||
118 | */ | ||
119 | extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockVLPR; | ||
120 | extern const scg_spll_config_t g_scgSysPllConfigBOARD_BootClockVLPR; | ||
121 | /*! @brief Low Power FLL set for BOARD_BootClockVLPR configuration. | ||
122 | */ | ||
123 | |||
124 | /******************************************************************************* | ||
125 | * API for BOARD_BootClockVLPR configuration | ||
126 | ******************************************************************************/ | ||
127 | #if defined(__cplusplus) | ||
128 | extern "C" { | ||
129 | #endif /* __cplusplus*/ | ||
130 | |||
131 | /*! | ||
132 | * @brief This function executes configuration of clocks. | ||
133 | * | ||
134 | */ | ||
135 | void BOARD_BootClockVLPR(void); | ||
136 | |||
137 | #if defined(__cplusplus) | ||
138 | } | ||
139 | #endif /* __cplusplus*/ | ||
140 | |||
141 | #endif /* _CLOCK_CONFIG_H_ */ | ||