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