]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_MPU_LPC54018_MCUXpresso/NXP_Code/board/clock_config.h
Add MPU demo project for LPC54018 board.
[freertos] / FreeRTOS / Demo / CORTEX_MPU_LPC54018_MCUXpresso / NXP_Code / board / clock_config.h
1 /*\r
2  * Copyright (c) 2015, Freescale Semiconductor, Inc.\r
3  * Copyright 2016-2017,2019 NXP\r
4  * All rights reserved.\r
5  *\r
6  * SPDX-License-Identifier: BSD-3-Clause\r
7  */\r
8 /***********************************************************************************************************************\r
9  * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file\r
10  * will be overwritten if the respective MCUXpresso Config Tools is used to update this file.\r
11  **********************************************************************************************************************/\r
12 \r
13 #ifndef _CLOCK_CONFIG_H_\r
14 #define _CLOCK_CONFIG_H_\r
15 \r
16 #include "fsl_common.h"\r
17 \r
18 /*******************************************************************************\r
19  * Definitions\r
20  ******************************************************************************/\r
21 #define BOARD_XTAL0_CLK_HZ 12000000U /*!< Board xtal0 frequency in Hz */\r
22 #define BOARD_XTAL32K_CLK_HZ 32768U  /*!< Board xtal32K frequency in Hz */\r
23 \r
24 /*******************************************************************************\r
25  ************************ BOARD_InitBootClocks function ************************\r
26  ******************************************************************************/\r
27 \r
28 #if defined(__cplusplus)\r
29 extern "C" {\r
30 #endif /* __cplusplus*/\r
31 \r
32 /*!\r
33  * @brief This function executes default configuration of clocks.\r
34  *\r
35  */\r
36 void BOARD_InitBootClocks(void);\r
37 \r
38 #if defined(__cplusplus)\r
39 }\r
40 #endif /* __cplusplus*/\r
41 \r
42 /*******************************************************************************\r
43  ******************** Configuration BOARD_BootClockFRO12M **********************\r
44  ******************************************************************************/\r
45 /*******************************************************************************\r
46  * Definitions for BOARD_BootClockFRO12M configuration\r
47  ******************************************************************************/\r
48 #define BOARD_BOOTCLOCKFRO12M_CORE_CLOCK 12000000U /*!< Core clock frequency:12000000Hz */\r
49 \r
50 /*******************************************************************************\r
51  * API for BOARD_BootClockFRO12M configuration\r
52  ******************************************************************************/\r
53 #if defined(__cplusplus)\r
54 extern "C" {\r
55 #endif /* __cplusplus*/\r
56 \r
57 /*!\r
58  * @brief This function executes configuration of clocks.\r
59  *\r
60  */\r
61 void BOARD_BootClockFRO12M(void);\r
62 \r
63 #if defined(__cplusplus)\r
64 }\r
65 #endif /* __cplusplus*/\r
66 \r
67 /*******************************************************************************\r
68  ******************* Configuration BOARD_BootClockFROHF48M *********************\r
69  ******************************************************************************/\r
70 /*******************************************************************************\r
71  * Definitions for BOARD_BootClockFROHF48M configuration\r
72  ******************************************************************************/\r
73 #define BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK 48000000U /*!< Core clock frequency:48000000Hz */\r
74 \r
75 /*******************************************************************************\r
76  * API for BOARD_BootClockFROHF48M configuration\r
77  ******************************************************************************/\r
78 #if defined(__cplusplus)\r
79 extern "C" {\r
80 #endif /* __cplusplus*/\r
81 \r
82 /*!\r
83  * @brief This function executes configuration of clocks.\r
84  *\r
85  */\r
86 void BOARD_BootClockFROHF48M(void);\r
87 \r
88 #if defined(__cplusplus)\r
89 }\r
90 #endif /* __cplusplus*/\r
91 \r
92 /*******************************************************************************\r
93  ******************* Configuration BOARD_BootClockFROHF96M *********************\r
94  ******************************************************************************/\r
95 /*******************************************************************************\r
96  * Definitions for BOARD_BootClockFROHF96M configuration\r
97  ******************************************************************************/\r
98 #define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK 96000000U /*!< Core clock frequency:96000000Hz */\r
99 \r
100 /*******************************************************************************\r
101  * API for BOARD_BootClockFROHF96M configuration\r
102  ******************************************************************************/\r
103 #if defined(__cplusplus)\r
104 extern "C" {\r
105 #endif /* __cplusplus*/\r
106 \r
107 /*!\r
108  * @brief This function executes configuration of clocks.\r
109  *\r
110  */\r
111 void BOARD_BootClockFROHF96M(void);\r
112 \r
113 #if defined(__cplusplus)\r
114 }\r
115 #endif /* __cplusplus*/\r
116 \r
117 /*******************************************************************************\r
118  ******************** Configuration BOARD_BootClockPLL180M *********************\r
119  ******************************************************************************/\r
120 /*******************************************************************************\r
121  * Definitions for BOARD_BootClockPLL180M configuration\r
122  ******************************************************************************/\r
123 #define BOARD_BOOTCLOCKPLL180M_CORE_CLOCK 180000000U /*!< Core clock frequency:180000000Hz */\r
124 \r
125 /*******************************************************************************\r
126  * API for BOARD_BootClockPLL180M configuration\r
127  ******************************************************************************/\r
128 #if defined(__cplusplus)\r
129 extern "C" {\r
130 #endif /* __cplusplus*/\r
131 \r
132 /*!\r
133  * @brief This function executes configuration of clocks.\r
134  *\r
135  */\r
136 void BOARD_BootClockPLL180M(void);\r
137 \r
138 #if defined(__cplusplus)\r
139 }\r
140 #endif /* __cplusplus*/\r
141 \r
142 #endif /* _CLOCK_CONFIG_H_ */\r