diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso845max/project_template/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso845max/project_template/clock_config.h | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso845max/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso845max/project_template/clock_config.h new file mode 100644 index 000000000..034b82cfd --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso845max/project_template/clock_config.h | |||
@@ -0,0 +1,137 @@ | |||
1 | /* | ||
2 | * Copyright 2018 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 12000000U /*!< Board xtal0 frequency in Hz */ | ||
17 | #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32K frequency in Hz */ | ||
18 | |||
19 | /******************************************************************************* | ||
20 | ************************ BOARD_InitBootClocks function ************************ | ||
21 | ******************************************************************************/ | ||
22 | |||
23 | #if defined(__cplusplus) | ||
24 | extern "C" { | ||
25 | #endif /* __cplusplus*/ | ||
26 | |||
27 | /*! | ||
28 | * @brief This function executes default configuration of clocks. | ||
29 | * | ||
30 | */ | ||
31 | void BOARD_InitBootClocks(void); | ||
32 | |||
33 | #if defined(__cplusplus) | ||
34 | } | ||
35 | #endif /* __cplusplus*/ | ||
36 | |||
37 | /******************************************************************************* | ||
38 | ******************** Configuration BOARD_BootClockFRO18M ********************** | ||
39 | ******************************************************************************/ | ||
40 | /******************************************************************************* | ||
41 | * Definitions for BOARD_BootClockFRO18M configuration | ||
42 | ******************************************************************************/ | ||
43 | #define BOARD_BOOTCLOCKFRO18M_CORE_CLOCK 18000000U /*!< Core clock frequency: 18000000Hz */ | ||
44 | |||
45 | /******************************************************************************* | ||
46 | * API for BOARD_BootClockFRO18M configuration | ||
47 | ******************************************************************************/ | ||
48 | #if defined(__cplusplus) | ||
49 | extern "C" { | ||
50 | #endif /* __cplusplus*/ | ||
51 | |||
52 | /*! | ||
53 | * @brief This function executes configuration of clocks. | ||
54 | * | ||
55 | */ | ||
56 | void BOARD_BootClockFRO18M(void); | ||
57 | |||
58 | #if defined(__cplusplus) | ||
59 | } | ||
60 | #endif /* __cplusplus*/ | ||
61 | |||
62 | /******************************************************************************* | ||
63 | ******************** Configuration BOARD_BootClockFRO24M ********************** | ||
64 | ******************************************************************************/ | ||
65 | /******************************************************************************* | ||
66 | * Definitions for BOARD_BootClockFRO24M configuration | ||
67 | ******************************************************************************/ | ||
68 | #define BOARD_BOOTCLOCKFRO24M_CORE_CLOCK 24000000U /*!< Core clock frequency: 24000000Hz */ | ||
69 | |||
70 | /******************************************************************************* | ||
71 | * API for BOARD_BootClockFRO24M configuration | ||
72 | ******************************************************************************/ | ||
73 | #if defined(__cplusplus) | ||
74 | extern "C" { | ||
75 | #endif /* __cplusplus*/ | ||
76 | |||
77 | /*! | ||
78 | * @brief This function executes configuration of clocks. | ||
79 | * | ||
80 | */ | ||
81 | void BOARD_BootClockFRO24M(void); | ||
82 | |||
83 | #if defined(__cplusplus) | ||
84 | } | ||
85 | #endif /* __cplusplus*/ | ||
86 | |||
87 | /******************************************************************************* | ||
88 | ******************** Configuration BOARD_BootClockFRO30M ********************** | ||
89 | ******************************************************************************/ | ||
90 | /******************************************************************************* | ||
91 | * Definitions for BOARD_BootClockFRO30M configuration | ||
92 | ******************************************************************************/ | ||
93 | #define BOARD_BOOTCLOCKFRO30M_CORE_CLOCK 30000000U /*!< Core clock frequency: 30000000Hz */ | ||
94 | |||
95 | /******************************************************************************* | ||
96 | * API for BOARD_BootClockFRO30M configuration | ||
97 | ******************************************************************************/ | ||
98 | #if defined(__cplusplus) | ||
99 | extern "C" { | ||
100 | #endif /* __cplusplus*/ | ||
101 | |||
102 | /*! | ||
103 | * @brief This function executes configuration of clocks. | ||
104 | * | ||
105 | */ | ||
106 | void BOARD_BootClockFRO30M(void); | ||
107 | |||
108 | #if defined(__cplusplus) | ||
109 | } | ||
110 | #endif /* __cplusplus*/ | ||
111 | |||
112 | /******************************************************************************* | ||
113 | ******************** Configuration BOARD_BootClockPll24M ********************** | ||
114 | ******************************************************************************/ | ||
115 | /******************************************************************************* | ||
116 | * Definitions for BOARD_BootClockPll24M configuration | ||
117 | ******************************************************************************/ | ||
118 | #define BOARD_BOOTCLOCKPLL24M_CORE_CLOCK 24000000U /*!< Core clock frequency: 24000000Hz */ | ||
119 | |||
120 | /******************************************************************************* | ||
121 | * API for BOARD_BootClockPll24M configuration | ||
122 | ******************************************************************************/ | ||
123 | #if defined(__cplusplus) | ||
124 | extern "C" { | ||
125 | #endif /* __cplusplus*/ | ||
126 | |||
127 | /*! | ||
128 | * @brief This function executes configuration of clocks. | ||
129 | * | ||
130 | */ | ||
131 | void BOARD_BootClockPll24M(void); | ||
132 | |||
133 | #if defined(__cplusplus) | ||
134 | } | ||
135 | #endif /* __cplusplus*/ | ||
136 | |||
137 | #endif /* _CLOCK_CONFIG_H_ */ | ||