diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv31f/project_template/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv31f/project_template/clock_config.h | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv31f/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv31f/project_template/clock_config.h new file mode 100644 index 000000000..21bd34df2 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv31f/project_template/clock_config.h | |||
@@ -0,0 +1,111 @@ | |||
1 | /* | ||
2 | * Copyright 2018 NXP. | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | /*********************************************************************************************************************** | ||
9 | * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file | ||
10 | * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. | ||
11 | **********************************************************************************************************************/ | ||
12 | |||
13 | #ifndef _CLOCK_CONFIG_H_ | ||
14 | #define _CLOCK_CONFIG_H_ | ||
15 | |||
16 | #include "fsl_common.h" | ||
17 | |||
18 | /******************************************************************************* | ||
19 | * Definitions | ||
20 | ******************************************************************************/ | ||
21 | #define BOARD_XTAL0_CLK_HZ 8000000U /*!< Board xtal0 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_BootClockHSRUN ********************** | ||
43 | ******************************************************************************/ | ||
44 | /******************************************************************************* | ||
45 | * Definitions for BOARD_BootClockHSRUN configuration | ||
46 | ******************************************************************************/ | ||
47 | #define BOARD_BOOTCLOCKHSRUN_CORE_CLOCK 120000000U /*!< Core clock frequency: 120000000Hz */ | ||
48 | |||
49 | /*! @brief MCG set for BOARD_BootClockHSRUN configuration. | ||
50 | */ | ||
51 | extern const mcg_config_t mcgConfig_BOARD_BootClockHSRUN; | ||
52 | /*! @brief SIM module set for BOARD_BootClockHSRUN configuration. | ||
53 | */ | ||
54 | extern const sim_clock_config_t simConfig_BOARD_BootClockHSRUN; | ||
55 | /*! @brief OSC set for BOARD_BootClockHSRUN configuration. | ||
56 | */ | ||
57 | extern const osc_config_t oscConfig_BOARD_BootClockHSRUN; | ||
58 | |||
59 | /******************************************************************************* | ||
60 | * API for BOARD_BootClockHSRUN configuration | ||
61 | ******************************************************************************/ | ||
62 | #if defined(__cplusplus) | ||
63 | extern "C" { | ||
64 | #endif /* __cplusplus*/ | ||
65 | |||
66 | /*! | ||
67 | * @brief This function executes configuration of clocks. | ||
68 | * | ||
69 | */ | ||
70 | void BOARD_BootClockHSRUN(void); | ||
71 | |||
72 | #if defined(__cplusplus) | ||
73 | } | ||
74 | #endif /* __cplusplus*/ | ||
75 | |||
76 | /******************************************************************************* | ||
77 | ********************* Configuration BOARD_BootClockVLPR *********************** | ||
78 | ******************************************************************************/ | ||
79 | /******************************************************************************* | ||
80 | * Definitions for BOARD_BootClockVLPR configuration | ||
81 | ******************************************************************************/ | ||
82 | #define BOARD_BOOTCLOCKVLPR_CORE_CLOCK 4000000U /*!< Core clock frequency: 4000000Hz */ | ||
83 | |||
84 | /*! @brief MCG set for BOARD_BootClockVLPR configuration. | ||
85 | */ | ||
86 | extern const mcg_config_t mcgConfig_BOARD_BootClockVLPR; | ||
87 | /*! @brief SIM module set for BOARD_BootClockVLPR configuration. | ||
88 | */ | ||
89 | extern const sim_clock_config_t simConfig_BOARD_BootClockVLPR; | ||
90 | /*! @brief OSC set for BOARD_BootClockVLPR configuration. | ||
91 | */ | ||
92 | extern const osc_config_t oscConfig_BOARD_BootClockVLPR; | ||
93 | |||
94 | /******************************************************************************* | ||
95 | * API for BOARD_BootClockVLPR configuration | ||
96 | ******************************************************************************/ | ||
97 | #if defined(__cplusplus) | ||
98 | extern "C" { | ||
99 | #endif /* __cplusplus*/ | ||
100 | |||
101 | /*! | ||
102 | * @brief This function executes configuration of clocks. | ||
103 | * | ||
104 | */ | ||
105 | void BOARD_BootClockVLPR(void); | ||
106 | |||
107 | #if defined(__cplusplus) | ||
108 | } | ||
109 | #endif /* __cplusplus*/ | ||
110 | |||
111 | #endif /* _CLOCK_CONFIG_H_ */ | ||