diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/K32L2A41A/project_template/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/K32L2A41A/project_template/clock_config.h | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/K32L2A41A/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/devices/K32L2A41A/project_template/clock_config.h new file mode 100644 index 000000000..fd176282f --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/K32L2A41A/project_template/clock_config.h | |||
@@ -0,0 +1,123 @@ | |||
1 | /* | ||
2 | * Copyright 2019 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 32768U /*!< 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 96000000U /*!< Core clock frequency: 96000000Hz */ | ||
48 | |||
49 | /*! @brief SCG set for BOARD_BootClockHSRUN configuration. | ||
50 | */ | ||
51 | extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockHSRUN; | ||
52 | /*! @brief System OSC set for BOARD_BootClockHSRUN configuration. | ||
53 | */ | ||
54 | extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockHSRUN; | ||
55 | /*! @brief SIRC set for BOARD_BootClockHSRUN configuration. | ||
56 | */ | ||
57 | extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockHSRUN; | ||
58 | /*! @brief FIRC set for BOARD_BootClockHSRUN configuration. | ||
59 | */ | ||
60 | extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockHSRUN; | ||
61 | extern const scg_spll_config_t g_scgSysPllConfigBOARD_BootClockHSRUN; | ||
62 | /*! @brief Low Power FLL set for BOARD_BootClockHSRUN configuration. | ||
63 | */ | ||
64 | |||
65 | /******************************************************************************* | ||
66 | * API for BOARD_BootClockHSRUN configuration | ||
67 | ******************************************************************************/ | ||
68 | #if defined(__cplusplus) | ||
69 | extern "C" { | ||
70 | #endif /* __cplusplus*/ | ||
71 | |||
72 | /*! | ||
73 | * @brief This function executes configuration of clocks. | ||
74 | * | ||
75 | */ | ||
76 | void BOARD_BootClockHSRUN(void); | ||
77 | |||
78 | #if defined(__cplusplus) | ||
79 | } | ||
80 | #endif /* __cplusplus*/ | ||
81 | |||
82 | /******************************************************************************* | ||
83 | ********************* Configuration BOARD_BootClockVLPR *********************** | ||
84 | ******************************************************************************/ | ||
85 | /******************************************************************************* | ||
86 | * Definitions for BOARD_BootClockVLPR configuration | ||
87 | ******************************************************************************/ | ||
88 | #define BOARD_BOOTCLOCKVLPR_CORE_CLOCK 8000000U /*!< Core clock frequency: 8000000Hz */ | ||
89 | |||
90 | /*! @brief SCG set for BOARD_BootClockVLPR configuration. | ||
91 | */ | ||
92 | extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockVLPR; | ||
93 | /*! @brief System OSC set for BOARD_BootClockVLPR configuration. | ||
94 | */ | ||
95 | extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockVLPR; | ||
96 | /*! @brief SIRC set for BOARD_BootClockVLPR configuration. | ||
97 | */ | ||
98 | extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockVLPR; | ||
99 | /*! @brief FIRC set for BOARD_BootClockVLPR configuration. | ||
100 | */ | ||
101 | extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockVLPR; | ||
102 | extern const scg_spll_config_t g_scgSysPllConfigBOARD_BootClockVLPR; | ||
103 | /*! @brief Low Power FLL set for BOARD_BootClockVLPR configuration. | ||
104 | */ | ||
105 | |||
106 | /******************************************************************************* | ||
107 | * API for BOARD_BootClockVLPR configuration | ||
108 | ******************************************************************************/ | ||
109 | #if defined(__cplusplus) | ||
110 | extern "C" { | ||
111 | #endif /* __cplusplus*/ | ||
112 | |||
113 | /*! | ||
114 | * @brief This function executes configuration of clocks. | ||
115 | * | ||
116 | */ | ||
117 | void BOARD_BootClockVLPR(void); | ||
118 | |||
119 | #if defined(__cplusplus) | ||
120 | } | ||
121 | #endif /* __cplusplus*/ | ||
122 | |||
123 | #endif /* _CLOCK_CONFIG_H_ */ | ||