1 /* 2 * Copyright 2021 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 #define BOARD_XTAL0_CLK_HZ 8000000U /*!< Board xtal0 frequency in Hz */ 17 18 /******************************************************************************* 19 ************************ BOARD_InitBootClocks function ************************ 20 ******************************************************************************/ 21 22 #if defined(__cplusplus) 23 extern "C" { 24 #endif /* __cplusplus*/ 25 26 /*! 27 * @brief This function executes default configuration of clocks. 28 * 29 */ 30 void BOARD_InitBootClocks(void); 31 32 #if defined(__cplusplus) 33 } 34 #endif /* __cplusplus*/ 35 36 /******************************************************************************* 37 ********************** Configuration BOARD_BootClockRUN *********************** 38 ******************************************************************************/ 39 /******************************************************************************* 40 * Definitions for BOARD_BootClockRUN configuration 41 ******************************************************************************/ 42 #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 71991296U /*!< Core clock frequency: 71991296Hz */ 43 44 /*! @brief MCG set for BOARD_BootClockRUN configuration. 45 */ 46 extern const mcg_config_t mcgConfig_BOARD_BootClockRUN; 47 /*! @brief SIM module set for BOARD_BootClockRUN configuration. 48 */ 49 extern const sim_clock_config_t simConfig_BOARD_BootClockRUN; 50 /*! @brief OSC set for BOARD_BootClockRUN configuration. 51 */ 52 extern const osc_config_t oscConfig_BOARD_BootClockRUN; 53 54 /******************************************************************************* 55 * API for BOARD_BootClockRUN configuration 56 ******************************************************************************/ 57 #if defined(__cplusplus) 58 extern "C" { 59 #endif /* __cplusplus*/ 60 61 /*! 62 * @brief This function executes configuration of clocks. 63 * 64 */ 65 void BOARD_BootClockRUN(void); 66 67 #if defined(__cplusplus) 68 } 69 #endif /* __cplusplus*/ 70 71 /******************************************************************************* 72 ********************* Configuration BOARD_BootClockVLPR *********************** 73 ******************************************************************************/ 74 /******************************************************************************* 75 * Definitions for BOARD_BootClockVLPR configuration 76 ******************************************************************************/ 77 #define BOARD_BOOTCLOCKVLPR_CORE_CLOCK 4000000U /*!< Core clock frequency: 4000000Hz */ 78 79 /*! @brief MCG set for BOARD_BootClockVLPR configuration. 80 */ 81 extern const mcg_config_t mcgConfig_BOARD_BootClockVLPR; 82 /*! @brief SIM module set for BOARD_BootClockVLPR configuration. 83 */ 84 extern const sim_clock_config_t simConfig_BOARD_BootClockVLPR; 85 /*! @brief OSC set for BOARD_BootClockVLPR configuration. 86 */ 87 extern const osc_config_t oscConfig_BOARD_BootClockVLPR; 88 89 /******************************************************************************* 90 * API for BOARD_BootClockVLPR configuration 91 ******************************************************************************/ 92 #if defined(__cplusplus) 93 extern "C" { 94 #endif /* __cplusplus*/ 95 96 /*! 97 * @brief This function executes configuration of clocks. 98 * 99 */ 100 void BOARD_BootClockVLPR(void); 101 102 #if defined(__cplusplus) 103 } 104 #endif /* __cplusplus*/ 105 106 #endif /* _CLOCK_CONFIG_H_ */ 107 108