1 /* 2 * Copyright 2017 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 17 /******************************************************************************* 18 ************************ BOARD_InitBootClocks function ************************ 19 ******************************************************************************/ 20 21 #if defined(__cplusplus) 22 extern "C" { 23 #endif /* __cplusplus*/ 24 25 /*! 26 * @brief This function executes default configuration of clocks. 27 * 28 */ 29 void BOARD_InitBootClocks(void); 30 31 #if defined(__cplusplus) 32 } 33 #endif /* __cplusplus*/ 34 35 /******************************************************************************* 36 ********************** Configuration BOARD_BootClockRUN *********************** 37 ******************************************************************************/ 38 /******************************************************************************* 39 * Definitions for BOARD_BootClockRUN configuration 40 ******************************************************************************/ 41 #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 48000000U /*!< Core clock frequency: 48000000Hz */ 42 43 /*! @brief SCG set for BOARD_BootClockRUN configuration. 44 */ 45 extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockRUN; 46 /*! @brief System OSC set for BOARD_BootClockRUN configuration. 47 */ 48 extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockRUN; 49 /*! @brief SIRC set for BOARD_BootClockRUN configuration. 50 */ 51 extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockRUN; 52 /*! @brief FIRC set for BOARD_BootClockRUN configuration. 53 */ 54 extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockRUN; 55 /*! @brief Low Power FLL set for BOARD_BootClockRUN configuration. 56 */ 57 extern const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockRUN; 58 59 /******************************************************************************* 60 * API for BOARD_BootClockRUN 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_BootClockRUN(void); 71 72 #if defined(__cplusplus) 73 } 74 #endif /* __cplusplus*/ 75 76 /******************************************************************************* 77 ********************* Configuration BOARD_BootClockHSRUN ********************** 78 ******************************************************************************/ 79 /******************************************************************************* 80 * Definitions for BOARD_BootClockHSRUN configuration 81 ******************************************************************************/ 82 #define BOARD_BOOTCLOCKHSRUN_CORE_CLOCK 72000000U /*!< Core clock frequency: 72000000Hz */ 83 84 /*! @brief SCG set for BOARD_BootClockHSRUN configuration. 85 */ 86 extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockHSRUN; 87 /*! @brief System OSC set for BOARD_BootClockHSRUN configuration. 88 */ 89 extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockHSRUN; 90 /*! @brief SIRC set for BOARD_BootClockHSRUN configuration. 91 */ 92 extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockHSRUN; 93 /*! @brief FIRC set for BOARD_BootClockHSRUN configuration. 94 */ 95 extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockHSRUN; 96 /*! @brief Low Power FLL set for BOARD_BootClockHSRUN configuration. 97 */ 98 extern const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockHSRUN; 99 100 /******************************************************************************* 101 * API for BOARD_BootClockHSRUN configuration 102 ******************************************************************************/ 103 #if defined(__cplusplus) 104 extern "C" { 105 #endif /* __cplusplus*/ 106 107 /*! 108 * @brief This function executes configuration of clocks. 109 * 110 */ 111 void BOARD_BootClockHSRUN(void); 112 113 #if defined(__cplusplus) 114 } 115 #endif /* __cplusplus*/ 116 117 /******************************************************************************* 118 ********************* Configuration BOARD_BootClockVLPR *********************** 119 ******************************************************************************/ 120 /******************************************************************************* 121 * Definitions for BOARD_BootClockVLPR configuration 122 ******************************************************************************/ 123 #define BOARD_BOOTCLOCKVLPR_CORE_CLOCK 4000000U /*!< Core clock frequency: 4000000Hz */ 124 125 /*! @brief SCG set for BOARD_BootClockVLPR configuration. 126 */ 127 extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockVLPR; 128 /*! @brief System OSC set for BOARD_BootClockVLPR configuration. 129 */ 130 extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockVLPR; 131 /*! @brief SIRC set for BOARD_BootClockVLPR configuration. 132 */ 133 extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockVLPR; 134 /*! @brief FIRC set for BOARD_BootClockVLPR configuration. 135 */ 136 extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockVLPR; 137 /*! @brief Low Power FLL set for BOARD_BootClockVLPR configuration. 138 */ 139 extern const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockVLPR; 140 141 /******************************************************************************* 142 * API for BOARD_BootClockVLPR configuration 143 ******************************************************************************/ 144 #if defined(__cplusplus) 145 extern "C" { 146 #endif /* __cplusplus*/ 147 148 /*! 149 * @brief This function executes configuration of clocks. 150 * 151 */ 152 void BOARD_BootClockVLPR(void); 153 154 #if defined(__cplusplus) 155 } 156 #endif /* __cplusplus*/ 157 158 #endif /* _CLOCK_CONFIG_H_ */ 159 160