diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv11z/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv11z/clock_config.h | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv11z/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv11z/clock_config.h new file mode 100644 index 000000000..d716b86c2 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmkv11z/clock_config.h | |||
@@ -0,0 +1,107 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2015, Freescale Semiconductor, Inc. | ||
3 | * Copyright 2016-2017 NXP | ||
4 | * All rights reserved. | ||
5 | * | ||
6 | * SPDX-License-Identifier: BSD-3-Clause | ||
7 | */ | ||
8 | |||
9 | #ifndef _CLOCK_CONFIG_H_ | ||
10 | #define _CLOCK_CONFIG_H_ | ||
11 | |||
12 | #include "fsl_common.h" | ||
13 | |||
14 | /******************************************************************************* | ||
15 | * Definitions | ||
16 | ******************************************************************************/ | ||
17 | #define BOARD_XTAL0_CLK_HZ 10000000U /*!< Board xtal0 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_BootClockRUN *********************** | ||
39 | ******************************************************************************/ | ||
40 | /******************************************************************************* | ||
41 | * Definitions for BOARD_BootClockRUN configuration | ||
42 | ******************************************************************************/ | ||
43 | #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 75000000U /*!< Core clock frequency: 75000000Hz */ | ||
44 | |||
45 | /*! @brief MCG set for BOARD_BootClockRUN configuration. | ||
46 | */ | ||
47 | extern const mcg_config_t mcgConfig_BOARD_BootClockRUN; | ||
48 | /*! @brief SIM module set for BOARD_BootClockRUN configuration. | ||
49 | */ | ||
50 | extern const sim_clock_config_t simConfig_BOARD_BootClockRUN; | ||
51 | /*! @brief OSC set for BOARD_BootClockRUN configuration. | ||
52 | */ | ||
53 | extern const osc_config_t oscConfig_BOARD_BootClockRUN; | ||
54 | |||
55 | /******************************************************************************* | ||
56 | * API for BOARD_BootClockRUN configuration | ||
57 | ******************************************************************************/ | ||
58 | #if defined(__cplusplus) | ||
59 | extern "C" { | ||
60 | #endif /* __cplusplus*/ | ||
61 | |||
62 | /*! | ||
63 | * @brief This function executes configuration of clocks. | ||
64 | * | ||
65 | */ | ||
66 | void BOARD_BootClockRUN(void); | ||
67 | |||
68 | #if defined(__cplusplus) | ||
69 | } | ||
70 | #endif /* __cplusplus*/ | ||
71 | |||
72 | /******************************************************************************* | ||
73 | ********************* Configuration BOARD_BootClockVLPR *********************** | ||
74 | ******************************************************************************/ | ||
75 | /******************************************************************************* | ||
76 | * Definitions for BOARD_BootClockVLPR configuration | ||
77 | ******************************************************************************/ | ||
78 | #define BOARD_BOOTCLOCKVLPR_CORE_CLOCK 4000000U /*!< Core clock frequency: 4000000Hz */ | ||
79 | |||
80 | /*! @brief MCG set for BOARD_BootClockVLPR configuration. | ||
81 | */ | ||
82 | extern const mcg_config_t mcgConfig_BOARD_BootClockVLPR; | ||
83 | /*! @brief SIM module set for BOARD_BootClockVLPR configuration. | ||
84 | */ | ||
85 | extern const sim_clock_config_t simConfig_BOARD_BootClockVLPR; | ||
86 | /*! @brief OSC set for BOARD_BootClockVLPR configuration. | ||
87 | */ | ||
88 | extern const osc_config_t oscConfig_BOARD_BootClockVLPR; | ||
89 | |||
90 | /******************************************************************************* | ||
91 | * API for BOARD_BootClockVLPR configuration | ||
92 | ******************************************************************************/ | ||
93 | #if defined(__cplusplus) | ||
94 | extern "C" { | ||
95 | #endif /* __cplusplus*/ | ||
96 | |||
97 | /*! | ||
98 | * @brief This function executes configuration of clocks. | ||
99 | * | ||
100 | */ | ||
101 | void BOARD_BootClockVLPR(void); | ||
102 | |||
103 | #if defined(__cplusplus) | ||
104 | } | ||
105 | #endif /* __cplusplus*/ | ||
106 | |||
107 | #endif /* _CLOCK_CONFIG_H_ */ | ||