Minsu Lee / mbed-src

Dependents:   WizFi250_AP_HelloWorld

Fork of mbed-src by DongEun Koak

Committer:
mbed_official
Date:
Thu Sep 18 14:00:17 2014 +0100
Revision:
324:406fd2029f23
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?

UserRevisionLine numberNew contents of line
mbed_official 324:406fd2029f23 1 /*
mbed_official 324:406fd2029f23 2 * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
mbed_official 324:406fd2029f23 3 * All rights reserved.
mbed_official 324:406fd2029f23 4 *
mbed_official 324:406fd2029f23 5 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 324:406fd2029f23 6 * are permitted provided that the following conditions are met:
mbed_official 324:406fd2029f23 7 *
mbed_official 324:406fd2029f23 8 * o Redistributions of source code must retain the above copyright notice, this list
mbed_official 324:406fd2029f23 9 * of conditions and the following disclaimer.
mbed_official 324:406fd2029f23 10 *
mbed_official 324:406fd2029f23 11 * o Redistributions in binary form must reproduce the above copyright notice, this
mbed_official 324:406fd2029f23 12 * list of conditions and the following disclaimer in the documentation and/or
mbed_official 324:406fd2029f23 13 * other materials provided with the distribution.
mbed_official 324:406fd2029f23 14 *
mbed_official 324:406fd2029f23 15 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
mbed_official 324:406fd2029f23 16 * contributors may be used to endorse or promote products derived from this
mbed_official 324:406fd2029f23 17 * software without specific prior written permission.
mbed_official 324:406fd2029f23 18 *
mbed_official 324:406fd2029f23 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
mbed_official 324:406fd2029f23 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
mbed_official 324:406fd2029f23 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 324:406fd2029f23 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
mbed_official 324:406fd2029f23 23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
mbed_official 324:406fd2029f23 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
mbed_official 324:406fd2029f23 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
mbed_official 324:406fd2029f23 26 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
mbed_official 324:406fd2029f23 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
mbed_official 324:406fd2029f23 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 324:406fd2029f23 29 */
mbed_official 324:406fd2029f23 30
mbed_official 324:406fd2029f23 31 #if !defined(__FSL_SIM_HAL_K22F51212_H__)
mbed_official 324:406fd2029f23 32 #define __FSL_SIM_HAL_K22F51212_H__
mbed_official 324:406fd2029f23 33
mbed_official 324:406fd2029f23 34 /*! @addtogroup sim_hal*/
mbed_official 324:406fd2029f23 35 /*! @{*/
mbed_official 324:406fd2029f23 36
mbed_official 324:406fd2029f23 37 /*! @file*/
mbed_official 324:406fd2029f23 38
mbed_official 324:406fd2029f23 39 /*******************************************************************************
mbed_official 324:406fd2029f23 40 * Definitions
mbed_official 324:406fd2029f23 41 ******************************************************************************/
mbed_official 324:406fd2029f23 42
mbed_official 324:406fd2029f23 43 /*! @brief SIM USB clock source */
mbed_official 324:406fd2029f23 44 typedef enum _sim_usb_clock_source
mbed_official 324:406fd2029f23 45 {
mbed_official 324:406fd2029f23 46 kSimUsbSrcClkIn, /* USB CLKIN Clock */
mbed_official 324:406fd2029f23 47 kSimUsbSrcPllFllSel /* clock as selected by SOPT2[PLLFLLSEL] */
mbed_official 324:406fd2029f23 48 } sim_usb_clock_source_t;
mbed_official 324:406fd2029f23 49
mbed_official 324:406fd2029f23 50 /*! @brief SIM LPUART clock source */
mbed_official 324:406fd2029f23 51 typedef enum _sim_lpuart_clock_source
mbed_official 324:406fd2029f23 52 {
mbed_official 324:406fd2029f23 53 kSimLpuartSrcNone, /* Clock disabled */
mbed_official 324:406fd2029f23 54 kSimLpuartSrcPllFllSel, /* Clock as selected by SOPT2[PLLFLLSEL] */
mbed_official 324:406fd2029f23 55 kSimLpuartSrcOscErclk, /* OscErClk with special divider */
mbed_official 324:406fd2029f23 56 kSimLpuartSrcMcgIrclk /* MCGIRCLK */
mbed_official 324:406fd2029f23 57 } sim_lpuart_clock_source_t;
mbed_official 324:406fd2029f23 58
mbed_official 324:406fd2029f23 59 /*! @brief SIM PLLFLLSEL clock source select */
mbed_official 324:406fd2029f23 60 typedef enum _sim_pllfll_clock_sel
mbed_official 324:406fd2029f23 61 {
mbed_official 324:406fd2029f23 62 kSimPllFllSelFll, /* Fll clock */
mbed_official 324:406fd2029f23 63 kSimPllFllSelPll, /* Pll0 clock */
mbed_official 324:406fd2029f23 64 kSimPllFllSelNone, /* reserved */
mbed_official 324:406fd2029f23 65 kSimPllFllSelIrc /* IRC 48Mhz */
mbed_official 324:406fd2029f23 66 } sim_pllfll_clock_sel_t;
mbed_official 324:406fd2029f23 67
mbed_official 324:406fd2029f23 68 /*! @brief SIM OSC32KSEL clock source select */
mbed_official 324:406fd2029f23 69 typedef enum _sim_osc32k_clock_sel
mbed_official 324:406fd2029f23 70 {
mbed_official 324:406fd2029f23 71 kSimOsc32kSelOsc32k, /* OSC 32k clock */
mbed_official 324:406fd2029f23 72 kSimOsc32kSelReserved, /* Reserved */
mbed_official 324:406fd2029f23 73 kSimOsc32kSelRtc32k, /* RTC 32k clock */
mbed_official 324:406fd2029f23 74 kSimOsc32kSelLpo /* LPO clock */
mbed_official 324:406fd2029f23 75 } sim_osc32k_clock_sel_t;
mbed_official 324:406fd2029f23 76
mbed_official 324:406fd2029f23 77 /*! @brief SIM TRACESEL clock source select */
mbed_official 324:406fd2029f23 78 typedef enum _sim_trace_clock_sel
mbed_official 324:406fd2029f23 79 {
mbed_official 324:406fd2029f23 80 kSimTraceMcgoutClk, /* MCG out clock */
mbed_official 324:406fd2029f23 81 kSimTraceCoreClk /* core clock */
mbed_official 324:406fd2029f23 82 } sim_trace_clock_sel_t;
mbed_official 324:406fd2029f23 83
mbed_official 324:406fd2029f23 84 /*! @brief SIM CLKOUT_SEL clock source select */
mbed_official 324:406fd2029f23 85 typedef enum _sim_clkout_clock_sel
mbed_official 324:406fd2029f23 86 {
mbed_official 324:406fd2029f23 87 kSimClkoutFlexbusClk, /* Flexbus clock */
mbed_official 324:406fd2029f23 88 kSimClkoutReserved, /* Reserved */
mbed_official 324:406fd2029f23 89 kSimClkoutFlashClk, /* Flash clock */
mbed_official 324:406fd2029f23 90 kSimClkoutLpoClk, /* LPO clock */
mbed_official 324:406fd2029f23 91 kSimClkoutMcgIrcClk, /* MCG out clock */
mbed_official 324:406fd2029f23 92 kSimClkoutRtc32kClk, /* RTC 32k clock */
mbed_official 324:406fd2029f23 93 kSimClkoutOscErClk,
mbed_official 324:406fd2029f23 94 KsimClkoutIrcClk
mbed_official 324:406fd2029f23 95 } sim_clkout_clock_sel_t;
mbed_official 324:406fd2029f23 96
mbed_official 324:406fd2029f23 97 /*! @brief SIM RTCCLKOUTSEL clock source select */
mbed_official 324:406fd2029f23 98 typedef enum _sim_rtcclkout_clock_sel
mbed_official 324:406fd2029f23 99 {
mbed_official 324:406fd2029f23 100 kSimRtcClkout1hzClk, /* 1Hz clock */
mbed_official 324:406fd2029f23 101 kSimRtcClkout32kClk /* 32KHz clock */
mbed_official 324:406fd2029f23 102 } sim_rtcclkout_clock_sel_t;
mbed_official 324:406fd2029f23 103
mbed_official 324:406fd2029f23 104 /*******************************************************************************
mbed_official 324:406fd2029f23 105 * API
mbed_official 324:406fd2029f23 106 ******************************************************************************/
mbed_official 324:406fd2029f23 107
mbed_official 324:406fd2029f23 108 #if defined(__cplusplus)
mbed_official 324:406fd2029f23 109 extern "C" {
mbed_official 324:406fd2029f23 110 #endif /* __cplusplus*/
mbed_official 324:406fd2029f23 111
mbed_official 324:406fd2029f23 112 /*! @name IP related clock feature APIs*/
mbed_official 324:406fd2029f23 113 /*@{*/
mbed_official 324:406fd2029f23 114
mbed_official 324:406fd2029f23 115 /*!
mbed_official 324:406fd2029f23 116 * @brief Enable the clock for DMA module.
mbed_official 324:406fd2029f23 117 *
mbed_official 324:406fd2029f23 118 * This function enables the clock for DMA moudle.
mbed_official 324:406fd2029f23 119 * @param instance module device instance
mbed_official 324:406fd2029f23 120 */
mbed_official 324:406fd2029f23 121 void SIM_HAL_EnableDmaClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 122
mbed_official 324:406fd2029f23 123 /*!
mbed_official 324:406fd2029f23 124 * @brief Disable the clock for DMA module.
mbed_official 324:406fd2029f23 125 *
mbed_official 324:406fd2029f23 126 * This function disables the clock for DMA moudle.
mbed_official 324:406fd2029f23 127 *
mbed_official 324:406fd2029f23 128 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 129 * @param instance module device instance
mbed_official 324:406fd2029f23 130 */
mbed_official 324:406fd2029f23 131 void SIM_HAL_DisableDmaClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 132
mbed_official 324:406fd2029f23 133 /*!
mbed_official 324:406fd2029f23 134 * @brief Get the the clock gate state for DMA module.
mbed_official 324:406fd2029f23 135 *
mbed_official 324:406fd2029f23 136 * This function will get the clock gate state for DMA moudle.
mbed_official 324:406fd2029f23 137 *
mbed_official 324:406fd2029f23 138 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 139 * @param instance module device instance
mbed_official 324:406fd2029f23 140 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 141 */
mbed_official 324:406fd2029f23 142 bool SIM_HAL_GetDmaGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 143
mbed_official 324:406fd2029f23 144 /*!
mbed_official 324:406fd2029f23 145 * @brief Enable the clock for DMAMUX module.
mbed_official 324:406fd2029f23 146 *
mbed_official 324:406fd2029f23 147 * This function enables the clock for DMAMUX moudle.
mbed_official 324:406fd2029f23 148 *
mbed_official 324:406fd2029f23 149 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 150 * @param instance module device instance
mbed_official 324:406fd2029f23 151 */
mbed_official 324:406fd2029f23 152 void SIM_HAL_EnableDmamuxClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 153
mbed_official 324:406fd2029f23 154 /*!
mbed_official 324:406fd2029f23 155 * @brief Disable the clock for DMAMUX module.
mbed_official 324:406fd2029f23 156 *
mbed_official 324:406fd2029f23 157 * This function disables the clock for DMAMUX moudle.
mbed_official 324:406fd2029f23 158 *
mbed_official 324:406fd2029f23 159 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 160 * @param instance module device instance
mbed_official 324:406fd2029f23 161 */
mbed_official 324:406fd2029f23 162 void SIM_HAL_DisableDmamuxClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 163
mbed_official 324:406fd2029f23 164 /*!
mbed_official 324:406fd2029f23 165 * @brief Get the the clock gate state for DMAMUX module.
mbed_official 324:406fd2029f23 166 *
mbed_official 324:406fd2029f23 167 * This function will get the clock gate state for DMAMUX moudle.
mbed_official 324:406fd2029f23 168 *
mbed_official 324:406fd2029f23 169 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 170 * @param instance module device instance
mbed_official 324:406fd2029f23 171 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 172 */
mbed_official 324:406fd2029f23 173 bool SIM_HAL_GetDmamuxGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 174
mbed_official 324:406fd2029f23 175 /*!
mbed_official 324:406fd2029f23 176 * @brief Enable the clock for PORT module.
mbed_official 324:406fd2029f23 177 *
mbed_official 324:406fd2029f23 178 * This function enables the clock for PORT moudle.
mbed_official 324:406fd2029f23 179 *
mbed_official 324:406fd2029f23 180 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 181 * @param instance module device instance
mbed_official 324:406fd2029f23 182 */
mbed_official 324:406fd2029f23 183 void SIM_HAL_EnablePortClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 184
mbed_official 324:406fd2029f23 185 /*!
mbed_official 324:406fd2029f23 186 * @brief Disable the clock for PORT module.
mbed_official 324:406fd2029f23 187 *
mbed_official 324:406fd2029f23 188 * This function disables the clock for PORT moudle.
mbed_official 324:406fd2029f23 189 *
mbed_official 324:406fd2029f23 190 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 191 * @param instance module device instance
mbed_official 324:406fd2029f23 192 */
mbed_official 324:406fd2029f23 193 void SIM_HAL_DisablePortClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 194
mbed_official 324:406fd2029f23 195 /*!
mbed_official 324:406fd2029f23 196 * @brief Get the the clock gate state for PORT module.
mbed_official 324:406fd2029f23 197 *
mbed_official 324:406fd2029f23 198 * This function will get the clock gate state for PORT moudle.
mbed_official 324:406fd2029f23 199 *
mbed_official 324:406fd2029f23 200 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 201 * @param instance module device instance
mbed_official 324:406fd2029f23 202 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 203 */
mbed_official 324:406fd2029f23 204 bool SIM_HAL_GetPortGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 205
mbed_official 324:406fd2029f23 206 /*!
mbed_official 324:406fd2029f23 207 * @brief Enable the clock for EWM module.
mbed_official 324:406fd2029f23 208 *
mbed_official 324:406fd2029f23 209 * This function enables the clock for EWM moudle.
mbed_official 324:406fd2029f23 210 *
mbed_official 324:406fd2029f23 211 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 212 * @param instance module device instance
mbed_official 324:406fd2029f23 213 */
mbed_official 324:406fd2029f23 214 void SIM_HAL_EnableEwmClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 215
mbed_official 324:406fd2029f23 216 /*!
mbed_official 324:406fd2029f23 217 * @brief Disable the clock for EWM module.
mbed_official 324:406fd2029f23 218 *
mbed_official 324:406fd2029f23 219 * This function disables the clock for EWM moudle.
mbed_official 324:406fd2029f23 220 *
mbed_official 324:406fd2029f23 221 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 222 * @param instance module device instance
mbed_official 324:406fd2029f23 223 */
mbed_official 324:406fd2029f23 224 void SIM_HAL_DisableEwmClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 225
mbed_official 324:406fd2029f23 226 /*!
mbed_official 324:406fd2029f23 227 * @brief Get the the clock gate state for EWM module.
mbed_official 324:406fd2029f23 228 *
mbed_official 324:406fd2029f23 229 * This function will get the clock gate state for EWM moudle.
mbed_official 324:406fd2029f23 230 *
mbed_official 324:406fd2029f23 231 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 232 * @param instance module device instance
mbed_official 324:406fd2029f23 233 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 234 */
mbed_official 324:406fd2029f23 235 bool SIM_HAL_GetEwmGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 236
mbed_official 324:406fd2029f23 237 /*!
mbed_official 324:406fd2029f23 238 * @brief Enable the clock for FLEXBUS module.
mbed_official 324:406fd2029f23 239 *
mbed_official 324:406fd2029f23 240 * This function enables the clock for FLEXBUS moudle.
mbed_official 324:406fd2029f23 241 *
mbed_official 324:406fd2029f23 242 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 243 * @param instance module device instance
mbed_official 324:406fd2029f23 244 */
mbed_official 324:406fd2029f23 245 void SIM_HAL_EnableFlexbusClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 246
mbed_official 324:406fd2029f23 247 /*!
mbed_official 324:406fd2029f23 248 * @brief Disable the clock for FLEXBUS module.
mbed_official 324:406fd2029f23 249 *
mbed_official 324:406fd2029f23 250 * This function disables the clock for FLEXBUS moudle.
mbed_official 324:406fd2029f23 251 *
mbed_official 324:406fd2029f23 252 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 253 * @param instance module device instance
mbed_official 324:406fd2029f23 254 */
mbed_official 324:406fd2029f23 255 void SIM_HAL_DisableFlexbusClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 256
mbed_official 324:406fd2029f23 257 /*!
mbed_official 324:406fd2029f23 258 * @brief Get the the clock gate state for FLEXBUS module.
mbed_official 324:406fd2029f23 259 *
mbed_official 324:406fd2029f23 260 * This function will get the clock gate state for FLEXBUS moudle.
mbed_official 324:406fd2029f23 261 *
mbed_official 324:406fd2029f23 262 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 263 * @param instance module device instance
mbed_official 324:406fd2029f23 264 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 265 */
mbed_official 324:406fd2029f23 266 bool SIM_HAL_GetFlexbusGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 267
mbed_official 324:406fd2029f23 268 /*!
mbed_official 324:406fd2029f23 269 * @brief Enable the clock for FTF module.
mbed_official 324:406fd2029f23 270 *
mbed_official 324:406fd2029f23 271 * This function enables the clock for FTF moudle.
mbed_official 324:406fd2029f23 272 *
mbed_official 324:406fd2029f23 273 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 274 * @param instance module device instance
mbed_official 324:406fd2029f23 275 */
mbed_official 324:406fd2029f23 276 void SIM_HAL_EnableFtfClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 277
mbed_official 324:406fd2029f23 278 /*!
mbed_official 324:406fd2029f23 279 * @brief Disable the clock for FTF module.
mbed_official 324:406fd2029f23 280 *
mbed_official 324:406fd2029f23 281 * This function disables the clock for FTF moudle.
mbed_official 324:406fd2029f23 282 *
mbed_official 324:406fd2029f23 283 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 284 * @param instance module device instance
mbed_official 324:406fd2029f23 285 */
mbed_official 324:406fd2029f23 286 void SIM_HAL_DisableFtfClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 287
mbed_official 324:406fd2029f23 288 /*!
mbed_official 324:406fd2029f23 289 * @brief Get the the clock gate state for FTF module.
mbed_official 324:406fd2029f23 290 *
mbed_official 324:406fd2029f23 291 * This function will get the clock gate state for FTF moudle.
mbed_official 324:406fd2029f23 292 *
mbed_official 324:406fd2029f23 293 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 294 * @param instance module device instance
mbed_official 324:406fd2029f23 295 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 296 */
mbed_official 324:406fd2029f23 297 bool SIM_HAL_GetFtfGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 298
mbed_official 324:406fd2029f23 299 /*!
mbed_official 324:406fd2029f23 300 * @brief Enable the clock for CRC module.
mbed_official 324:406fd2029f23 301 *
mbed_official 324:406fd2029f23 302 * This function enables the clock for CRC moudle.
mbed_official 324:406fd2029f23 303 *
mbed_official 324:406fd2029f23 304 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 305 * @param instance module device instance
mbed_official 324:406fd2029f23 306 */
mbed_official 324:406fd2029f23 307 void SIM_HAL_EnableCrcClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 308
mbed_official 324:406fd2029f23 309 /*!
mbed_official 324:406fd2029f23 310 * @brief Disable the clock for CRC module.
mbed_official 324:406fd2029f23 311 *
mbed_official 324:406fd2029f23 312 * This function disables the clock for CRC moudle.
mbed_official 324:406fd2029f23 313 *
mbed_official 324:406fd2029f23 314 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 315 * @param instance module device instance
mbed_official 324:406fd2029f23 316 */
mbed_official 324:406fd2029f23 317 void SIM_HAL_DisableCrcClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 318
mbed_official 324:406fd2029f23 319 /*!
mbed_official 324:406fd2029f23 320 * @brief Get the the clock gate state for CRC module.
mbed_official 324:406fd2029f23 321 *
mbed_official 324:406fd2029f23 322 * This function will get the clock gate state for CRC moudle.
mbed_official 324:406fd2029f23 323 *
mbed_official 324:406fd2029f23 324 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 325 * @param instance module device instance
mbed_official 324:406fd2029f23 326 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 327 */
mbed_official 324:406fd2029f23 328 bool SIM_HAL_GetCrcGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 329
mbed_official 324:406fd2029f23 330 /*!
mbed_official 324:406fd2029f23 331 * @brief Enable the clock for RNGA module.
mbed_official 324:406fd2029f23 332 *
mbed_official 324:406fd2029f23 333 * This function enables the clock for RNGA moudle.
mbed_official 324:406fd2029f23 334 *
mbed_official 324:406fd2029f23 335 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 336 * @param instance module device instance
mbed_official 324:406fd2029f23 337 */
mbed_official 324:406fd2029f23 338 void SIM_HAL_EnableRngaClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 339
mbed_official 324:406fd2029f23 340 /*!
mbed_official 324:406fd2029f23 341 * @brief Disable the clock for RNGA module.
mbed_official 324:406fd2029f23 342 *
mbed_official 324:406fd2029f23 343 * This function disables the clock for RNGA moudle.
mbed_official 324:406fd2029f23 344 *
mbed_official 324:406fd2029f23 345 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 346 * @param instance module device instance
mbed_official 324:406fd2029f23 347 */
mbed_official 324:406fd2029f23 348 void SIM_HAL_DisableRngaClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 349
mbed_official 324:406fd2029f23 350 /*!
mbed_official 324:406fd2029f23 351 * @brief Get the the clock gate state for RNGA module.
mbed_official 324:406fd2029f23 352 *
mbed_official 324:406fd2029f23 353 * This function will get the clock gate state for RNGA moudle.
mbed_official 324:406fd2029f23 354 *
mbed_official 324:406fd2029f23 355 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 356 * @param instance module device instance
mbed_official 324:406fd2029f23 357 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 358 */
mbed_official 324:406fd2029f23 359 bool SIM_HAL_GetRngaGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 360
mbed_official 324:406fd2029f23 361 /*!
mbed_official 324:406fd2029f23 362 * @brief Enable the clock for ADC module.
mbed_official 324:406fd2029f23 363 *
mbed_official 324:406fd2029f23 364 * This function enables the clock for ADC moudle.
mbed_official 324:406fd2029f23 365 *
mbed_official 324:406fd2029f23 366 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 367 * @param instance module device instance
mbed_official 324:406fd2029f23 368 */
mbed_official 324:406fd2029f23 369 void SIM_HAL_EnableAdcClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 370
mbed_official 324:406fd2029f23 371 /*!
mbed_official 324:406fd2029f23 372 * @brief Disable the clock for ADC module.
mbed_official 324:406fd2029f23 373 *
mbed_official 324:406fd2029f23 374 * This function disables the clock for ADC moudle.
mbed_official 324:406fd2029f23 375 *
mbed_official 324:406fd2029f23 376 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 377 * @param instance module device instance
mbed_official 324:406fd2029f23 378 */
mbed_official 324:406fd2029f23 379 void SIM_HAL_DisableAdcClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 380
mbed_official 324:406fd2029f23 381 /*!
mbed_official 324:406fd2029f23 382 * @brief Get the the clock gate state for ADC module.
mbed_official 324:406fd2029f23 383 *
mbed_official 324:406fd2029f23 384 * This function will get the clock gate state for ADC moudle.
mbed_official 324:406fd2029f23 385 *
mbed_official 324:406fd2029f23 386 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 387 * @param instance module device instance
mbed_official 324:406fd2029f23 388 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 389 */
mbed_official 324:406fd2029f23 390 bool SIM_HAL_GetAdcGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 391
mbed_official 324:406fd2029f23 392 /*!
mbed_official 324:406fd2029f23 393 * @brief Enable the clock for CMP module.
mbed_official 324:406fd2029f23 394 *
mbed_official 324:406fd2029f23 395 * This function enables the clock for CMP moudle.
mbed_official 324:406fd2029f23 396 *
mbed_official 324:406fd2029f23 397 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 398 * @param instance module device instance
mbed_official 324:406fd2029f23 399 */
mbed_official 324:406fd2029f23 400 void SIM_HAL_EnableCmpClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 401
mbed_official 324:406fd2029f23 402 /*!
mbed_official 324:406fd2029f23 403 * @brief Disable the clock for CMP module.
mbed_official 324:406fd2029f23 404 *
mbed_official 324:406fd2029f23 405 * This function disables the clock for CMP moudle.
mbed_official 324:406fd2029f23 406 *
mbed_official 324:406fd2029f23 407 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 408 * @param instance module device instance
mbed_official 324:406fd2029f23 409 */
mbed_official 324:406fd2029f23 410 void SIM_HAL_DisableCmpClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 411
mbed_official 324:406fd2029f23 412 /*!
mbed_official 324:406fd2029f23 413 * @brief Get the the clock gate state for CMP module.
mbed_official 324:406fd2029f23 414 *
mbed_official 324:406fd2029f23 415 * This function will get the clock gate state for CMP moudle.
mbed_official 324:406fd2029f23 416 *
mbed_official 324:406fd2029f23 417 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 418 * @param instance module device instance
mbed_official 324:406fd2029f23 419 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 420 */
mbed_official 324:406fd2029f23 421 bool SIM_HAL_GetCmpGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 422
mbed_official 324:406fd2029f23 423 /*!
mbed_official 324:406fd2029f23 424 * @brief Enable the clock for DAC module.
mbed_official 324:406fd2029f23 425 *
mbed_official 324:406fd2029f23 426 * This function enables the clock for DAC moudle.
mbed_official 324:406fd2029f23 427 *
mbed_official 324:406fd2029f23 428 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 429 * @param instance module device instance
mbed_official 324:406fd2029f23 430 */
mbed_official 324:406fd2029f23 431 void SIM_HAL_EnableDacClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 432
mbed_official 324:406fd2029f23 433 /*!
mbed_official 324:406fd2029f23 434 * @brief Disable the clock for DAC module.
mbed_official 324:406fd2029f23 435 *
mbed_official 324:406fd2029f23 436 * This function disables the clock for DAC moudle.
mbed_official 324:406fd2029f23 437 *
mbed_official 324:406fd2029f23 438 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 439 * @param instance module device instance
mbed_official 324:406fd2029f23 440 */
mbed_official 324:406fd2029f23 441 void SIM_HAL_DisableDacClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 442
mbed_official 324:406fd2029f23 443 /*!
mbed_official 324:406fd2029f23 444 * @brief Get the the clock gate state for DAC module.
mbed_official 324:406fd2029f23 445 *
mbed_official 324:406fd2029f23 446 * This function will get the clock gate state for DAC moudle.
mbed_official 324:406fd2029f23 447 *
mbed_official 324:406fd2029f23 448 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 449 * @param instance module device instance
mbed_official 324:406fd2029f23 450 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 451 */
mbed_official 324:406fd2029f23 452 bool SIM_HAL_GetDacGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 453
mbed_official 324:406fd2029f23 454 /*!
mbed_official 324:406fd2029f23 455 * @brief Enable the clock for VREF module.
mbed_official 324:406fd2029f23 456 *
mbed_official 324:406fd2029f23 457 * This function enables the clock for VREF moudle.
mbed_official 324:406fd2029f23 458 *
mbed_official 324:406fd2029f23 459 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 460 * @param instance module device instance
mbed_official 324:406fd2029f23 461 */
mbed_official 324:406fd2029f23 462 void SIM_HAL_EnableVrefClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 463
mbed_official 324:406fd2029f23 464 /*!
mbed_official 324:406fd2029f23 465 * @brief Disable the clock for VREF module.
mbed_official 324:406fd2029f23 466 *
mbed_official 324:406fd2029f23 467 * This function disables the clock for VREF moudle.
mbed_official 324:406fd2029f23 468 *
mbed_official 324:406fd2029f23 469 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 470 * @param instance module device instance
mbed_official 324:406fd2029f23 471 */
mbed_official 324:406fd2029f23 472 void SIM_HAL_DisableVrefClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 473
mbed_official 324:406fd2029f23 474 /*!
mbed_official 324:406fd2029f23 475 * @brief Get the the clock gate state for VREF module.
mbed_official 324:406fd2029f23 476 *
mbed_official 324:406fd2029f23 477 * This function will get the clock gate state for VREF moudle.
mbed_official 324:406fd2029f23 478 *
mbed_official 324:406fd2029f23 479 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 480 * @param instance module device instance
mbed_official 324:406fd2029f23 481 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 482 */
mbed_official 324:406fd2029f23 483 bool SIM_HAL_GetVrefGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 484
mbed_official 324:406fd2029f23 485 /*!
mbed_official 324:406fd2029f23 486 * @brief Enable the clock for SAI module.
mbed_official 324:406fd2029f23 487 *
mbed_official 324:406fd2029f23 488 * This function enables the clock for SAI moudle.
mbed_official 324:406fd2029f23 489 *
mbed_official 324:406fd2029f23 490 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 491 * @param instance module device instance
mbed_official 324:406fd2029f23 492 */
mbed_official 324:406fd2029f23 493 void SIM_HAL_EnableSaiClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 494
mbed_official 324:406fd2029f23 495 /*!
mbed_official 324:406fd2029f23 496 * @brief Disable the clock for SAI module.
mbed_official 324:406fd2029f23 497 *
mbed_official 324:406fd2029f23 498 * This function disables the clock for SAI moudle.
mbed_official 324:406fd2029f23 499 *
mbed_official 324:406fd2029f23 500 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 501 * @param instance module device instance
mbed_official 324:406fd2029f23 502 */
mbed_official 324:406fd2029f23 503 void SIM_HAL_DisableSaiClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 504
mbed_official 324:406fd2029f23 505 /*!
mbed_official 324:406fd2029f23 506 * @brief Get the the clock gate state for SAI module.
mbed_official 324:406fd2029f23 507 *
mbed_official 324:406fd2029f23 508 * This function will get the clock gate state for SAI moudle.
mbed_official 324:406fd2029f23 509 *
mbed_official 324:406fd2029f23 510 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 511 * @param instance module device instance
mbed_official 324:406fd2029f23 512 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 513 */
mbed_official 324:406fd2029f23 514 bool SIM_HAL_GetSaiGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 515
mbed_official 324:406fd2029f23 516 /*!
mbed_official 324:406fd2029f23 517 * @brief Enable the clock for PDB module.
mbed_official 324:406fd2029f23 518 *
mbed_official 324:406fd2029f23 519 * This function enables the clock for PDB moudle.
mbed_official 324:406fd2029f23 520 *
mbed_official 324:406fd2029f23 521 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 522 * @param instance module device instance
mbed_official 324:406fd2029f23 523 */
mbed_official 324:406fd2029f23 524 void SIM_HAL_EnablePdbClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 525
mbed_official 324:406fd2029f23 526 /*!
mbed_official 324:406fd2029f23 527 * @brief Disable the clock for PDB module.
mbed_official 324:406fd2029f23 528 *
mbed_official 324:406fd2029f23 529 * This function disables the clock for PDB moudle.
mbed_official 324:406fd2029f23 530 *
mbed_official 324:406fd2029f23 531 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 532 * @param instance module device instance
mbed_official 324:406fd2029f23 533 */
mbed_official 324:406fd2029f23 534 void SIM_HAL_DisablePdbClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 535
mbed_official 324:406fd2029f23 536 /*!
mbed_official 324:406fd2029f23 537 * @brief Get the the clock gate state for PDB module.
mbed_official 324:406fd2029f23 538 *
mbed_official 324:406fd2029f23 539 * This function will get the clock gate state for PDB moudle.
mbed_official 324:406fd2029f23 540 *
mbed_official 324:406fd2029f23 541 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 542 * @param instance module device instance
mbed_official 324:406fd2029f23 543 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 544 */
mbed_official 324:406fd2029f23 545 bool SIM_HAL_GetPdbGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 546
mbed_official 324:406fd2029f23 547 /*!
mbed_official 324:406fd2029f23 548 * @brief Enable the clock for FTM module.
mbed_official 324:406fd2029f23 549 *
mbed_official 324:406fd2029f23 550 * This function enables the clock for FTM moudle.
mbed_official 324:406fd2029f23 551 *
mbed_official 324:406fd2029f23 552 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 553 * @param instance module device instance
mbed_official 324:406fd2029f23 554 */
mbed_official 324:406fd2029f23 555 void SIM_HAL_EnableFtmClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 556
mbed_official 324:406fd2029f23 557 /*!
mbed_official 324:406fd2029f23 558 * @brief Disable the clock for FTM module.
mbed_official 324:406fd2029f23 559 *
mbed_official 324:406fd2029f23 560 * This function disables the clock for FTM moudle.
mbed_official 324:406fd2029f23 561 *
mbed_official 324:406fd2029f23 562 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 563 * @param instance module device instance
mbed_official 324:406fd2029f23 564 */
mbed_official 324:406fd2029f23 565 void SIM_HAL_DisableFtmClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 566
mbed_official 324:406fd2029f23 567 /*!
mbed_official 324:406fd2029f23 568 * @brief Get the the clock gate state for FTM module.
mbed_official 324:406fd2029f23 569 *
mbed_official 324:406fd2029f23 570 * This function will get the clock gate state for FTM moudle.
mbed_official 324:406fd2029f23 571 *
mbed_official 324:406fd2029f23 572 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 573 * @param instance module device instance
mbed_official 324:406fd2029f23 574 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 575 */
mbed_official 324:406fd2029f23 576 bool SIM_HAL_GetFtmGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 577
mbed_official 324:406fd2029f23 578 /*!
mbed_official 324:406fd2029f23 579 * @brief Enable the clock for PIT module.
mbed_official 324:406fd2029f23 580 *
mbed_official 324:406fd2029f23 581 * This function enables the clock for PIT moudle.
mbed_official 324:406fd2029f23 582 *
mbed_official 324:406fd2029f23 583 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 584 * @param instance module device instance
mbed_official 324:406fd2029f23 585 */
mbed_official 324:406fd2029f23 586 void SIM_HAL_EnablePitClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 587
mbed_official 324:406fd2029f23 588 /*!
mbed_official 324:406fd2029f23 589 * @brief Disable the clock for PIT module.
mbed_official 324:406fd2029f23 590 *
mbed_official 324:406fd2029f23 591 * This function disables the clock for PIT moudle.
mbed_official 324:406fd2029f23 592 *
mbed_official 324:406fd2029f23 593 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 594 * @param instance module device instance
mbed_official 324:406fd2029f23 595 */
mbed_official 324:406fd2029f23 596 void SIM_HAL_DisablePitClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 597
mbed_official 324:406fd2029f23 598 /*!
mbed_official 324:406fd2029f23 599 * @brief Get the the clock gate state for PIT module.
mbed_official 324:406fd2029f23 600 *
mbed_official 324:406fd2029f23 601 * This function will get the clock gate state for PIT moudle.
mbed_official 324:406fd2029f23 602 *
mbed_official 324:406fd2029f23 603 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 604 * @param instance module device instance
mbed_official 324:406fd2029f23 605 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 606 */
mbed_official 324:406fd2029f23 607 bool SIM_HAL_GetPitGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 608
mbed_official 324:406fd2029f23 609 /*!
mbed_official 324:406fd2029f23 610 * @brief Enable the clock for LPTIMER module.
mbed_official 324:406fd2029f23 611 *
mbed_official 324:406fd2029f23 612 * This function enables the clock for LPTIMER moudle.
mbed_official 324:406fd2029f23 613 *
mbed_official 324:406fd2029f23 614 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 615 * @param instance module device instance
mbed_official 324:406fd2029f23 616 */
mbed_official 324:406fd2029f23 617 void SIM_HAL_EnableLptimerClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 618
mbed_official 324:406fd2029f23 619 /*!
mbed_official 324:406fd2029f23 620 * @brief Disable the clock for LPTIMER module.
mbed_official 324:406fd2029f23 621 *
mbed_official 324:406fd2029f23 622 * This function disables the clock for LPTIMER moudle.
mbed_official 324:406fd2029f23 623 *
mbed_official 324:406fd2029f23 624 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 625 * @param instance module device instance
mbed_official 324:406fd2029f23 626 */
mbed_official 324:406fd2029f23 627 void SIM_HAL_DisableLptimerClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 628
mbed_official 324:406fd2029f23 629 /*!
mbed_official 324:406fd2029f23 630 * @brief Get the the clock gate state for LPTIMER module.
mbed_official 324:406fd2029f23 631 *
mbed_official 324:406fd2029f23 632 * This function will get the clock gate state for LPTIMER moudle.
mbed_official 324:406fd2029f23 633 *
mbed_official 324:406fd2029f23 634 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 635 * @param instance module device instance
mbed_official 324:406fd2029f23 636 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 637 */
mbed_official 324:406fd2029f23 638 bool SIM_HAL_GetLptimerGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 639
mbed_official 324:406fd2029f23 640 /*!
mbed_official 324:406fd2029f23 641 * @brief Enable the clock for RTC module.
mbed_official 324:406fd2029f23 642 *
mbed_official 324:406fd2029f23 643 * This function enables the clock for RTC moudle.
mbed_official 324:406fd2029f23 644 *
mbed_official 324:406fd2029f23 645 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 646 * @param instance module device instance
mbed_official 324:406fd2029f23 647 */
mbed_official 324:406fd2029f23 648 void SIM_HAL_EnableRtcClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 649
mbed_official 324:406fd2029f23 650 /*!
mbed_official 324:406fd2029f23 651 * @brief Disable the clock for RTC module.
mbed_official 324:406fd2029f23 652 *
mbed_official 324:406fd2029f23 653 * This function disables the clock for RTC moudle.
mbed_official 324:406fd2029f23 654 *
mbed_official 324:406fd2029f23 655 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 656 * @param instance module device instance
mbed_official 324:406fd2029f23 657 */
mbed_official 324:406fd2029f23 658 void SIM_HAL_DisableRtcClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 659
mbed_official 324:406fd2029f23 660 /*!
mbed_official 324:406fd2029f23 661 * @brief Get the the clock gate state for RTC module.
mbed_official 324:406fd2029f23 662 *
mbed_official 324:406fd2029f23 663 * This function will get the clock gate state for RTC moudle.
mbed_official 324:406fd2029f23 664 *
mbed_official 324:406fd2029f23 665 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 666 * @param instance module device instance
mbed_official 324:406fd2029f23 667 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 668 */
mbed_official 324:406fd2029f23 669 bool SIM_HAL_GetRtcGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 670
mbed_official 324:406fd2029f23 671 /*!
mbed_official 324:406fd2029f23 672 * @brief Enable the clock for USBFS module.
mbed_official 324:406fd2029f23 673 *
mbed_official 324:406fd2029f23 674 * This function enables the clock for USBFS moudle.
mbed_official 324:406fd2029f23 675 *
mbed_official 324:406fd2029f23 676 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 677 * @param instance module device instance
mbed_official 324:406fd2029f23 678 */
mbed_official 324:406fd2029f23 679 void SIM_HAL_EnableUsbClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 680
mbed_official 324:406fd2029f23 681 /*!
mbed_official 324:406fd2029f23 682 * @brief Disable the clock for USBFS module.
mbed_official 324:406fd2029f23 683 *
mbed_official 324:406fd2029f23 684 * This function disables the clock for USBFS moudle.
mbed_official 324:406fd2029f23 685 *
mbed_official 324:406fd2029f23 686 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 687 * @param instance module device instance
mbed_official 324:406fd2029f23 688 */
mbed_official 324:406fd2029f23 689 void SIM_HAL_DisableUsbClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 690
mbed_official 324:406fd2029f23 691 /*!
mbed_official 324:406fd2029f23 692 * @brief Get the the clock gate state for USB module.
mbed_official 324:406fd2029f23 693 *
mbed_official 324:406fd2029f23 694 * This function will get the clock gate state for USB moudle.
mbed_official 324:406fd2029f23 695 *
mbed_official 324:406fd2029f23 696 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 697 * @param instance module device instance
mbed_official 324:406fd2029f23 698 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 699 */
mbed_official 324:406fd2029f23 700 bool SIM_HAL_GetUsbGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 701
mbed_official 324:406fd2029f23 702 /*!
mbed_official 324:406fd2029f23 703 * @brief Enable the clock for SPI module.
mbed_official 324:406fd2029f23 704 *
mbed_official 324:406fd2029f23 705 * This function enables the clock for SPI moudle.
mbed_official 324:406fd2029f23 706 *
mbed_official 324:406fd2029f23 707 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 708 * @param instance module device instance
mbed_official 324:406fd2029f23 709 */
mbed_official 324:406fd2029f23 710 void SIM_HAL_EnableSpiClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 711
mbed_official 324:406fd2029f23 712 /*!
mbed_official 324:406fd2029f23 713 * @brief Disable the clock for SPI module.
mbed_official 324:406fd2029f23 714 *
mbed_official 324:406fd2029f23 715 * This function disables the clock for SPI moudle.
mbed_official 324:406fd2029f23 716 *
mbed_official 324:406fd2029f23 717 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 718 * @param instance module device instance
mbed_official 324:406fd2029f23 719 */
mbed_official 324:406fd2029f23 720 void SIM_HAL_DisableSpiClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 721
mbed_official 324:406fd2029f23 722 /*!
mbed_official 324:406fd2029f23 723 * @brief Get the the clock gate state for SPI module.
mbed_official 324:406fd2029f23 724 *
mbed_official 324:406fd2029f23 725 * This function will get the clock gate state for SPI moudle.
mbed_official 324:406fd2029f23 726 *
mbed_official 324:406fd2029f23 727 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 728 * @param instance module device instance
mbed_official 324:406fd2029f23 729 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 730 */
mbed_official 324:406fd2029f23 731 bool SIM_HAL_GetSpiGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 732
mbed_official 324:406fd2029f23 733 /*!
mbed_official 324:406fd2029f23 734 * @brief Enable the clock for I2C module.
mbed_official 324:406fd2029f23 735 *
mbed_official 324:406fd2029f23 736 * This function enables the clock for I2C moudle.
mbed_official 324:406fd2029f23 737 *
mbed_official 324:406fd2029f23 738 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 739 * @param instance module device instance
mbed_official 324:406fd2029f23 740 */
mbed_official 324:406fd2029f23 741 void SIM_HAL_EnableI2cClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 742
mbed_official 324:406fd2029f23 743 /*!
mbed_official 324:406fd2029f23 744 * @brief Disable the clock for I2C module.
mbed_official 324:406fd2029f23 745 *
mbed_official 324:406fd2029f23 746 * This function disables the clock for I2C moudle.
mbed_official 324:406fd2029f23 747 *
mbed_official 324:406fd2029f23 748 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 749 * @param instance module device instance
mbed_official 324:406fd2029f23 750 */
mbed_official 324:406fd2029f23 751 void SIM_HAL_DisableI2cClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 752
mbed_official 324:406fd2029f23 753 /*!
mbed_official 324:406fd2029f23 754 * @brief Get the the clock gate state for I2C module.
mbed_official 324:406fd2029f23 755 *
mbed_official 324:406fd2029f23 756 * This function will get the clock gate state for I2C moudle.
mbed_official 324:406fd2029f23 757 *
mbed_official 324:406fd2029f23 758 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 759 * @param instance module device instance
mbed_official 324:406fd2029f23 760 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 761 */
mbed_official 324:406fd2029f23 762 bool SIM_HAL_GetI2cGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 763
mbed_official 324:406fd2029f23 764 /*!
mbed_official 324:406fd2029f23 765 * @brief Enable the clock for UART module.
mbed_official 324:406fd2029f23 766 *
mbed_official 324:406fd2029f23 767 * This function enables the clock for UART moudle.
mbed_official 324:406fd2029f23 768 *
mbed_official 324:406fd2029f23 769 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 770 * @param instance module device instance
mbed_official 324:406fd2029f23 771 */
mbed_official 324:406fd2029f23 772 void SIM_HAL_EnableUartClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 773
mbed_official 324:406fd2029f23 774 /*!
mbed_official 324:406fd2029f23 775 * @brief Disable the clock for UART module.
mbed_official 324:406fd2029f23 776 *
mbed_official 324:406fd2029f23 777 * This function disables the clock for UART moudle.
mbed_official 324:406fd2029f23 778 *
mbed_official 324:406fd2029f23 779 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 780 * @param instance module device instance
mbed_official 324:406fd2029f23 781 */
mbed_official 324:406fd2029f23 782 void SIM_HAL_DisableUartClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 783
mbed_official 324:406fd2029f23 784 /*!
mbed_official 324:406fd2029f23 785 * @brief Get the the clock gate state for UART module.
mbed_official 324:406fd2029f23 786 *
mbed_official 324:406fd2029f23 787 * This function will get the clock gate state for UART moudle.
mbed_official 324:406fd2029f23 788 *
mbed_official 324:406fd2029f23 789 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 790 * @param instance module device instance
mbed_official 324:406fd2029f23 791 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 792 */
mbed_official 324:406fd2029f23 793 bool SIM_HAL_GetUartGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 794
mbed_official 324:406fd2029f23 795 /*!
mbed_official 324:406fd2029f23 796 * @brief Enable the clock for LPUART module.
mbed_official 324:406fd2029f23 797 *
mbed_official 324:406fd2029f23 798 * This function enables the clock for LPUART moudle.
mbed_official 324:406fd2029f23 799 *
mbed_official 324:406fd2029f23 800 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 801 * @param instance module device instance
mbed_official 324:406fd2029f23 802 */
mbed_official 324:406fd2029f23 803 void SIM_HAL_EnableLpuartClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 804
mbed_official 324:406fd2029f23 805 /*!
mbed_official 324:406fd2029f23 806 * @brief Disable the clock for LPUART module.
mbed_official 324:406fd2029f23 807 *
mbed_official 324:406fd2029f23 808 * This function disables the clock for LPUART moudle.
mbed_official 324:406fd2029f23 809 *
mbed_official 324:406fd2029f23 810 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 811 * @param instance module device instance
mbed_official 324:406fd2029f23 812 */
mbed_official 324:406fd2029f23 813 void SIM_HAL_DisableLpuartClock(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 814
mbed_official 324:406fd2029f23 815 /*!
mbed_official 324:406fd2029f23 816 * @brief Get the the clock gate state for LPUART module.
mbed_official 324:406fd2029f23 817 *
mbed_official 324:406fd2029f23 818 * This function will get the clock gate state for LPUART moudle.
mbed_official 324:406fd2029f23 819 *
mbed_official 324:406fd2029f23 820 * @param baseAddr Base address for current SIM instance.
mbed_official 324:406fd2029f23 821 * @param instance module device instance
mbed_official 324:406fd2029f23 822 * @return state true - ungated(Enabled), false - gated (Disabled)
mbed_official 324:406fd2029f23 823 */
mbed_official 324:406fd2029f23 824 bool SIM_HAL_GetLpuartGateCmd(uint32_t baseAddr, uint32_t instance);
mbed_official 324:406fd2029f23 825
mbed_official 324:406fd2029f23 826 /*@}*/
mbed_official 324:406fd2029f23 827
mbed_official 324:406fd2029f23 828 #if defined(__cplusplus)
mbed_official 324:406fd2029f23 829 }
mbed_official 324:406fd2029f23 830 #endif /* __cplusplus*/
mbed_official 324:406fd2029f23 831
mbed_official 324:406fd2029f23 832
mbed_official 324:406fd2029f23 833 /*! @}*/
mbed_official 324:406fd2029f23 834
mbed_official 324:406fd2029f23 835 #endif /* __FSL_SIM_HAL_K22F51212_H__ */
mbed_official 324:406fd2029f23 836 /*******************************************************************************
mbed_official 324:406fd2029f23 837 * EOF
mbed_official 324:406fd2029f23 838 ******************************************************************************/
mbed_official 324:406fd2029f23 839