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 12000000U /*!< Board xtal0 frequency in Hz */ 18 #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32K frequency in Hz */ 19 #define BOARD_BootClockRUN BOARD_BootClockFROHF48M 20 21 22 /******************************************************************************* 23 ********************* Configuration BOARD_BootClockFRO12M *********************** 24 ******************************************************************************/ 25 /******************************************************************************* 26 * Definitions for BOARD_BootClockFRO12M configuration 27 ******************************************************************************/ 28 #define BOARD_BOOTCLOCKFRO12M_CORE_CLOCK 12000000U /*!< Core clock frequency: 12000000Hz */ 29 30 /******************************************************************************* 31 * API for BOARD_BootClockFRO12M configuration 32 ******************************************************************************/ 33 #if defined(__cplusplus) 34 extern "C" { 35 #endif /* __cplusplus*/ 36 37 /*! 38 * @brief This function executes configuration of clocks. 39 * 40 */ 41 void BOARD_BootClockFRO12M(void); 42 43 #if defined(__cplusplus) 44 } 45 #endif /* __cplusplus*/ 46 47 /******************************************************************************* 48 ********************** Configuration BOARD_BootClockFROHF48M *********************** 49 ******************************************************************************/ 50 /******************************************************************************* 51 * Definitions for BOARD_BootClockFROHF48M configuration 52 ******************************************************************************/ 53 #define BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK 48000000U /*!< Core clock frequency: 48000000Hz */ 54 55 /******************************************************************************* 56 * API for BOARD_BootClockFROHF48M 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_BootClockFROHF48M(void); 67 68 #if defined(__cplusplus) 69 } 70 #endif /* __cplusplus*/ 71 72 /******************************************************************************* 73 ********************* Configuration BOARD_BootClockFROHF96M ********************** 74 ******************************************************************************/ 75 /******************************************************************************* 76 * Definitions for BOARD_BootClockFROHF96M configuration 77 ******************************************************************************/ 78 #define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK 96000000U /*!< Core clock frequency: 96000000Hz */ 79 80 /******************************************************************************* 81 * API for BOARD_BootClockFROHF96M configuration 82 ******************************************************************************/ 83 #if defined(__cplusplus) 84 extern "C" { 85 #endif /* __cplusplus*/ 86 87 /*! 88 * @brief This function executes configuration of clocks. 89 * 90 */ 91 void BOARD_BootClockFROHF96M(void); 92 93 #if defined(__cplusplus) 94 } 95 #endif /* __cplusplus*/ 96 97 #endif /* _CLOCK_CONFIG_H_ */ 98 99