ISSDK  1.7
IoT Sensing Software Development Kit
clock_config.h
Go to the documentation of this file.
1 /*
2  * The Clear BSD License
3  * Copyright (c) 2015, Freescale Semiconductor, Inc.
4  * Copyright 2016-2017 NXP
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without modification,
8  * are permitted (subject to the limitations in the disclaimer below) provided
9  * that the following conditions are met:
10  *
11  * o Redistributions of source code must retain the above copyright notice, this list
12  * of conditions and the following disclaimer.
13  *
14  * o Redistributions in binary form must reproduce the above copyright notice, this
15  * list of conditions and the following disclaimer in the documentation and/or
16  * other materials provided with the distribution.
17  *
18  * o Neither the name of the copyright holder nor the names of its
19  * contributors may be used to endorse or promote products derived from this
20  * software without specific prior written permission.
21  *
22  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 
35 #ifndef _CLOCK_CONFIG_H_
36 #define _CLOCK_CONFIG_H_
37 
38 #include "fsl_common.h"
39 
40 /*******************************************************************************
41  * Definitions
42  ******************************************************************************/
43 #define BOARD_XTAL0_CLK_HZ 50000000U /*!< Board xtal0 frequency in Hz */
44 
45 /*******************************************************************************
46  ********************** Configuration BOARD_BootClockRUN ***********************
47  ******************************************************************************/
48 /*******************************************************************************
49  * Definitions for BOARD_BootClockRUN configuration
50  ******************************************************************************/
51 #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 120000000U /*!< Core clock frequency: 120000000Hz */
52 
53 /*! @brief MCG set for BOARD_BootClockRUN configuration.
54  */
55 extern const mcg_config_t mcgConfig_BOARD_BootClockRUN;
56 /*! @brief SIM module set for BOARD_BootClockRUN configuration.
57  */
58 extern const sim_clock_config_t simConfig_BOARD_BootClockRUN;
59 /*! @brief OSC set for BOARD_BootClockRUN configuration.
60  */
61 extern const osc_config_t oscConfig_BOARD_BootClockRUN;
62 
63 /*******************************************************************************
64  * API for BOARD_BootClockRUN configuration
65  ******************************************************************************/
66 #if defined(__cplusplus)
67 extern "C" {
68 #endif /* __cplusplus*/
69 
70 /*!
71  * @brief This function executes configuration of clocks.
72  *
73  */
74 void BOARD_BootClockRUN(void);
75 
76 #if defined(__cplusplus)
77 }
78 #endif /* __cplusplus*/
79 
80 /*******************************************************************************
81  ********************* Configuration BOARD_BootClockVLPR ***********************
82  ******************************************************************************/
83 /*******************************************************************************
84  * Definitions for BOARD_BootClockVLPR configuration
85  ******************************************************************************/
86 #define BOARD_BOOTCLOCKVLPR_CORE_CLOCK 4000000U /*!< Core clock frequency: 4000000Hz */
87 
88 /*! @brief MCG set for BOARD_BootClockVLPR configuration.
89  */
90 extern const mcg_config_t mcgConfig_BOARD_BootClockVLPR;
91 /*! @brief SIM module set for BOARD_BootClockVLPR configuration.
92  */
93 extern const sim_clock_config_t simConfig_BOARD_BootClockVLPR;
94 /*! @brief OSC set for BOARD_BootClockVLPR configuration.
95  */
96 extern const osc_config_t oscConfig_BOARD_BootClockVLPR;
97 
98 /*******************************************************************************
99  * API for BOARD_BootClockVLPR configuration
100  ******************************************************************************/
101 #if defined(__cplusplus)
102 extern "C" {
103 #endif /* __cplusplus*/
104 
105 /*!
106  * @brief This function executes configuration of clocks.
107  *
108  */
109 void BOARD_BootClockVLPR(void);
110 
111 #if defined(__cplusplus)
112 }
113 #endif /* __cplusplus*/
114 
115 #endif /* _CLOCK_CONFIG_H_ */
116 
const osc_config_t oscConfig_BOARD_BootClockRUN
OSC set for BOARD_BootClockRUN configuration.
Definition: clock_config.c:180
const osc_config_t oscConfig_BOARD_BootClockVLPR
OSC set for BOARD_BootClockVLPR configuration.
Definition: clock_config.c:278
const sim_clock_config_t simConfig_BOARD_BootClockRUN
SIM module set for BOARD_BootClockRUN configuration.
Definition: clock_config.c:174
void BOARD_BootClockVLPR(void)
This function executes configuration of clocks.
Definition: clock_config.c:292
const mcg_config_t mcgConfig_BOARD_BootClockRUN
MCG set for BOARD_BootClockRUN configuration.
Definition: clock_config.c:157
const sim_clock_config_t simConfig_BOARD_BootClockVLPR
SIM module set for BOARD_BootClockVLPR configuration.
Definition: clock_config.c:272
const mcg_config_t mcgConfig_BOARD_BootClockVLPR
MCG set for BOARD_BootClockVLPR configuration.
Definition: clock_config.c:255
void BOARD_BootClockRUN(void)
This function executes configuration of clocks.
Definition: clock_config.c:194