diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso55s16/project_template/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso55s16/project_template/clock_config.h | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso55s16/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso55s16/project_template/clock_config.h new file mode 100644 index 000000000..b9c591c22 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso55s16/project_template/clock_config.h | |||
@@ -0,0 +1,173 @@ | |||
1 | /* | ||
2 | * Copyright 2017-2018 NXP | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | /*********************************************************************************************************************** | ||
9 | * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file | ||
10 | * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. | ||
11 | **********************************************************************************************************************/ | ||
12 | |||
13 | #ifndef _CLOCK_CONFIG_H_ | ||
14 | #define _CLOCK_CONFIG_H_ | ||
15 | |||
16 | #include "fsl_common.h" | ||
17 | |||
18 | /******************************************************************************* | ||
19 | * Definitions | ||
20 | ******************************************************************************/ | ||
21 | #define BOARD_XTAL0_CLK_HZ 16000000U /*!< Board xtal frequency in Hz */ | ||
22 | #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32K frequency in Hz */ | ||
23 | |||
24 | /******************************************************************************* | ||
25 | ************************ BOARD_InitBootClocks function ************************ | ||
26 | ******************************************************************************/ | ||
27 | |||
28 | #if defined(__cplusplus) | ||
29 | extern "C" { | ||
30 | #endif /* __cplusplus*/ | ||
31 | |||
32 | /*! | ||
33 | * @brief This function executes default configuration of clocks. | ||
34 | * | ||
35 | */ | ||
36 | void BOARD_InitBootClocks(void); | ||
37 | |||
38 | #if defined(__cplusplus) | ||
39 | } | ||
40 | #endif /* __cplusplus*/ | ||
41 | |||
42 | /******************************************************************************* | ||
43 | ******************** Configuration BOARD_BootClockFRO12M ********************** | ||
44 | ******************************************************************************/ | ||
45 | /******************************************************************************* | ||
46 | * Definitions for BOARD_BootClockFRO12M configuration | ||
47 | ******************************************************************************/ | ||
48 | #define BOARD_BOOTCLOCKFRO12M_CORE_CLOCK 12000000U /*!< Core clock frequency: 12000000Hz */ | ||
49 | |||
50 | |||
51 | /******************************************************************************* | ||
52 | * API for BOARD_BootClockFRO12M configuration | ||
53 | ******************************************************************************/ | ||
54 | #if defined(__cplusplus) | ||
55 | extern "C" { | ||
56 | #endif /* __cplusplus*/ | ||
57 | |||
58 | /*! | ||
59 | * @brief This function executes configuration of clocks. | ||
60 | * | ||
61 | */ | ||
62 | void BOARD_BootClockFRO12M(void); | ||
63 | |||
64 | #if defined(__cplusplus) | ||
65 | } | ||
66 | #endif /* __cplusplus*/ | ||
67 | |||
68 | /******************************************************************************* | ||
69 | ******************* Configuration BOARD_BootClockFROHF96M ********************* | ||
70 | ******************************************************************************/ | ||
71 | /******************************************************************************* | ||
72 | * Definitions for BOARD_BootClockFROHF96M configuration | ||
73 | ******************************************************************************/ | ||
74 | #define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK 96000000U /*!< Core clock frequency: 96000000Hz */ | ||
75 | |||
76 | |||
77 | /******************************************************************************* | ||
78 | * API for BOARD_BootClockFROHF96M configuration | ||
79 | ******************************************************************************/ | ||
80 | #if defined(__cplusplus) | ||
81 | extern "C" { | ||
82 | #endif /* __cplusplus*/ | ||
83 | |||
84 | /*! | ||
85 | * @brief This function executes configuration of clocks. | ||
86 | * | ||
87 | */ | ||
88 | void BOARD_BootClockFROHF96M(void); | ||
89 | |||
90 | #if defined(__cplusplus) | ||
91 | } | ||
92 | #endif /* __cplusplus*/ | ||
93 | |||
94 | /******************************************************************************* | ||
95 | ******************** Configuration BOARD_BootClockPLL100M ********************* | ||
96 | ******************************************************************************/ | ||
97 | /******************************************************************************* | ||
98 | * Definitions for BOARD_BootClockPLL100M configuration | ||
99 | ******************************************************************************/ | ||
100 | #define BOARD_BOOTCLOCKPLL100M_CORE_CLOCK 100000000U /*!< Core clock frequency: 100000000Hz */ | ||
101 | |||
102 | |||
103 | /******************************************************************************* | ||
104 | * API for BOARD_BootClockPLL100M configuration | ||
105 | ******************************************************************************/ | ||
106 | #if defined(__cplusplus) | ||
107 | extern "C" { | ||
108 | #endif /* __cplusplus*/ | ||
109 | |||
110 | /*! | ||
111 | * @brief This function executes configuration of clocks. | ||
112 | * | ||
113 | */ | ||
114 | void BOARD_BootClockPLL100M(void); | ||
115 | |||
116 | #if defined(__cplusplus) | ||
117 | } | ||
118 | #endif /* __cplusplus*/ | ||
119 | |||
120 | /******************************************************************************* | ||
121 | ******************** Configuration BOARD_BootClockPLL150M ********************* | ||
122 | ******************************************************************************/ | ||
123 | /******************************************************************************* | ||
124 | * Definitions for BOARD_BootClockPLL150M configuration | ||
125 | ******************************************************************************/ | ||
126 | #define BOARD_BOOTCLOCKPLL150M_CORE_CLOCK 150000000U /*!< Core clock frequency: 150000000Hz */ | ||
127 | |||
128 | |||
129 | /******************************************************************************* | ||
130 | * API for BOARD_BootClockPLL150M configuration | ||
131 | ******************************************************************************/ | ||
132 | #if defined(__cplusplus) | ||
133 | extern "C" { | ||
134 | #endif /* __cplusplus*/ | ||
135 | |||
136 | /*! | ||
137 | * @brief This function executes configuration of clocks. | ||
138 | * | ||
139 | */ | ||
140 | void BOARD_BootClockPLL150M(void); | ||
141 | |||
142 | #if defined(__cplusplus) | ||
143 | } | ||
144 | #endif /* __cplusplus*/ | ||
145 | |||
146 | /******************************************************************************* | ||
147 | ******************* Configuration BOARD_BootClockPLL1_150M ******************** | ||
148 | ******************************************************************************/ | ||
149 | /******************************************************************************* | ||
150 | * Definitions for BOARD_BootClockPLL1_150M configuration | ||
151 | ******************************************************************************/ | ||
152 | #define BOARD_BOOTCLOCKPLL1_150M_CORE_CLOCK 150000000U /*!< Core clock frequency: 150000000Hz */ | ||
153 | |||
154 | |||
155 | /******************************************************************************* | ||
156 | * API for BOARD_BootClockPLL1_150M configuration | ||
157 | ******************************************************************************/ | ||
158 | #if defined(__cplusplus) | ||
159 | extern "C" { | ||
160 | #endif /* __cplusplus*/ | ||
161 | |||
162 | /*! | ||
163 | * @brief This function executes configuration of clocks. | ||
164 | * | ||
165 | */ | ||
166 | void BOARD_BootClockPLL1_150M(void); | ||
167 | |||
168 | #if defined(__cplusplus) | ||
169 | } | ||
170 | #endif /* __cplusplus*/ | ||
171 | |||
172 | #endif /* _CLOCK_CONFIG_H_ */ | ||
173 | |||