diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso812max/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso812max/clock_config.h | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso812max/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso812max/clock_config.h new file mode 100644 index 000000000..e32e964da --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso812max/clock_config.h | |||
@@ -0,0 +1,116 @@ | |||
1 | /* | ||
2 | * Copyright 2018,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 12000000U /*!< Board xtal0 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_BootClockIRC12M ********************** | ||
43 | ******************************************************************************/ | ||
44 | /******************************************************************************* | ||
45 | * Definitions for BOARD_BootClockIRC12M configuration | ||
46 | ******************************************************************************/ | ||
47 | #define BOARD_BOOTCLOCKIRC12M_CORE_CLOCK 12000000U /*!< Core clock frequency: 12000000Hz */ | ||
48 | |||
49 | /******************************************************************************* | ||
50 | * API for BOARD_BootClockIRC12M 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_BootClockIRC12M(void); | ||
61 | |||
62 | #if defined(__cplusplus) | ||
63 | } | ||
64 | #endif /* __cplusplus*/ | ||
65 | |||
66 | /******************************************************************************* | ||
67 | ******************** Configuration BOARD_BootClockPll12M ********************** | ||
68 | ******************************************************************************/ | ||
69 | /******************************************************************************* | ||
70 | * Definitions for BOARD_BootClockPll12M configuration | ||
71 | ******************************************************************************/ | ||
72 | #define BOARD_BOOTCLOCKPLL12M_CORE_CLOCK 12000000U /*!< Core clock frequency: 12000000Hz */ | ||
73 | |||
74 | /******************************************************************************* | ||
75 | * API for BOARD_BootClockPll12M 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_BootClockPll12M(void); | ||
86 | |||
87 | #if defined(__cplusplus) | ||
88 | } | ||
89 | #endif /* __cplusplus*/ | ||
90 | |||
91 | /******************************************************************************* | ||
92 | ******************** Configuration BOARD_BootClockPll24M ********************** | ||
93 | ******************************************************************************/ | ||
94 | /******************************************************************************* | ||
95 | * Definitions for BOARD_BootClockPll24M configuration | ||
96 | ******************************************************************************/ | ||
97 | #define BOARD_BOOTCLOCKPLL24M_CORE_CLOCK 12000000U /*!< Core clock frequency: 12000000Hz */ | ||
98 | |||
99 | /******************************************************************************* | ||
100 | * API for BOARD_BootClockPll24M 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_BootClockPll24M(void); | ||
111 | |||
112 | #if defined(__cplusplus) | ||
113 | } | ||
114 | #endif /* __cplusplus*/ | ||
115 | |||
116 | #endif /* _CLOCK_CONFIG_H_ */ | ||