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 12000000U /*!< Board xtal0 frequency in Hz */
44 #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32K frequency in Hz */
45 #define BOARD_BootClockRUN BOARD_BootClockFROHF48M
46 
47 
48 /*******************************************************************************
49  ********************* Configuration BOARD_BootClockFRO12M ***********************
50  ******************************************************************************/
51 /*******************************************************************************
52  * Definitions for BOARD_BootClockFRO12M configuration
53  ******************************************************************************/
54 #define BOARD_BOOTCLOCKFRO12M_CORE_CLOCK 12000000U /*!< Core clock frequency: 12000000Hz */
55 
56 /*******************************************************************************
57  * API for BOARD_BootClockFRO12M configuration
58  ******************************************************************************/
59 #if defined(__cplusplus)
60 extern "C" {
61 #endif /* __cplusplus*/
62 
63 /*!
64  * @brief This function executes configuration of clocks.
65  *
66  */
67 void BOARD_BootClockFRO12M(void);
68 
69 #if defined(__cplusplus)
70 }
71 #endif /* __cplusplus*/
72 
73 /*******************************************************************************
74  ********************** Configuration BOARD_BootClockFROHF48M ***********************
75  ******************************************************************************/
76 /*******************************************************************************
77  * Definitions for BOARD_BootClockFROHF48M configuration
78  ******************************************************************************/
79 #define BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK 48000000U /*!< Core clock frequency: 48000000Hz */
80 
81 /*******************************************************************************
82  * API for BOARD_BootClockFROHF48M configuration
83  ******************************************************************************/
84 #if defined(__cplusplus)
85 extern "C" {
86 #endif /* __cplusplus*/
87 
88 /*!
89  * @brief This function executes configuration of clocks.
90  *
91  */
92 void BOARD_BootClockFROHF48M(void);
93 
94 #if defined(__cplusplus)
95 }
96 #endif /* __cplusplus*/
97 
98 /*******************************************************************************
99  ********************* Configuration BOARD_BootClockFROHF96M **********************
100  ******************************************************************************/
101 /*******************************************************************************
102  * Definitions for BOARD_BootClockFROHF96M configuration
103  ******************************************************************************/
104 #define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK 96000000U /*!< Core clock frequency: 96000000Hz */
105 
106 /*******************************************************************************
107  * API for BOARD_BootClockFROHF96M configuration
108  ******************************************************************************/
109 #if defined(__cplusplus)
110 extern "C" {
111 #endif /* __cplusplus*/
112 
113 /*!
114  * @brief This function executes configuration of clocks.
115  *
116  */
117 void BOARD_BootClockFROHF96M(void);
118 
119 #if defined(__cplusplus)
120 }
121 #endif /* __cplusplus*/
122 
123 #endif /* _CLOCK_CONFIG_H_ */
124 
void BOARD_BootClockFRO12M(void)
This function executes configuration of clocks.
Definition: clock_config.c:89
void BOARD_BootClockFROHF48M(void)
This function executes configuration of clocks.
Definition: clock_config.c:127
void BOARD_BootClockFROHF96M(void)
This function executes configuration of clocks.
Definition: clock_config.c:168