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) 2016, 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 8000000U /*!< 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 72000000U /*!< Core clock frequency: 72000000Hz */
52 
53 /*! @brief SCG set for BOARD_BootClockRUN configuration.
54  */
55 extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockRUN;
56 /*! @brief System OSC set for BOARD_BootClockRUN configuration.
57  */
58 extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockRUN;
59 /*! @brief SIRC set for BOARD_BootClockRUN configuration.
60  */
61 extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockRUN;
62 /*! @brief FIRC set for BOARD_BootClockRUN configuration.
63  */
64 extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockRUN;
65 /*! @brief Low Power FLL set for BOARD_BootClockRUN configuration.
66  */
67 extern const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockRUN;
68 
69 /*******************************************************************************
70  * API for BOARD_BootClockRUN configuration
71  ******************************************************************************/
72 #if defined(__cplusplus)
73 extern "C" {
74 #endif /* __cplusplus*/
75 
76 /*!
77  * @brief This function executes configuration of clocks.
78  *
79  */
80 void BOARD_BootClockRUN(void);
81 
82 #if defined(__cplusplus)
83 }
84 #endif /* __cplusplus*/
85 
86 /*******************************************************************************
87  ********************* Configuration BOARD_BootClockVLPR ***********************
88  ******************************************************************************/
89 /*******************************************************************************
90  * Definitions for BOARD_BootClockVLPR configuration
91  ******************************************************************************/
92 #define BOARD_BOOTCLOCKVLPR_CORE_CLOCK 4000000U /*!< Core clock frequency: 4000000Hz */
93 
94 /*! @brief SCG set for BOARD_BootClockVLPR configuration.
95  */
96 extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockVLPR;
97 /*! @brief System OSC set for BOARD_BootClockVLPR configuration.
98  */
99 extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockVLPR;
100 /*! @brief SIRC set for BOARD_BootClockVLPR configuration.
101  */
102 extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockVLPR;
103 /*! @brief FIRC set for BOARD_BootClockVLPR configuration.
104  */
105 extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockVLPR;
106 /*! @brief Low Power FLL set for BOARD_BootClockVLPR configuration.
107  */
108 extern const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockVLPR;
109 
110 /*******************************************************************************
111  * API for BOARD_BootClockVLPR configuration
112  ******************************************************************************/
113 #if defined(__cplusplus)
114 extern "C" {
115 #endif /* __cplusplus*/
116 
117 /*!
118  * @brief This function executes configuration of clocks.
119  *
120  */
121 void BOARD_BootClockVLPR(void);
122 
123 #if defined(__cplusplus)
124 }
125 #endif /* __cplusplus*/
126 
127 #endif /* _CLOCK_CONFIG_H_ */
128 
const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockVLPR
SIRC set for BOARD_BootClockVLPR configuration.
Definition: clock_config.c:285
const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockVLPR
System OSC set for BOARD_BootClockVLPR configuration.
Definition: clock_config.c:277
void BOARD_BootClockVLPR(void)
This function executes configuration of clocks.
Definition: clock_config.c:292
const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockRUN
System OSC set for BOARD_BootClockRUN configuration.
Definition: clock_config.c:173
const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockVLPR
Low Power FLL set for BOARD_BootClockVLPR configuration.
const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockRUN
Low Power FLL set for BOARD_BootClockRUN configuration.
const scg_firc_config_t g_scgFircConfigBOARD_BootClockRUN
FIRC set for BOARD_BootClockRUN configuration.
const scg_firc_config_t g_scgFircConfigBOARD_BootClockVLPR
FIRC set for BOARD_BootClockVLPR configuration.
const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockVLPR
SCG set for BOARD_BootClockVLPR configuration.
Definition: clock_config.c:271
const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockRUN
SCG set for BOARD_BootClockRUN configuration.
Definition: clock_config.c:167
const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockRUN
SIRC set for BOARD_BootClockRUN configuration.
Definition: clock_config.c:181
void BOARD_BootClockRUN(void)
This function executes configuration of clocks.
Definition: clock_config.c:194