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