diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso804/project_template/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso804/project_template/clock_config.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso804/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso804/project_template/clock_config.h new file mode 100644 index 000000000..9aea1c95c --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso804/project_template/clock_config.h | |||
@@ -0,0 +1,112 @@ | |||
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 9000000U /*!< Core clock frequency: 9000000Hz */ | ||
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 12000000U /*!< Core clock frequency: 12000000Hz */ | ||
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 15000000U /*!< Core clock frequency: 15000000Hz */ | ||
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 | #endif /* _CLOCK_CONFIG_H_ */ | ||