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