mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/drivers/clock/fsl_clock_manager.h@324:406fd2029f23, 2014-09-18 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Sep 18 14:00:17 2014 +0100
- Revision:
- 324:406fd2029f23
- Parent:
- 149:1fb5f62b92bd
Synchronized with git revision a73f28e6fbca9559fbed2726410eeb4c0534a4a5
Full URL: https://github.com/mbedmicro/mbed/commit/a73f28e6fbca9559fbed2726410eeb4c0534a4a5/
Extended #476, which does not break ethernet for K64F
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 146:f64d43ff0c18 | 1 | /* |
mbed_official | 146:f64d43ff0c18 | 2 | * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc. |
mbed_official | 146:f64d43ff0c18 | 3 | * All rights reserved. |
mbed_official | 146:f64d43ff0c18 | 4 | * |
mbed_official | 146:f64d43ff0c18 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 146:f64d43ff0c18 | 6 | * are permitted provided that the following conditions are met: |
mbed_official | 146:f64d43ff0c18 | 7 | * |
mbed_official | 146:f64d43ff0c18 | 8 | * o Redistributions of source code must retain the above copyright notice, this list |
mbed_official | 146:f64d43ff0c18 | 9 | * of conditions and the following disclaimer. |
mbed_official | 146:f64d43ff0c18 | 10 | * |
mbed_official | 146:f64d43ff0c18 | 11 | * o Redistributions in binary form must reproduce the above copyright notice, this |
mbed_official | 146:f64d43ff0c18 | 12 | * list of conditions and the following disclaimer in the documentation and/or |
mbed_official | 146:f64d43ff0c18 | 13 | * other materials provided with the distribution. |
mbed_official | 146:f64d43ff0c18 | 14 | * |
mbed_official | 146:f64d43ff0c18 | 15 | * o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
mbed_official | 146:f64d43ff0c18 | 16 | * contributors may be used to endorse or promote products derived from this |
mbed_official | 146:f64d43ff0c18 | 17 | * software without specific prior written permission. |
mbed_official | 146:f64d43ff0c18 | 18 | * |
mbed_official | 146:f64d43ff0c18 | 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
mbed_official | 146:f64d43ff0c18 | 20 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
mbed_official | 146:f64d43ff0c18 | 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 146:f64d43ff0c18 | 22 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
mbed_official | 146:f64d43ff0c18 | 23 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
mbed_official | 146:f64d43ff0c18 | 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
mbed_official | 146:f64d43ff0c18 | 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
mbed_official | 146:f64d43ff0c18 | 26 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
mbed_official | 146:f64d43ff0c18 | 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
mbed_official | 146:f64d43ff0c18 | 28 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 146:f64d43ff0c18 | 29 | */ |
mbed_official | 146:f64d43ff0c18 | 30 | |
mbed_official | 146:f64d43ff0c18 | 31 | #if !defined(__FSL_CLOCK_MANAGER_H__) |
mbed_official | 146:f64d43ff0c18 | 32 | #define __FSL_CLOCK_MANAGER_H__ |
mbed_official | 146:f64d43ff0c18 | 33 | |
mbed_official | 146:f64d43ff0c18 | 34 | #include <stdint.h> |
mbed_official | 146:f64d43ff0c18 | 35 | #include <stdbool.h> |
mbed_official | 146:f64d43ff0c18 | 36 | #include <assert.h> |
mbed_official | 324:406fd2029f23 | 37 | #include "fsl_mcg_hal.h" |
mbed_official | 324:406fd2029f23 | 38 | #include "fsl_sim_hal.h" |
mbed_official | 146:f64d43ff0c18 | 39 | |
mbed_official | 146:f64d43ff0c18 | 40 | /*! @addtogroup clock_manager*/ |
mbed_official | 146:f64d43ff0c18 | 41 | /*! @{*/ |
mbed_official | 146:f64d43ff0c18 | 42 | |
mbed_official | 146:f64d43ff0c18 | 43 | /*! @file*/ |
mbed_official | 146:f64d43ff0c18 | 44 | |
mbed_official | 146:f64d43ff0c18 | 45 | /******************************************************************************* |
mbed_official | 146:f64d43ff0c18 | 46 | * Definitions |
mbed_official | 146:f64d43ff0c18 | 47 | ******************************************************************************/ |
mbed_official | 146:f64d43ff0c18 | 48 | |
mbed_official | 324:406fd2029f23 | 49 | /* system clocks definition (should be moved to other proper place) */ |
mbed_official | 324:406fd2029f23 | 50 | #define CPU_XTAL1hz_CLK_HZ 1 |
mbed_official | 324:406fd2029f23 | 51 | #define CPU_LPO_CLK_HZ 1000 |
mbed_official | 146:f64d43ff0c18 | 52 | |
mbed_official | 324:406fd2029f23 | 53 | /* external clock definition (should be moved to other proper place) */ |
mbed_official | 146:f64d43ff0c18 | 54 | |
mbed_official | 324:406fd2029f23 | 55 | #define SDHC0_CLKIN 0 /* kSimSDHC0_CLKIN */ |
mbed_official | 324:406fd2029f23 | 56 | #define ENET_1588_CLKIN 0 /* kSimENET_1588_CLKIN */ |
mbed_official | 324:406fd2029f23 | 57 | #define EXTAL_Clock 0 /* kSimEXTAL_Clock */ |
mbed_official | 324:406fd2029f23 | 58 | #define EXTAL1_Clock 0 /* kSimEXTAL1_Clock */ |
mbed_official | 324:406fd2029f23 | 59 | #define USB_CLKIN 0 /* kSimUSB_CLKIN */ |
mbed_official | 146:f64d43ff0c18 | 60 | |
mbed_official | 324:406fd2029f23 | 61 | /* Table of base addresses for instances. */ |
mbed_official | 324:406fd2029f23 | 62 | extern const uint32_t g_simBaseAddr[]; |
mbed_official | 324:406fd2029f23 | 63 | extern const uint32_t g_mcgBaseAddr[]; |
mbed_official | 146:f64d43ff0c18 | 64 | |
mbed_official | 146:f64d43ff0c18 | 65 | /*! |
mbed_official | 146:f64d43ff0c18 | 66 | * @brief Error code definition for the clock manager APIs |
mbed_official | 146:f64d43ff0c18 | 67 | */ |
mbed_official | 146:f64d43ff0c18 | 68 | typedef enum _clock_manager_error_code { |
mbed_official | 146:f64d43ff0c18 | 69 | kClockManagerSuccess, /*!< success */ |
mbed_official | 146:f64d43ff0c18 | 70 | kClockManagerNoSuchClockName, /*!< cannot find the clock name */ |
mbed_official | 146:f64d43ff0c18 | 71 | kClockManagerNoSuchClockModule, /*!< cannot find the clock module name */ |
mbed_official | 146:f64d43ff0c18 | 72 | kClockManagerNoSuchClockSource, /*!< cannot find the clock source name */ |
mbed_official | 146:f64d43ff0c18 | 73 | kClockManagerNoSuchDivider, /*!< cannot find the divider name */ |
mbed_official | 146:f64d43ff0c18 | 74 | kClockManagerUnknown /*!< unknown error*/ |
mbed_official | 146:f64d43ff0c18 | 75 | } clock_manager_error_code_t; |
mbed_official | 146:f64d43ff0c18 | 76 | |
mbed_official | 146:f64d43ff0c18 | 77 | |
mbed_official | 146:f64d43ff0c18 | 78 | /******************************************************************************* |
mbed_official | 146:f64d43ff0c18 | 79 | * API |
mbed_official | 146:f64d43ff0c18 | 80 | ******************************************************************************/ |
mbed_official | 146:f64d43ff0c18 | 81 | |
mbed_official | 146:f64d43ff0c18 | 82 | #if defined(__cplusplus) |
mbed_official | 146:f64d43ff0c18 | 83 | extern "C" { |
mbed_official | 146:f64d43ff0c18 | 84 | #endif /* __cplusplus*/ |
mbed_official | 146:f64d43ff0c18 | 85 | |
mbed_official | 146:f64d43ff0c18 | 86 | /*! @name Clock Frequencies*/ |
mbed_official | 146:f64d43ff0c18 | 87 | /*@{*/ |
mbed_official | 146:f64d43ff0c18 | 88 | |
mbed_official | 146:f64d43ff0c18 | 89 | /*! |
mbed_official | 146:f64d43ff0c18 | 90 | * @brief Gets the clock frequency for a specific clock name. |
mbed_official | 146:f64d43ff0c18 | 91 | * |
mbed_official | 146:f64d43ff0c18 | 92 | * This function checks the current clock configurations and then calculates |
mbed_official | 146:f64d43ff0c18 | 93 | * the clock frequency for a specific clock name defined in clock_names_t. |
mbed_official | 146:f64d43ff0c18 | 94 | * The MCG must be properly configured before using this function. See |
mbed_official | 324:406fd2029f23 | 95 | * the reference manual for supported clock names for different chip families. |
mbed_official | 146:f64d43ff0c18 | 96 | * The returned value is in Hertz. If it cannot find the clock name |
mbed_official | 146:f64d43ff0c18 | 97 | * or the name is not supported for a specific chip family, it returns an |
mbed_official | 146:f64d43ff0c18 | 98 | * error. |
mbed_official | 146:f64d43ff0c18 | 99 | * |
mbed_official | 146:f64d43ff0c18 | 100 | * @param clockName Clock names defined in clock_names_t |
mbed_official | 146:f64d43ff0c18 | 101 | * @param frequency Returned clock frequency value in Hertz |
mbed_official | 146:f64d43ff0c18 | 102 | * @return status Error code defined in clock_manager_error_code_t |
mbed_official | 146:f64d43ff0c18 | 103 | */ |
mbed_official | 324:406fd2029f23 | 104 | clock_manager_error_code_t CLOCK_SYS_GetFreq(clock_names_t clockName, |
mbed_official | 146:f64d43ff0c18 | 105 | uint32_t *frequency); |
mbed_official | 146:f64d43ff0c18 | 106 | |
mbed_official | 146:f64d43ff0c18 | 107 | /*! |
mbed_official | 324:406fd2029f23 | 108 | * @brief Sets the clock source setting. |
mbed_official | 324:406fd2029f23 | 109 | * |
mbed_official | 324:406fd2029f23 | 110 | * This function sets the settings for a specified clock source. Each clock |
mbed_official | 324:406fd2029f23 | 111 | * source has its own clock selection settings. See the chip reference manual for |
mbed_official | 324:406fd2029f23 | 112 | * clock source detailed settings and the sim_clock_source_names_t |
mbed_official | 324:406fd2029f23 | 113 | * for clock sources. |
mbed_official | 324:406fd2029f23 | 114 | * |
mbed_official | 324:406fd2029f23 | 115 | * @param clockSource Clock source name defined in sim_clock_source_names_t |
mbed_official | 324:406fd2029f23 | 116 | * @param setting Setting value |
mbed_official | 324:406fd2029f23 | 117 | * @return status If the clock source doesn't exist, it returns an error. |
mbed_official | 324:406fd2029f23 | 118 | */ |
mbed_official | 324:406fd2029f23 | 119 | clock_manager_error_code_t CLOCK_SYS_SetSource(clock_source_names_t clockSource, |
mbed_official | 324:406fd2029f23 | 120 | uint8_t setting); |
mbed_official | 324:406fd2029f23 | 121 | |
mbed_official | 324:406fd2029f23 | 122 | /*! |
mbed_official | 324:406fd2029f23 | 123 | * @brief Gets the clock source setting. |
mbed_official | 146:f64d43ff0c18 | 124 | * |
mbed_official | 324:406fd2029f23 | 125 | * This function gets the settings for a specified clock source. Each clock |
mbed_official | 324:406fd2029f23 | 126 | * source has its own clock selection settings. See the reference manual for |
mbed_official | 324:406fd2029f23 | 127 | * clock source detailed settings and the sim_clock_source_names_t |
mbed_official | 324:406fd2029f23 | 128 | * for clock sources. |
mbed_official | 324:406fd2029f23 | 129 | * |
mbed_official | 324:406fd2029f23 | 130 | * @param clockSource Clock source name |
mbed_official | 324:406fd2029f23 | 131 | * @param setting Current setting for the clock source |
mbed_official | 324:406fd2029f23 | 132 | * @return status If the clock source doesn't exist, it returns an error. |
mbed_official | 324:406fd2029f23 | 133 | */ |
mbed_official | 324:406fd2029f23 | 134 | clock_manager_error_code_t CLOCK_SYS_GetSource(clock_source_names_t clockSource, |
mbed_official | 324:406fd2029f23 | 135 | uint8_t *setting); |
mbed_official | 324:406fd2029f23 | 136 | |
mbed_official | 324:406fd2029f23 | 137 | /*! |
mbed_official | 324:406fd2029f23 | 138 | * @brief Sets the clock divider setting. |
mbed_official | 324:406fd2029f23 | 139 | * |
mbed_official | 324:406fd2029f23 | 140 | * This function sets the setting for a specified clock divider. See the |
mbed_official | 324:406fd2029f23 | 141 | * reference manual for a supported clock divider and value range and the |
mbed_official | 324:406fd2029f23 | 142 | * sim_clock_divider_names_t for dividers. |
mbed_official | 146:f64d43ff0c18 | 143 | * |
mbed_official | 324:406fd2029f23 | 144 | * @param clockDivider Clock divider name |
mbed_official | 324:406fd2029f23 | 145 | * @param divider Divider setting |
mbed_official | 324:406fd2029f23 | 146 | * @return status If the clock divider doesn't exist, it returns an error. |
mbed_official | 324:406fd2029f23 | 147 | */ |
mbed_official | 324:406fd2029f23 | 148 | clock_manager_error_code_t CLOCK_SYS_SetDivider(clock_divider_names_t clockDivider, |
mbed_official | 324:406fd2029f23 | 149 | uint32_t setting); |
mbed_official | 324:406fd2029f23 | 150 | |
mbed_official | 324:406fd2029f23 | 151 | /*! |
mbed_official | 324:406fd2029f23 | 152 | * @brief Gets the clock divider setting. |
mbed_official | 324:406fd2029f23 | 153 | * |
mbed_official | 324:406fd2029f23 | 154 | * This function gets the setting for a specified clock divider. See the |
mbed_official | 324:406fd2029f23 | 155 | * reference manual for a supported clock divider and value range and the |
mbed_official | 324:406fd2029f23 | 156 | * clock_divider_names_t for dividers. |
mbed_official | 324:406fd2029f23 | 157 | * |
mbed_official | 324:406fd2029f23 | 158 | * @param clockDivider Clock divider name |
mbed_official | 324:406fd2029f23 | 159 | * @param divider Divider value pointer |
mbed_official | 324:406fd2029f23 | 160 | * @return status If the clock divider doesn't exist, it returns an error. |
mbed_official | 146:f64d43ff0c18 | 161 | */ |
mbed_official | 324:406fd2029f23 | 162 | clock_manager_error_code_t CLOCK_SYS_GetDivider(clock_divider_names_t clockDivider, |
mbed_official | 324:406fd2029f23 | 163 | uint32_t *setting); |
mbed_official | 146:f64d43ff0c18 | 164 | |
mbed_official | 324:406fd2029f23 | 165 | /*! |
mbed_official | 324:406fd2029f23 | 166 | * @brief Sets the clock out dividers setting. |
mbed_official | 324:406fd2029f23 | 167 | * |
mbed_official | 324:406fd2029f23 | 168 | * This function sets the setting for all clock out dividers at the same time. |
mbed_official | 324:406fd2029f23 | 169 | * See the reference manual for a supported clock divider and value range and the |
mbed_official | 324:406fd2029f23 | 170 | * clock_divider_names_t for clock out dividers. |
mbed_official | 324:406fd2029f23 | 171 | * |
mbed_official | 324:406fd2029f23 | 172 | * @param outdiv1 Outdivider1 setting |
mbed_official | 324:406fd2029f23 | 173 | * @param outdiv2 Outdivider2 setting |
mbed_official | 324:406fd2029f23 | 174 | * @param outdiv3 Outdivider3 setting |
mbed_official | 324:406fd2029f23 | 175 | * @param outdiv4 Outdivider4 setting |
mbed_official | 324:406fd2029f23 | 176 | */ |
mbed_official | 324:406fd2029f23 | 177 | static inline void CLOCK_SYS_SetOutDividers(uint32_t outdiv1, uint32_t outdiv2, |
mbed_official | 324:406fd2029f23 | 178 | uint32_t outdiv3, uint32_t outdiv4) |
mbed_official | 324:406fd2029f23 | 179 | { |
mbed_official | 324:406fd2029f23 | 180 | CLOCK_HAL_SetOutDividers(g_simBaseAddr[0], outdiv1, outdiv2, outdiv3, outdiv4); |
mbed_official | 324:406fd2029f23 | 181 | } |
mbed_official | 146:f64d43ff0c18 | 182 | |
mbed_official | 146:f64d43ff0c18 | 183 | #if defined(__cplusplus) |
mbed_official | 146:f64d43ff0c18 | 184 | } |
mbed_official | 146:f64d43ff0c18 | 185 | #endif /* __cplusplus*/ |
mbed_official | 146:f64d43ff0c18 | 186 | |
mbed_official | 146:f64d43ff0c18 | 187 | /*! @}*/ |
mbed_official | 146:f64d43ff0c18 | 188 | |
mbed_official | 324:406fd2029f23 | 189 | /* |
mbed_official | 324:406fd2029f23 | 190 | * Include the cpu specific clock API header files. |
mbed_official | 324:406fd2029f23 | 191 | */ |
mbed_official | 324:406fd2029f23 | 192 | #if (defined(CPU_MK02FN128VFM10) || defined(CPU_MK02FN64VFM10) || defined(CPU_MK02FN128VLF10) || \ |
mbed_official | 324:406fd2029f23 | 193 | defined(CPU_MK02FN64VLF10) || defined(CPU_MK02FN128VLH10) || defined(CPU_MK02FN64VLH10)) |
mbed_official | 324:406fd2029f23 | 194 | |
mbed_official | 324:406fd2029f23 | 195 | #define K02F12810_SERIES |
mbed_official | 324:406fd2029f23 | 196 | |
mbed_official | 324:406fd2029f23 | 197 | #elif (defined(CPU_MK20DX128VMP5) || defined(CPU_MK20DN128VMP5) || defined(CPU_MK20DX64VMP5) || \ |
mbed_official | 324:406fd2029f23 | 198 | defined(CPU_MK20DN64VMP5) || defined(CPU_MK20DX32VMP5) || defined(CPU_MK20DN32VMP5) || \ |
mbed_official | 324:406fd2029f23 | 199 | defined(CPU_MK20DX128VLH5) || defined(CPU_MK20DN128VLH5) || defined(CPU_MK20DX64VLH5) || \ |
mbed_official | 324:406fd2029f23 | 200 | defined(CPU_MK20DN64VLH5) || defined(CPU_MK20DX32VLH5) || defined(CPU_MK20DN32VLH5) || \ |
mbed_official | 324:406fd2029f23 | 201 | defined(CPU_MK20DX128VFM5) || defined(CPU_MK20DN128VFM5) || defined(CPU_MK20DX64VFM5) || \ |
mbed_official | 324:406fd2029f23 | 202 | defined(CPU_MK20DN64VFM5) || defined(CPU_MK20DX32VFM5) || defined(CPU_MK20DN32VFM5) || \ |
mbed_official | 324:406fd2029f23 | 203 | defined(CPU_MK20DX128VFT5) || defined(CPU_MK20DN128VFT5) || defined(CPU_MK20DX64VFT5) || \ |
mbed_official | 324:406fd2029f23 | 204 | defined(CPU_MK20DN64VFT5) || defined(CPU_MK20DX32VFT5) || defined(CPU_MK20DN32VFT5) || \ |
mbed_official | 324:406fd2029f23 | 205 | defined(CPU_MK20DX128VLF5) || defined(CPU_MK20DN128VLF5) || defined(CPU_MK20DX64VLF5) || \ |
mbed_official | 324:406fd2029f23 | 206 | defined(CPU_MK20DN64VLF5) || defined(CPU_MK20DX32VLF5) || defined(CPU_MK20DN32VLF5)) |
mbed_official | 324:406fd2029f23 | 207 | |
mbed_official | 324:406fd2029f23 | 208 | #define K20D5_SERIES |
mbed_official | 324:406fd2029f23 | 209 | |
mbed_official | 324:406fd2029f23 | 210 | |
mbed_official | 324:406fd2029f23 | 211 | #elif (defined(CPU_MK22FN128VDC10) || defined(CPU_MK22FN128VLH10) || defined(CPU_MK22FN128VLL10) || \ |
mbed_official | 324:406fd2029f23 | 212 | defined(CPU_MK22FN128VMP10)) |
mbed_official | 324:406fd2029f23 | 213 | |
mbed_official | 324:406fd2029f23 | 214 | #define K22F12810_SERIES |
mbed_official | 324:406fd2029f23 | 215 | |
mbed_official | 324:406fd2029f23 | 216 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 217 | #include "MK22F12810/fsl_clock_K22F12810.h" |
mbed_official | 324:406fd2029f23 | 218 | |
mbed_official | 324:406fd2029f23 | 219 | #elif (defined(CPU_MK22FN256VDC12) || defined(CPU_MK22FN256VLH12) || defined(CPU_MK22FN256VLL12) || \ |
mbed_official | 324:406fd2029f23 | 220 | defined(CPU_MK22FN256VMP12)) |
mbed_official | 324:406fd2029f23 | 221 | |
mbed_official | 324:406fd2029f23 | 222 | #define K22F25612_SERIES |
mbed_official | 324:406fd2029f23 | 223 | |
mbed_official | 324:406fd2029f23 | 224 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 225 | #include "MK22F25612/fsl_clock_K22F25612.h" |
mbed_official | 324:406fd2029f23 | 226 | |
mbed_official | 324:406fd2029f23 | 227 | |
mbed_official | 324:406fd2029f23 | 228 | |
mbed_official | 324:406fd2029f23 | 229 | #elif (defined(CPU_MK22FN512VDC12) || defined(CPU_MK22FN512VLH12) || defined(CPU_MK22FN512VLL12)) |
mbed_official | 324:406fd2029f23 | 230 | |
mbed_official | 324:406fd2029f23 | 231 | #define K22F51212_SERIES |
mbed_official | 324:406fd2029f23 | 232 | |
mbed_official | 324:406fd2029f23 | 233 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 234 | #include "MK22F51212/fsl_clock_K22F51212.h" |
mbed_official | 324:406fd2029f23 | 235 | |
mbed_official | 324:406fd2029f23 | 236 | |
mbed_official | 324:406fd2029f23 | 237 | #elif (defined(CPU_MK24FN1M0VDC12) || defined(CPU_MK24FN1M0VLQ12)) |
mbed_official | 324:406fd2029f23 | 238 | |
mbed_official | 324:406fd2029f23 | 239 | #define K24F12_SERIES |
mbed_official | 324:406fd2029f23 | 240 | |
mbed_official | 324:406fd2029f23 | 241 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 242 | #include "MK24F12/fsl_clock_K24F12.h" |
mbed_official | 324:406fd2029f23 | 243 | |
mbed_official | 324:406fd2029f23 | 244 | #elif (defined(CPU_MK24FN256VDC12)) |
mbed_official | 324:406fd2029f23 | 245 | |
mbed_official | 324:406fd2029f23 | 246 | #define K24F25612_SERIES |
mbed_official | 324:406fd2029f23 | 247 | |
mbed_official | 324:406fd2029f23 | 248 | |
mbed_official | 324:406fd2029f23 | 249 | #elif (defined(CPU_MK63FN1M0VLQ12) || defined(CPU_MK63FN1M0VMD12)) |
mbed_official | 324:406fd2029f23 | 250 | |
mbed_official | 324:406fd2029f23 | 251 | #define K63F12_SERIES |
mbed_official | 324:406fd2029f23 | 252 | |
mbed_official | 324:406fd2029f23 | 253 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 254 | #include "MK63F12/fsl_clock_K63F12.h" |
mbed_official | 324:406fd2029f23 | 255 | |
mbed_official | 324:406fd2029f23 | 256 | #elif (defined(CPU_MK64FX512VDC12) || defined(CPU_MK64FN1M0VDC12) || defined(CPU_MK64FX512VLL12) || \ |
mbed_official | 324:406fd2029f23 | 257 | defined(CPU_MK64FN1M0VLL12) || defined(CPU_MK64FX512VLQ12) || defined(CPU_MK64FN1M0VLQ12) || \ |
mbed_official | 324:406fd2029f23 | 258 | defined(CPU_MK64FX512VMD12) || defined(CPU_MK64FN1M0VMD12)) |
mbed_official | 324:406fd2029f23 | 259 | |
mbed_official | 324:406fd2029f23 | 260 | #define K64F12_SERIES |
mbed_official | 324:406fd2029f23 | 261 | |
mbed_official | 324:406fd2029f23 | 262 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 263 | #include "MK64F12/fsl_clock_K64F12.h" |
mbed_official | 324:406fd2029f23 | 264 | |
mbed_official | 324:406fd2029f23 | 265 | #elif (defined(CPU_MK65FN2M0CAC18) || defined(CPU_MK65FX1M0CAC18) || defined(CPU_MK65FN2M0VMI18) || \ |
mbed_official | 324:406fd2029f23 | 266 | defined(CPU_MK65FX1M0VMI18)) |
mbed_official | 324:406fd2029f23 | 267 | |
mbed_official | 324:406fd2029f23 | 268 | #define K65F18_SERIES |
mbed_official | 324:406fd2029f23 | 269 | |
mbed_official | 324:406fd2029f23 | 270 | |
mbed_official | 324:406fd2029f23 | 271 | #elif (defined(CPU_MK66FN2M0VLQ18) || defined(CPU_MK66FX1M0VLQ18) || defined(CPU_MK66FN2M0VMD18) || \ |
mbed_official | 324:406fd2029f23 | 272 | defined(CPU_MK66FX1M0VMD18)) |
mbed_official | 324:406fd2029f23 | 273 | |
mbed_official | 324:406fd2029f23 | 274 | #define K66F18_SERIES |
mbed_official | 324:406fd2029f23 | 275 | |
mbed_official | 324:406fd2029f23 | 276 | |
mbed_official | 324:406fd2029f23 | 277 | #elif (defined(CPU_MK70FN1M0VMF12) || defined(CPU_MK70FX512VMF12) || defined(CPU_MK70FN1M0VMF15) || \ |
mbed_official | 324:406fd2029f23 | 278 | defined(CPU_MK70FX512VMF15) || defined(CPU_MK70FN1M0VMJ12) || defined(CPU_MK70FX512VMJ12) || \ |
mbed_official | 324:406fd2029f23 | 279 | defined(CPU_MK70FN1M0VMJ15) || defined(CPU_MK70FX512VMJ15)) |
mbed_official | 324:406fd2029f23 | 280 | |
mbed_official | 324:406fd2029f23 | 281 | #define K70F12_SERIES |
mbed_official | 324:406fd2029f23 | 282 | |
mbed_official | 324:406fd2029f23 | 283 | |
mbed_official | 324:406fd2029f23 | 284 | #elif (defined(CPU_MK70FN1M0VMF12) || defined(CPU_MK70FX512VMF12) || defined(CPU_MK70FN1M0VMF15) || \ |
mbed_official | 324:406fd2029f23 | 285 | defined(CPU_MK70FX512VMF15) || defined(CPU_MK70FN1M0VMJ12) || defined(CPU_MK70FX512VMJ12) || \ |
mbed_official | 324:406fd2029f23 | 286 | defined(CPU_MK70FN1M0VMJ15) || defined(CPU_MK70FX512VMJ15)) |
mbed_official | 324:406fd2029f23 | 287 | |
mbed_official | 324:406fd2029f23 | 288 | #define K70F15_SERIES |
mbed_official | 324:406fd2029f23 | 289 | |
mbed_official | 324:406fd2029f23 | 290 | |
mbed_official | 324:406fd2029f23 | 291 | #elif (defined(CPU_MKL02Z32CAF4) || defined(CPU_MKL02Z8VFG4) || defined(CPU_MKL02Z16VFG4) || \ |
mbed_official | 324:406fd2029f23 | 292 | defined(CPU_MKL02Z32VFG4) || defined(CPU_MKL02Z16VFK4) || defined(CPU_MKL02Z32VFK4) || \ |
mbed_official | 324:406fd2029f23 | 293 | defined(CPU_MKL02Z16VFM4) || defined(CPU_MKL02Z32VFM4)) |
mbed_official | 324:406fd2029f23 | 294 | |
mbed_official | 324:406fd2029f23 | 295 | #define KL02Z4_SERIES |
mbed_official | 324:406fd2029f23 | 296 | |
mbed_official | 324:406fd2029f23 | 297 | |
mbed_official | 324:406fd2029f23 | 298 | #elif (defined(CPU_MKL03Z32CAF4) || defined(CPU_MKL03Z8VFG4) || defined(CPU_MKL03Z16VFG4) || \ |
mbed_official | 324:406fd2029f23 | 299 | defined(CPU_MKL03Z32VFG4) || defined(CPU_MKL03Z8VFK4) || defined(CPU_MKL03Z16VFK4) || \ |
mbed_official | 324:406fd2029f23 | 300 | defined(CPU_MKL03Z32VFK4)) |
mbed_official | 324:406fd2029f23 | 301 | |
mbed_official | 324:406fd2029f23 | 302 | #define KL03Z4_SERIES |
mbed_official | 324:406fd2029f23 | 303 | |
mbed_official | 324:406fd2029f23 | 304 | |
mbed_official | 324:406fd2029f23 | 305 | #elif (defined(CPU_MKL05Z8VFK4) || defined(CPU_MKL05Z16VFK4) || defined(CPU_MKL05Z32VFK4) || \ |
mbed_official | 324:406fd2029f23 | 306 | defined(CPU_MKL05Z8VLC4) || defined(CPU_MKL05Z16VLC4) || defined(CPU_MKL05Z32VLC4) || \ |
mbed_official | 324:406fd2029f23 | 307 | defined(CPU_MKL05Z8VFM4) || defined(CPU_MKL05Z16VFM4) || defined(CPU_MKL05Z32VFM4) || \ |
mbed_official | 324:406fd2029f23 | 308 | defined(CPU_MKL05Z16VLF4) || defined(CPU_MKL05Z32VLF4)) |
mbed_official | 324:406fd2029f23 | 309 | |
mbed_official | 324:406fd2029f23 | 310 | #define KL05Z4_SERIES |
mbed_official | 324:406fd2029f23 | 311 | |
mbed_official | 324:406fd2029f23 | 312 | |
mbed_official | 324:406fd2029f23 | 313 | #elif (defined(CPU_MKL13Z64VFM4) || defined(CPU_MKL13Z128VFM4) || defined(CPU_MKL13Z256VFM4) || \ |
mbed_official | 324:406fd2029f23 | 314 | defined(CPU_MKL13Z64VFT4) || defined(CPU_MKL13Z128VFT4) || defined(CPU_MKL13Z256VFT4) || \ |
mbed_official | 324:406fd2029f23 | 315 | defined(CPU_MKL13Z64VLH4) || defined(CPU_MKL13Z128VLH4) || defined(CPU_MKL13Z256VLH4) || \ |
mbed_official | 324:406fd2029f23 | 316 | defined(CPU_MKL13Z64VMP4) || defined(CPU_MKL13Z128VMP4) || defined(CPU_MKL13Z256VMP4)) |
mbed_official | 324:406fd2029f23 | 317 | |
mbed_official | 324:406fd2029f23 | 318 | #define KL13Z4_SERIES |
mbed_official | 324:406fd2029f23 | 319 | |
mbed_official | 324:406fd2029f23 | 320 | |
mbed_official | 324:406fd2029f23 | 321 | #elif (defined(CPU_MKL23Z64VFM4) || defined(CPU_MKL23Z128VFM4) || defined(CPU_MKL23Z256VFM4) || \ |
mbed_official | 324:406fd2029f23 | 322 | defined(CPU_MKL23Z64VFT4) || defined(CPU_MKL23Z128VFT4) || defined(CPU_MKL23Z256VFT4) || \ |
mbed_official | 324:406fd2029f23 | 323 | defined(CPU_MKL23Z64VLH4) || defined(CPU_MKL23Z128VLH4) || defined(CPU_MKL23Z256VLH4) || \ |
mbed_official | 324:406fd2029f23 | 324 | defined(CPU_MKL23Z64VMP4) || defined(CPU_MKL23Z128VMP4) || defined(CPU_MKL23Z256VMP4)) |
mbed_official | 324:406fd2029f23 | 325 | |
mbed_official | 324:406fd2029f23 | 326 | #define KL23Z4_SERIES |
mbed_official | 324:406fd2029f23 | 327 | |
mbed_official | 324:406fd2029f23 | 328 | |
mbed_official | 324:406fd2029f23 | 329 | #elif (defined(CPU_MKL25Z32VFM4) || defined(CPU_MKL25Z64VFM4) || defined(CPU_MKL25Z128VFM4) || \ |
mbed_official | 324:406fd2029f23 | 330 | defined(CPU_MKL25Z32VFT4) || defined(CPU_MKL25Z64VFT4) || defined(CPU_MKL25Z128VFT4) || \ |
mbed_official | 324:406fd2029f23 | 331 | defined(CPU_MKL25Z32VLH4) || defined(CPU_MKL25Z64VLH4) || defined(CPU_MKL25Z128VLH4) || \ |
mbed_official | 324:406fd2029f23 | 332 | defined(CPU_MKL25Z32VLK4) || defined(CPU_MKL25Z64VLK4) || defined(CPU_MKL25Z128VLK4)) |
mbed_official | 324:406fd2029f23 | 333 | |
mbed_official | 324:406fd2029f23 | 334 | #define KL25Z4_SERIES |
mbed_official | 324:406fd2029f23 | 335 | |
mbed_official | 324:406fd2029f23 | 336 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 337 | #include "MKL25Z4/fsl_clock_KL25Z4.h" |
mbed_official | 324:406fd2029f23 | 338 | |
mbed_official | 324:406fd2029f23 | 339 | #elif (defined(CPU_MKL26Z32VFM4) || defined(CPU_MKL26Z64VFM4) || defined(CPU_MKL26Z128VFM4) || \ |
mbed_official | 324:406fd2029f23 | 340 | defined(CPU_MKL26Z32VFT4) || defined(CPU_MKL26Z64VFT4) || defined(CPU_MKL26Z128VFT4) || \ |
mbed_official | 324:406fd2029f23 | 341 | defined(CPU_MKL26Z32VLH4) || defined(CPU_MKL26Z64VLH4) || defined(CPU_MKL26Z128VLH4) || \ |
mbed_official | 324:406fd2029f23 | 342 | defined(CPU_MKL26Z256VLH4) || defined(CPU_MKL26Z256VLK4) || defined(CPU_MKL26Z128VLL4) || \ |
mbed_official | 324:406fd2029f23 | 343 | defined(CPU_MKL26Z256VLL4) || defined(CPU_MKL26Z128VMC4) || defined(CPU_MKL26Z256VMC4)) |
mbed_official | 324:406fd2029f23 | 344 | |
mbed_official | 324:406fd2029f23 | 345 | #define KL26Z4_SERIES |
mbed_official | 324:406fd2029f23 | 346 | |
mbed_official | 324:406fd2029f23 | 347 | |
mbed_official | 324:406fd2029f23 | 348 | #elif (defined(CPU_MKL33Z128VLH4) || defined(CPU_MKL33Z256VLH4) || defined(CPU_MKL33Z128VMP4) || \ |
mbed_official | 324:406fd2029f23 | 349 | defined(CPU_MKL33Z256VMP4)) |
mbed_official | 324:406fd2029f23 | 350 | |
mbed_official | 324:406fd2029f23 | 351 | #define KL33Z4_SERIES |
mbed_official | 324:406fd2029f23 | 352 | |
mbed_official | 324:406fd2029f23 | 353 | |
mbed_official | 324:406fd2029f23 | 354 | #elif (defined(CPU_MKL43Z64VLH4) || defined(CPU_MKL43Z128VLH4) || defined(CPU_MKL43Z256VLH4) || \ |
mbed_official | 324:406fd2029f23 | 355 | defined(CPU_MKL43Z64VMP4) || defined(CPU_MKL43Z128VMP4) || defined(CPU_MKL43Z256VMP4)) |
mbed_official | 324:406fd2029f23 | 356 | |
mbed_official | 324:406fd2029f23 | 357 | #define KL43Z4_SERIES |
mbed_official | 324:406fd2029f23 | 358 | |
mbed_official | 324:406fd2029f23 | 359 | |
mbed_official | 324:406fd2029f23 | 360 | #elif (defined(CPU_MKL46Z128VLH4) || defined(CPU_MKL46Z256VLH4) || defined(CPU_MKL46Z128VLL4) || \ |
mbed_official | 324:406fd2029f23 | 361 | defined(CPU_MKL46Z256VLL4) || defined(CPU_MKL46Z128VMC4) || defined(CPU_MKL46Z256VMC4)) |
mbed_official | 324:406fd2029f23 | 362 | |
mbed_official | 324:406fd2029f23 | 363 | #define KL46Z4_SERIES |
mbed_official | 324:406fd2029f23 | 364 | |
mbed_official | 324:406fd2029f23 | 365 | |
mbed_official | 324:406fd2029f23 | 366 | #elif (defined(CPU_MKV30F128VFM10) || defined(CPU_MKV30F64VFM10) || defined(CPU_MKV30F128VLF10) || \ |
mbed_official | 324:406fd2029f23 | 367 | defined(CPU_MKV30F64VLF10) || defined(CPU_MKV30F128VLH10) || defined(CPU_MKV30F64VLH10)) |
mbed_official | 324:406fd2029f23 | 368 | |
mbed_official | 324:406fd2029f23 | 369 | #define KV30F12810_SERIES |
mbed_official | 324:406fd2029f23 | 370 | |
mbed_official | 324:406fd2029f23 | 371 | |
mbed_official | 324:406fd2029f23 | 372 | #elif (defined(CPU_MKV31F128VLH10) || defined(CPU_MKV31F128VLL10)) |
mbed_official | 324:406fd2029f23 | 373 | |
mbed_official | 324:406fd2029f23 | 374 | #define KV31F12810_SERIES |
mbed_official | 324:406fd2029f23 | 375 | |
mbed_official | 324:406fd2029f23 | 376 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 377 | #include "MKV31F12810/fsl_clock_KV31F12810.h" |
mbed_official | 324:406fd2029f23 | 378 | |
mbed_official | 324:406fd2029f23 | 379 | #elif (defined(CPU_MKV31F256VLH12) || defined(CPU_MKV31F256VLL12)) |
mbed_official | 324:406fd2029f23 | 380 | |
mbed_official | 324:406fd2029f23 | 381 | #define KV31F25612_SERIES |
mbed_official | 324:406fd2029f23 | 382 | |
mbed_official | 324:406fd2029f23 | 383 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 384 | #include "MKV31F25612/fsl_clock_KV31F25612.h" |
mbed_official | 324:406fd2029f23 | 385 | |
mbed_official | 324:406fd2029f23 | 386 | |
mbed_official | 324:406fd2029f23 | 387 | #elif (defined(CPU_MKV31F512VLH12) || defined(CPU_MKV31F512VLL12)) |
mbed_official | 324:406fd2029f23 | 388 | |
mbed_official | 324:406fd2029f23 | 389 | #define KV31F51212_SERIES |
mbed_official | 324:406fd2029f23 | 390 | |
mbed_official | 324:406fd2029f23 | 391 | /* Clock System Level API header file */ |
mbed_official | 324:406fd2029f23 | 392 | #include "MKV31F51212/fsl_clock_KV31F51212.h" |
mbed_official | 324:406fd2029f23 | 393 | |
mbed_official | 324:406fd2029f23 | 394 | #elif (defined(CPU_MKV40F128VLH15) || defined(CPU_MKV40F128VLL15) || defined(CPU_MKV40F256VLH15) || \ |
mbed_official | 324:406fd2029f23 | 395 | defined(CPU_MKV40F256VLL15) || defined(CPU_MKV40F64VLH15)) |
mbed_official | 324:406fd2029f23 | 396 | |
mbed_official | 324:406fd2029f23 | 397 | #define KV40F15_SERIES |
mbed_official | 324:406fd2029f23 | 398 | |
mbed_official | 324:406fd2029f23 | 399 | |
mbed_official | 324:406fd2029f23 | 400 | #elif (defined(CPU_MKV43F128VLH15) || defined(CPU_MKV43F128VLL15) || defined(CPU_MKV43F64VLH15)) |
mbed_official | 324:406fd2029f23 | 401 | |
mbed_official | 324:406fd2029f23 | 402 | #define KV43F15_SERIES |
mbed_official | 324:406fd2029f23 | 403 | |
mbed_official | 324:406fd2029f23 | 404 | |
mbed_official | 324:406fd2029f23 | 405 | #elif (defined(CPU_MKV44F128VLH15) || defined(CPU_MKV44F128VLL15) || defined(CPU_MKV44F64VLH15)) |
mbed_official | 324:406fd2029f23 | 406 | |
mbed_official | 324:406fd2029f23 | 407 | #define KV44F15_SERIES |
mbed_official | 324:406fd2029f23 | 408 | |
mbed_official | 324:406fd2029f23 | 409 | |
mbed_official | 324:406fd2029f23 | 410 | #elif (defined(CPU_MKV45F128VLH15) || defined(CPU_MKV45F128VLL15) || defined(CPU_MKV45F256VLH15) || \ |
mbed_official | 324:406fd2029f23 | 411 | defined(CPU_MKV45F256VLL15)) |
mbed_official | 324:406fd2029f23 | 412 | |
mbed_official | 324:406fd2029f23 | 413 | #define KV45F15_SERIES |
mbed_official | 324:406fd2029f23 | 414 | |
mbed_official | 324:406fd2029f23 | 415 | |
mbed_official | 324:406fd2029f23 | 416 | #elif (defined(CPU_MKV46F128VLH15) || defined(CPU_MKV46F128VLL15) || defined(CPU_MKV46F256VLH15) || \ |
mbed_official | 324:406fd2029f23 | 417 | defined(CPU_MKV46F256VLL15)) |
mbed_official | 324:406fd2029f23 | 418 | |
mbed_official | 324:406fd2029f23 | 419 | #define KV46F15_SERIES |
mbed_official | 324:406fd2029f23 | 420 | |
mbed_official | 324:406fd2029f23 | 421 | #else |
mbed_official | 324:406fd2029f23 | 422 | #error "No valid CPU defined!" |
mbed_official | 324:406fd2029f23 | 423 | #endif |
mbed_official | 324:406fd2029f23 | 424 | |
mbed_official | 146:f64d43ff0c18 | 425 | #endif /* __FSL_CLOCK_MANAGER_H__*/ |
mbed_official | 146:f64d43ff0c18 | 426 | /******************************************************************************* |
mbed_official | 146:f64d43ff0c18 | 427 | * EOF |
mbed_official | 146:f64d43ff0c18 | 428 | ******************************************************************************/ |
mbed_official | 146:f64d43ff0c18 | 429 |