diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/project_template/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/project_template/clock_config.h | 168 |
1 files changed, 168 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/project_template/clock_config.h new file mode 100644 index 000000000..0ccead1ce --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/project_template/clock_config.h | |||
@@ -0,0 +1,168 @@ | |||
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 | * API for BOARD_BootClockFRO12M configuration | ||
52 | ******************************************************************************/ | ||
53 | #if defined(__cplusplus) | ||
54 | extern "C" { | ||
55 | #endif /* __cplusplus*/ | ||
56 | |||
57 | /*! | ||
58 | * @brief This function executes configuration of clocks. | ||
59 | * | ||
60 | */ | ||
61 | void BOARD_BootClockFRO12M(void); | ||
62 | |||
63 | #if defined(__cplusplus) | ||
64 | } | ||
65 | #endif /* __cplusplus*/ | ||
66 | |||
67 | /******************************************************************************* | ||
68 | ******************* Configuration BOARD_BootClockFROHF96M ********************* | ||
69 | ******************************************************************************/ | ||
70 | /******************************************************************************* | ||
71 | * Definitions for BOARD_BootClockFROHF96M configuration | ||
72 | ******************************************************************************/ | ||
73 | #define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK 96000000U /*!< Core clock frequency: 96000000Hz */ | ||
74 | |||
75 | /******************************************************************************* | ||
76 | * API for BOARD_BootClockFROHF96M configuration | ||
77 | ******************************************************************************/ | ||
78 | #if defined(__cplusplus) | ||
79 | extern "C" { | ||
80 | #endif /* __cplusplus*/ | ||
81 | |||
82 | /*! | ||
83 | * @brief This function executes configuration of clocks. | ||
84 | * | ||
85 | */ | ||
86 | void BOARD_BootClockFROHF96M(void); | ||
87 | |||
88 | #if defined(__cplusplus) | ||
89 | } | ||
90 | #endif /* __cplusplus*/ | ||
91 | |||
92 | /******************************************************************************* | ||
93 | ******************** Configuration BOARD_BootClockPLL100M ********************* | ||
94 | ******************************************************************************/ | ||
95 | /******************************************************************************* | ||
96 | * Definitions for BOARD_BootClockPLL100M configuration | ||
97 | ******************************************************************************/ | ||
98 | #define BOARD_BOOTCLOCKPLL100M_CORE_CLOCK 100000000U /*!< Core clock frequency: 100000000Hz */ | ||
99 | |||
100 | /******************************************************************************* | ||
101 | * API for BOARD_BootClockPLL100M configuration | ||
102 | ******************************************************************************/ | ||
103 | #if defined(__cplusplus) | ||
104 | extern "C" { | ||
105 | #endif /* __cplusplus*/ | ||
106 | |||
107 | /*! | ||
108 | * @brief This function executes configuration of clocks. | ||
109 | * | ||
110 | */ | ||
111 | void BOARD_BootClockPLL100M(void); | ||
112 | |||
113 | #if defined(__cplusplus) | ||
114 | } | ||
115 | #endif /* __cplusplus*/ | ||
116 | |||
117 | /******************************************************************************* | ||
118 | ******************** Configuration BOARD_BootClockPLL150M ********************* | ||
119 | ******************************************************************************/ | ||
120 | /******************************************************************************* | ||
121 | * Definitions for BOARD_BootClockPLL150M configuration | ||
122 | ******************************************************************************/ | ||
123 | #define BOARD_BOOTCLOCKPLL150M_CORE_CLOCK 150000000U /*!< Core clock frequency: 150000000Hz */ | ||
124 | |||
125 | /******************************************************************************* | ||
126 | * API for BOARD_BootClockPLL150M configuration | ||
127 | ******************************************************************************/ | ||
128 | #if defined(__cplusplus) | ||
129 | extern "C" { | ||
130 | #endif /* __cplusplus*/ | ||
131 | |||
132 | /*! | ||
133 | * @brief This function executes configuration of clocks. | ||
134 | * | ||
135 | */ | ||
136 | void BOARD_BootClockPLL150M(void); | ||
137 | |||
138 | #if defined(__cplusplus) | ||
139 | } | ||
140 | #endif /* __cplusplus*/ | ||
141 | |||
142 | /******************************************************************************* | ||
143 | ******************* Configuration BOARD_BootClockPLL1_150M ******************** | ||
144 | ******************************************************************************/ | ||
145 | /******************************************************************************* | ||
146 | * Definitions for BOARD_BootClockPLL1_150M configuration | ||
147 | ******************************************************************************/ | ||
148 | #define BOARD_BOOTCLOCKPLL1_150M_CORE_CLOCK 150000000U /*!< Core clock frequency: 150000000Hz */ | ||
149 | |||
150 | |||
151 | /******************************************************************************* | ||
152 | * API for BOARD_BootClockPLL1_150M configuration | ||
153 | ******************************************************************************/ | ||
154 | #if defined(__cplusplus) | ||
155 | extern "C" { | ||
156 | #endif /* __cplusplus*/ | ||
157 | |||
158 | /*! | ||
159 | * @brief This function executes configuration of clocks. | ||
160 | * | ||
161 | */ | ||
162 | void BOARD_BootClockPLL1_150M(void); | ||
163 | |||
164 | #if defined(__cplusplus) | ||
165 | } | ||
166 | #endif /* __cplusplus*/ | ||
167 | |||
168 | #endif /* _CLOCK_CONFIG_H_ */ | ||