Morpheus / target-mcu-k64f

Fork of target-mcu-k64f by -deleted-

Committer:
screamer
Date:
Wed Mar 23 21:24:48 2016 +0000
Revision:
0:c5e2f793b59a
Initial revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:c5e2f793b59a 1 /*
screamer 0:c5e2f793b59a 2 * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
screamer 0:c5e2f793b59a 3 * All rights reserved.
screamer 0:c5e2f793b59a 4 *
screamer 0:c5e2f793b59a 5 * Redistribution and use in source and binary forms, with or without modification,
screamer 0:c5e2f793b59a 6 * are permitted provided that the following conditions are met:
screamer 0:c5e2f793b59a 7 *
screamer 0:c5e2f793b59a 8 * o Redistributions of source code must retain the above copyright notice, this list
screamer 0:c5e2f793b59a 9 * of conditions and the following disclaimer.
screamer 0:c5e2f793b59a 10 *
screamer 0:c5e2f793b59a 11 * o Redistributions in binary form must reproduce the above copyright notice, this
screamer 0:c5e2f793b59a 12 * list of conditions and the following disclaimer in the documentation and/or
screamer 0:c5e2f793b59a 13 * other materials provided with the distribution.
screamer 0:c5e2f793b59a 14 *
screamer 0:c5e2f793b59a 15 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
screamer 0:c5e2f793b59a 16 * contributors may be used to endorse or promote products derived from this
screamer 0:c5e2f793b59a 17 * software without specific prior written permission.
screamer 0:c5e2f793b59a 18 *
screamer 0:c5e2f793b59a 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
screamer 0:c5e2f793b59a 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
screamer 0:c5e2f793b59a 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
screamer 0:c5e2f793b59a 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
screamer 0:c5e2f793b59a 23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
screamer 0:c5e2f793b59a 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
screamer 0:c5e2f793b59a 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
screamer 0:c5e2f793b59a 26 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
screamer 0:c5e2f793b59a 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
screamer 0:c5e2f793b59a 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
screamer 0:c5e2f793b59a 29 */
screamer 0:c5e2f793b59a 30
screamer 0:c5e2f793b59a 31 #if !defined(__FSL_CLOCK_K64F12_H__)
screamer 0:c5e2f793b59a 32 #define __FSL_CLOCK_K64F12__H__
screamer 0:c5e2f793b59a 33
screamer 0:c5e2f793b59a 34 /*! @addtogroup clock_manager*/
screamer 0:c5e2f793b59a 35 /*! @{*/
screamer 0:c5e2f793b59a 36
screamer 0:c5e2f793b59a 37 /*! @file*/
screamer 0:c5e2f793b59a 38
screamer 0:c5e2f793b59a 39 /*******************************************************************************
screamer 0:c5e2f793b59a 40 * Definitions
screamer 0:c5e2f793b59a 41 ******************************************************************************/
screamer 0:c5e2f793b59a 42
screamer 0:c5e2f793b59a 43
screamer 0:c5e2f793b59a 44 /*******************************************************************************
screamer 0:c5e2f793b59a 45 * API
screamer 0:c5e2f793b59a 46 ******************************************************************************/
screamer 0:c5e2f793b59a 47
screamer 0:c5e2f793b59a 48 #if defined(__cplusplus)
screamer 0:c5e2f793b59a 49 extern "C" {
screamer 0:c5e2f793b59a 50 #endif /* __cplusplus*/
screamer 0:c5e2f793b59a 51
screamer 0:c5e2f793b59a 52 /*!
screamer 0:c5e2f793b59a 53 * @brief Gets the clock frequency for DMA module.
screamer 0:c5e2f793b59a 54 *
screamer 0:c5e2f793b59a 55 * This function gets the clock frequence for DMA moudle.
screamer 0:c5e2f793b59a 56 * @param instance module device instance
screamer 0:c5e2f793b59a 57 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 58 */
screamer 0:c5e2f793b59a 59 uint32_t CLOCK_SYS_GetDmaFreq(uint32_t instance);
screamer 0:c5e2f793b59a 60
screamer 0:c5e2f793b59a 61 /*!
screamer 0:c5e2f793b59a 62 * @brief Gets the clock frequency for DMAMUX module.
screamer 0:c5e2f793b59a 63 *
screamer 0:c5e2f793b59a 64 * This function gets the clock frequence for DMAMUX moudle.
screamer 0:c5e2f793b59a 65 * @param instance module device instance
screamer 0:c5e2f793b59a 66 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 67 */
screamer 0:c5e2f793b59a 68 uint32_t CLOCK_SYS_GetDmamuxFreq(uint32_t instance);
screamer 0:c5e2f793b59a 69
screamer 0:c5e2f793b59a 70 /*!
screamer 0:c5e2f793b59a 71 * @brief Gets the clock frequency for PORT module.
screamer 0:c5e2f793b59a 72 *
screamer 0:c5e2f793b59a 73 * This function gets the clock frequence for PORT moudle.
screamer 0:c5e2f793b59a 74 * @param instance module device instance
screamer 0:c5e2f793b59a 75 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 76 */
screamer 0:c5e2f793b59a 77 uint32_t CLOCK_SYS_GetPortFreq(uint32_t instance);
screamer 0:c5e2f793b59a 78
screamer 0:c5e2f793b59a 79 /*!
screamer 0:c5e2f793b59a 80 * @brief Gets the clock frequency for MPU module.
screamer 0:c5e2f793b59a 81 *
screamer 0:c5e2f793b59a 82 * This function gets the clock frequence for MPU moudle.
screamer 0:c5e2f793b59a 83 * @param instance module device instance
screamer 0:c5e2f793b59a 84 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 85 */
screamer 0:c5e2f793b59a 86 uint32_t CLOCK_SYS_GetMpuFreq(uint32_t instance);
screamer 0:c5e2f793b59a 87
screamer 0:c5e2f793b59a 88 /*!
screamer 0:c5e2f793b59a 89 * @brief Gets the clock frequency for EWM module.
screamer 0:c5e2f793b59a 90 *
screamer 0:c5e2f793b59a 91 * This function gets the clock frequence for EWM moudle.
screamer 0:c5e2f793b59a 92 * @param instance module device instance
screamer 0:c5e2f793b59a 93 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 94 */
screamer 0:c5e2f793b59a 95 uint32_t CLOCK_SYS_GetEwmFreq(uint32_t instance);
screamer 0:c5e2f793b59a 96
screamer 0:c5e2f793b59a 97 /*!
screamer 0:c5e2f793b59a 98 * @brief Gets the clock frequency for FLEXBUS module.
screamer 0:c5e2f793b59a 99 *
screamer 0:c5e2f793b59a 100 * This function gets the clock frequence for FLEXBUS moudle.
screamer 0:c5e2f793b59a 101 * @param instance module device instance
screamer 0:c5e2f793b59a 102 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 103 */
screamer 0:c5e2f793b59a 104 uint32_t CLOCK_SYS_GetFlexbusFreq(uint32_t instance);
screamer 0:c5e2f793b59a 105
screamer 0:c5e2f793b59a 106 /*!
screamer 0:c5e2f793b59a 107 * @brief Gets the clock frequency for FTF module. (Flash Memory)
screamer 0:c5e2f793b59a 108 *
screamer 0:c5e2f793b59a 109 * This function gets the clock frequence for FTF module. (Flash Memory)
screamer 0:c5e2f793b59a 110 * @param instance module device instance
screamer 0:c5e2f793b59a 111 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 112 */
screamer 0:c5e2f793b59a 113 uint32_t CLOCK_SYS_GetFtfFreq(uint32_t instance);
screamer 0:c5e2f793b59a 114
screamer 0:c5e2f793b59a 115 /*!
screamer 0:c5e2f793b59a 116 * @brief Gets the clock frequency for CRC module.
screamer 0:c5e2f793b59a 117 *
screamer 0:c5e2f793b59a 118 * This function gets the clock frequence for CRC module.
screamer 0:c5e2f793b59a 119 * @param instance module device instance
screamer 0:c5e2f793b59a 120 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 121 */
screamer 0:c5e2f793b59a 122 uint32_t CLOCK_SYS_GetCrcFreq(uint32_t instance);
screamer 0:c5e2f793b59a 123
screamer 0:c5e2f793b59a 124 /*!
screamer 0:c5e2f793b59a 125 * @brief Gets the clock frequency for RNGA module.
screamer 0:c5e2f793b59a 126 *
screamer 0:c5e2f793b59a 127 * This function gets the clock frequence for RNGA module.
screamer 0:c5e2f793b59a 128 * @param instance module device instance
screamer 0:c5e2f793b59a 129 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 130 */
screamer 0:c5e2f793b59a 131 uint32_t CLOCK_SYS_GetRngaFreq(uint32_t instance);
screamer 0:c5e2f793b59a 132
screamer 0:c5e2f793b59a 133 /*!
screamer 0:c5e2f793b59a 134 * @brief Gets the clock frequency for ADC module.
screamer 0:c5e2f793b59a 135 *
screamer 0:c5e2f793b59a 136 * This function gets the clock frequence for ADC module.
screamer 0:c5e2f793b59a 137 * @param instance module device instance
screamer 0:c5e2f793b59a 138 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 139 */
screamer 0:c5e2f793b59a 140 uint32_t CLOCK_SYS_GetAdcFreq(uint32_t instance);
screamer 0:c5e2f793b59a 141
screamer 0:c5e2f793b59a 142 /*!
screamer 0:c5e2f793b59a 143 * @brief Gets the clock frequency for CMP module.
screamer 0:c5e2f793b59a 144 *
screamer 0:c5e2f793b59a 145 * This function gets the clock frequence for CMP module.
screamer 0:c5e2f793b59a 146 * @param instance module device instance
screamer 0:c5e2f793b59a 147 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 148 */
screamer 0:c5e2f793b59a 149 uint32_t CLOCK_SYS_GetCmpFreq(uint32_t instance);
screamer 0:c5e2f793b59a 150
screamer 0:c5e2f793b59a 151 /*!
screamer 0:c5e2f793b59a 152 * @brief Gets the clock frequency for VREF module.
screamer 0:c5e2f793b59a 153 *
screamer 0:c5e2f793b59a 154 * This function gets the clock frequence for VREF module.
screamer 0:c5e2f793b59a 155 * @param instance module device instance
screamer 0:c5e2f793b59a 156 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 157 */
screamer 0:c5e2f793b59a 158 uint32_t CLOCK_SYS_GetVrefFreq(uint32_t instance);
screamer 0:c5e2f793b59a 159
screamer 0:c5e2f793b59a 160 /*!
screamer 0:c5e2f793b59a 161 * @brief Gets the clock frequency for PDB module.
screamer 0:c5e2f793b59a 162 *
screamer 0:c5e2f793b59a 163 * This function gets the clock frequence for PDB module.
screamer 0:c5e2f793b59a 164 * @param instance module device instance
screamer 0:c5e2f793b59a 165 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 166 */
screamer 0:c5e2f793b59a 167 uint32_t CLOCK_SYS_GetPdbFreq(uint32_t instance);
screamer 0:c5e2f793b59a 168
screamer 0:c5e2f793b59a 169 /*!
screamer 0:c5e2f793b59a 170 * @brief Gets the clock frequency for FTM module. (FlexTimer)
screamer 0:c5e2f793b59a 171 *
screamer 0:c5e2f793b59a 172 * This function gets the clock frequence for FTM module.
screamer 0:c5e2f793b59a 173 * @param instance module device instance
screamer 0:c5e2f793b59a 174 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 175 */
screamer 0:c5e2f793b59a 176 uint32_t CLOCK_SYS_GetFtmFreq(uint32_t instance);
screamer 0:c5e2f793b59a 177
screamer 0:c5e2f793b59a 178 /*!
screamer 0:c5e2f793b59a 179 * @brief Gets the clock frequency for PIT module.
screamer 0:c5e2f793b59a 180 *
screamer 0:c5e2f793b59a 181 * This function gets the clock frequence for PIT module.
screamer 0:c5e2f793b59a 182 * @param instance module device instance
screamer 0:c5e2f793b59a 183 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 184 */
screamer 0:c5e2f793b59a 185 uint32_t CLOCK_SYS_GetPitFreq(uint32_t instance);
screamer 0:c5e2f793b59a 186
screamer 0:c5e2f793b59a 187 /*!
screamer 0:c5e2f793b59a 188 * @brief Gets the clock frequency for CMT module.
screamer 0:c5e2f793b59a 189 *
screamer 0:c5e2f793b59a 190 * This function gets the clock frequence for CMT module.
screamer 0:c5e2f793b59a 191 * @param instance module device instance
screamer 0:c5e2f793b59a 192 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 193 */
screamer 0:c5e2f793b59a 194 uint32_t CLOCK_SYS_GetCmtFreq(uint32_t instance);
screamer 0:c5e2f793b59a 195
screamer 0:c5e2f793b59a 196 /*!
screamer 0:c5e2f793b59a 197 * @brief Gets the clock frequency for ENET module RMII clock.
screamer 0:c5e2f793b59a 198 *
screamer 0:c5e2f793b59a 199 * This function gets the clock frequence for ENET module RMII clock..
screamer 0:c5e2f793b59a 200 * @param instance module device instance
screamer 0:c5e2f793b59a 201 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 202 */
screamer 0:c5e2f793b59a 203 uint32_t CLOCK_SYS_GetEnetRmiiFreq(uint32_t instance);
screamer 0:c5e2f793b59a 204
screamer 0:c5e2f793b59a 205 /*!
screamer 0:c5e2f793b59a 206 * @brief Gets the clock frequency for ENET module TIME clock.
screamer 0:c5e2f793b59a 207 *
screamer 0:c5e2f793b59a 208 * This function gets the clock frequence for ENET module TIME clock..
screamer 0:c5e2f793b59a 209 * @param instance module device instance
screamer 0:c5e2f793b59a 210 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 211 */
screamer 0:c5e2f793b59a 212 uint32_t CLOCK_SYS_GetEnetTimeStampFreq(uint32_t instance);
screamer 0:c5e2f793b59a 213
screamer 0:c5e2f793b59a 214 /*!
screamer 0:c5e2f793b59a 215 * @brief Gets the clock frequency for USB FS OTG module
screamer 0:c5e2f793b59a 216 *
screamer 0:c5e2f793b59a 217 * This function gets the clock frequence for USB FS OTG module.
screamer 0:c5e2f793b59a 218 * @param instance module device instance
screamer 0:c5e2f793b59a 219 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 220 */
screamer 0:c5e2f793b59a 221 uint32_t CLOCK_SYS_GetUsbFreq(uint32_t instance);
screamer 0:c5e2f793b59a 222
screamer 0:c5e2f793b59a 223 /*!
screamer 0:c5e2f793b59a 224 * @brief Gets the clock frequency for USB DCD module
screamer 0:c5e2f793b59a 225 *
screamer 0:c5e2f793b59a 226 * This function gets the clock frequence for USB DCD module.
screamer 0:c5e2f793b59a 227 * @param instance module device instance
screamer 0:c5e2f793b59a 228 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 229 */
screamer 0:c5e2f793b59a 230 uint32_t CLOCK_SYS_GetUsbdcdFreq(uint32_t instance);
screamer 0:c5e2f793b59a 231
screamer 0:c5e2f793b59a 232 /*!
screamer 0:c5e2f793b59a 233 * @brief Gets the clock frequency for SPI module
screamer 0:c5e2f793b59a 234 *
screamer 0:c5e2f793b59a 235 * This function gets the clock frequence for SPI module.
screamer 0:c5e2f793b59a 236 * @param instance module device instance
screamer 0:c5e2f793b59a 237 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 238 */
screamer 0:c5e2f793b59a 239 uint32_t CLOCK_SYS_GetSpiFreq(uint32_t instance);
screamer 0:c5e2f793b59a 240
screamer 0:c5e2f793b59a 241 /*!
screamer 0:c5e2f793b59a 242 * @brief Gets the clock frequency for I2C module
screamer 0:c5e2f793b59a 243 *
screamer 0:c5e2f793b59a 244 * This function gets the clock frequence for I2C module.
screamer 0:c5e2f793b59a 245 * @param instance module device instance
screamer 0:c5e2f793b59a 246 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 247 */
screamer 0:c5e2f793b59a 248 uint32_t CLOCK_SYS_GetI2cFreq(uint32_t instance);
screamer 0:c5e2f793b59a 249
screamer 0:c5e2f793b59a 250 /*!
screamer 0:c5e2f793b59a 251 * @brief Gets the clock frequency for UART module
screamer 0:c5e2f793b59a 252 *
screamer 0:c5e2f793b59a 253 * This function gets the clock frequence for UART module.
screamer 0:c5e2f793b59a 254 * @param instance module device instance
screamer 0:c5e2f793b59a 255 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 256 */
screamer 0:c5e2f793b59a 257 uint32_t CLOCK_SYS_GetUartFreq(uint32_t instance);
screamer 0:c5e2f793b59a 258
screamer 0:c5e2f793b59a 259 /*!
screamer 0:c5e2f793b59a 260 * @brief Gets the clock frequency for SDHC module.
screamer 0:c5e2f793b59a 261 *
screamer 0:c5e2f793b59a 262 * This function gets the clock frequence for SDHC moudle.
screamer 0:c5e2f793b59a 263 * @param instance module device instance
screamer 0:c5e2f793b59a 264 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 265 */
screamer 0:c5e2f793b59a 266 uint32_t CLOCK_SYS_GetSdhcFreq(uint32_t instance);
screamer 0:c5e2f793b59a 267
screamer 0:c5e2f793b59a 268 /*!
screamer 0:c5e2f793b59a 269 * @brief Gets the clock frequency for I2S module.
screamer 0:c5e2f793b59a 270 *
screamer 0:c5e2f793b59a 271 * This function gets the clock frequence for I2S module.
screamer 0:c5e2f793b59a 272 * @param instance module device instance
screamer 0:c5e2f793b59a 273 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 274 */
screamer 0:c5e2f793b59a 275 uint32_t CLOCK_SYS_GetSaiFreq(uint32_t instance);
screamer 0:c5e2f793b59a 276
screamer 0:c5e2f793b59a 277 /*!
screamer 0:c5e2f793b59a 278 * @brief Gets the clock frequency for GPIO module
screamer 0:c5e2f793b59a 279 *
screamer 0:c5e2f793b59a 280 * This function gets the clock frequence for GPIO module.
screamer 0:c5e2f793b59a 281 * @param instance module device instance
screamer 0:c5e2f793b59a 282 * @return freq clock frequence for this module
screamer 0:c5e2f793b59a 283 */
screamer 0:c5e2f793b59a 284 uint32_t CLOCK_SYS_GetGpioFreq(uint32_t instance);
screamer 0:c5e2f793b59a 285
screamer 0:c5e2f793b59a 286 /*!
screamer 0:c5e2f793b59a 287 * @brief Enable the clock for DMA module.
screamer 0:c5e2f793b59a 288 *
screamer 0:c5e2f793b59a 289 * This function enables the clock for DMA moudle.
screamer 0:c5e2f793b59a 290 * @param instance module device instance
screamer 0:c5e2f793b59a 291 */
screamer 0:c5e2f793b59a 292 static inline void CLOCK_SYS_EnableDmaClock(uint32_t instance)
screamer 0:c5e2f793b59a 293 {
screamer 0:c5e2f793b59a 294 SIM_HAL_EnableDmaClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 295 }
screamer 0:c5e2f793b59a 296
screamer 0:c5e2f793b59a 297 /*!
screamer 0:c5e2f793b59a 298 * @brief Disable the clock for DMA module.
screamer 0:c5e2f793b59a 299 *
screamer 0:c5e2f793b59a 300 * This function disables the clock for DMA moudle.
screamer 0:c5e2f793b59a 301 * @param instance module device instance
screamer 0:c5e2f793b59a 302 */
screamer 0:c5e2f793b59a 303 static inline void CLOCK_SYS_DisableDmaClock(uint32_t instance)
screamer 0:c5e2f793b59a 304 {
screamer 0:c5e2f793b59a 305 SIM_HAL_DisableDmaClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 306 }
screamer 0:c5e2f793b59a 307
screamer 0:c5e2f793b59a 308 /*!
screamer 0:c5e2f793b59a 309 * @brief Get the the clock gate state for DMA module.
screamer 0:c5e2f793b59a 310 *
screamer 0:c5e2f793b59a 311 * This function will get the clock gate state for DMA moudle.
screamer 0:c5e2f793b59a 312 * @param instance module device instance
screamer 0:c5e2f793b59a 313 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 314 */
screamer 0:c5e2f793b59a 315 static inline bool CLOCK_SYS_GetDmaGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 316 {
screamer 0:c5e2f793b59a 317 return SIM_HAL_GetDmaGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 318 }
screamer 0:c5e2f793b59a 319
screamer 0:c5e2f793b59a 320 /*!
screamer 0:c5e2f793b59a 321 * @brief Enable the clock for DMAMUX module.
screamer 0:c5e2f793b59a 322 *
screamer 0:c5e2f793b59a 323 * This function enables the clock for DMAMUX moudle.
screamer 0:c5e2f793b59a 324 * @param instance module device instance
screamer 0:c5e2f793b59a 325 */
screamer 0:c5e2f793b59a 326 static inline void CLOCK_SYS_EnableDmamuxClock(uint32_t instance)
screamer 0:c5e2f793b59a 327 {
screamer 0:c5e2f793b59a 328 SIM_HAL_EnableDmamuxClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 329 }
screamer 0:c5e2f793b59a 330
screamer 0:c5e2f793b59a 331 /*!
screamer 0:c5e2f793b59a 332 * @brief Disable the clock for DMAMUX module.
screamer 0:c5e2f793b59a 333 *
screamer 0:c5e2f793b59a 334 * This function disables the clock for DMAMUX moudle.
screamer 0:c5e2f793b59a 335 * @param instance module device instance
screamer 0:c5e2f793b59a 336 */
screamer 0:c5e2f793b59a 337 static inline void CLOCK_SYS_DisableDmamuxClock(uint32_t instance)
screamer 0:c5e2f793b59a 338 {
screamer 0:c5e2f793b59a 339 SIM_HAL_DisableDmamuxClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 340 }
screamer 0:c5e2f793b59a 341
screamer 0:c5e2f793b59a 342 /*!
screamer 0:c5e2f793b59a 343 * @brief Get the the clock gate state for DMAMUX module.
screamer 0:c5e2f793b59a 344 *
screamer 0:c5e2f793b59a 345 * This function will get the clock gate state for DMAMUX moudle.
screamer 0:c5e2f793b59a 346 * @param instance module device instance
screamer 0:c5e2f793b59a 347 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 348 */
screamer 0:c5e2f793b59a 349 static inline bool CLOCK_SYS_GetDmamuxGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 350 {
screamer 0:c5e2f793b59a 351 return SIM_HAL_GetDmamuxGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 352 }
screamer 0:c5e2f793b59a 353
screamer 0:c5e2f793b59a 354 /*!
screamer 0:c5e2f793b59a 355 * @brief Enable the clock for PORT module.
screamer 0:c5e2f793b59a 356 *
screamer 0:c5e2f793b59a 357 * This function enables the clock for PORT moudle.
screamer 0:c5e2f793b59a 358 * @param instance module device instance
screamer 0:c5e2f793b59a 359 */
screamer 0:c5e2f793b59a 360 static inline void CLOCK_SYS_EnablePortClock(uint32_t instance)
screamer 0:c5e2f793b59a 361 {
screamer 0:c5e2f793b59a 362 SIM_HAL_EnablePortClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 363 }
screamer 0:c5e2f793b59a 364
screamer 0:c5e2f793b59a 365 /*!
screamer 0:c5e2f793b59a 366 * @brief Disable the clock for PORT module.
screamer 0:c5e2f793b59a 367 *
screamer 0:c5e2f793b59a 368 * This function disables the clock for PORT moudle.
screamer 0:c5e2f793b59a 369 * @param instance module device instance
screamer 0:c5e2f793b59a 370 */
screamer 0:c5e2f793b59a 371 static inline void CLOCK_SYS_DisablePortClock(uint32_t instance)
screamer 0:c5e2f793b59a 372 {
screamer 0:c5e2f793b59a 373 SIM_HAL_DisablePortClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 374 }
screamer 0:c5e2f793b59a 375
screamer 0:c5e2f793b59a 376 /*!
screamer 0:c5e2f793b59a 377 * @brief Get the the clock gate state for PORT module.
screamer 0:c5e2f793b59a 378 *
screamer 0:c5e2f793b59a 379 * This function will get the clock gate state for PORT moudle.
screamer 0:c5e2f793b59a 380 * @param instance module device instance
screamer 0:c5e2f793b59a 381 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 382 */
screamer 0:c5e2f793b59a 383 static inline bool CLOCK_SYS_GetPortGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 384 {
screamer 0:c5e2f793b59a 385 return SIM_HAL_GetPortGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 386 }
screamer 0:c5e2f793b59a 387
screamer 0:c5e2f793b59a 388 /*!
screamer 0:c5e2f793b59a 389 * @brief Enable the clock for MPU module.
screamer 0:c5e2f793b59a 390 *
screamer 0:c5e2f793b59a 391 * This function enables the clock for MPU moudle.
screamer 0:c5e2f793b59a 392 * @param instance module device instance
screamer 0:c5e2f793b59a 393 */
screamer 0:c5e2f793b59a 394 static inline void CLOCK_SYS_EnableMpuClock(uint32_t instance)
screamer 0:c5e2f793b59a 395 {
screamer 0:c5e2f793b59a 396 SIM_HAL_EnableMpuClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 397 }
screamer 0:c5e2f793b59a 398
screamer 0:c5e2f793b59a 399 /*!
screamer 0:c5e2f793b59a 400 * @brief Disable the clock for MPU module.
screamer 0:c5e2f793b59a 401 *
screamer 0:c5e2f793b59a 402 * This function disables the clock for MPU moudle.
screamer 0:c5e2f793b59a 403 * @param instance module device instance
screamer 0:c5e2f793b59a 404 */
screamer 0:c5e2f793b59a 405 static inline void CLOCK_SYS_DisableMpuClock(uint32_t instance)
screamer 0:c5e2f793b59a 406 {
screamer 0:c5e2f793b59a 407 SIM_HAL_DisableMpuClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 408 }
screamer 0:c5e2f793b59a 409
screamer 0:c5e2f793b59a 410 /*!
screamer 0:c5e2f793b59a 411 * @brief Get the the clock gate state for MPU module.
screamer 0:c5e2f793b59a 412 *
screamer 0:c5e2f793b59a 413 * This function will get the clock gate state for MPU moudle.
screamer 0:c5e2f793b59a 414 * @param instance module device instance
screamer 0:c5e2f793b59a 415 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 416 */
screamer 0:c5e2f793b59a 417 static inline bool CLOCK_SYS_GetMpuGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 418 {
screamer 0:c5e2f793b59a 419 return SIM_HAL_GetMpuGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 420 }
screamer 0:c5e2f793b59a 421
screamer 0:c5e2f793b59a 422 /*!
screamer 0:c5e2f793b59a 423 * @brief Enable the clock for EWM module.
screamer 0:c5e2f793b59a 424 *
screamer 0:c5e2f793b59a 425 * This function enables the clock for EWM moudle.
screamer 0:c5e2f793b59a 426 * @param instance module device instance
screamer 0:c5e2f793b59a 427 */
screamer 0:c5e2f793b59a 428 static inline void CLOCK_SYS_EnableEwmClock(uint32_t instance)
screamer 0:c5e2f793b59a 429 {
screamer 0:c5e2f793b59a 430 SIM_HAL_EnableEwmClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 431 }
screamer 0:c5e2f793b59a 432
screamer 0:c5e2f793b59a 433 /*!
screamer 0:c5e2f793b59a 434 * @brief Disable the clock for EWM module.
screamer 0:c5e2f793b59a 435 *
screamer 0:c5e2f793b59a 436 * This function disables the clock for EWM moudle.
screamer 0:c5e2f793b59a 437 * @param instance module device instance
screamer 0:c5e2f793b59a 438 */
screamer 0:c5e2f793b59a 439 static inline void CLOCK_SYS_DisableEwmClock(uint32_t instance)
screamer 0:c5e2f793b59a 440 {
screamer 0:c5e2f793b59a 441 SIM_HAL_DisableEwmClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 442 }
screamer 0:c5e2f793b59a 443
screamer 0:c5e2f793b59a 444 /*!
screamer 0:c5e2f793b59a 445 * @brief Get the the clock gate state for EWM module.
screamer 0:c5e2f793b59a 446 *
screamer 0:c5e2f793b59a 447 * This function will get the clock gate state for EWM moudle.
screamer 0:c5e2f793b59a 448 * @param instance module device instance
screamer 0:c5e2f793b59a 449 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 450 */
screamer 0:c5e2f793b59a 451 static inline bool CLOCK_SYS_GetEwmGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 452 {
screamer 0:c5e2f793b59a 453 return SIM_HAL_GetEwmGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 454 }
screamer 0:c5e2f793b59a 455
screamer 0:c5e2f793b59a 456 /*!
screamer 0:c5e2f793b59a 457 * @brief Enable the clock for FLEXBUS module.
screamer 0:c5e2f793b59a 458 *
screamer 0:c5e2f793b59a 459 * This function enables the clock for FLEXBUS moudle.
screamer 0:c5e2f793b59a 460 * @param instance module device instance
screamer 0:c5e2f793b59a 461 */
screamer 0:c5e2f793b59a 462 static inline void CLOCK_SYS_EnableFlexbusClock(uint32_t instance)
screamer 0:c5e2f793b59a 463 {
screamer 0:c5e2f793b59a 464 SIM_HAL_EnableFlexbusClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 465 }
screamer 0:c5e2f793b59a 466
screamer 0:c5e2f793b59a 467 /*!
screamer 0:c5e2f793b59a 468 * @brief Disable the clock for FLEXBUS module.
screamer 0:c5e2f793b59a 469 *
screamer 0:c5e2f793b59a 470 * This function disables the clock for FLEXBUS moudle.
screamer 0:c5e2f793b59a 471 * @param instance module device instance
screamer 0:c5e2f793b59a 472 */
screamer 0:c5e2f793b59a 473 static inline void CLOCK_SYS_DisableFlexbusClock(uint32_t instance)
screamer 0:c5e2f793b59a 474 {
screamer 0:c5e2f793b59a 475 SIM_HAL_DisableFlexbusClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 476 }
screamer 0:c5e2f793b59a 477
screamer 0:c5e2f793b59a 478 /*!
screamer 0:c5e2f793b59a 479 * @brief Get the the clock gate state for FLEXBUS module.
screamer 0:c5e2f793b59a 480 *
screamer 0:c5e2f793b59a 481 * This function will get the clock gate state for FLEXBUS moudle.
screamer 0:c5e2f793b59a 482 * @param instance module device instance
screamer 0:c5e2f793b59a 483 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 484 */
screamer 0:c5e2f793b59a 485 static inline bool CLOCK_SYS_GetFlexbusGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 486 {
screamer 0:c5e2f793b59a 487 return SIM_HAL_GetFlexbusGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 488 }
screamer 0:c5e2f793b59a 489
screamer 0:c5e2f793b59a 490 /*!
screamer 0:c5e2f793b59a 491 * @brief Enable the clock for FTF module.
screamer 0:c5e2f793b59a 492 *
screamer 0:c5e2f793b59a 493 * This function enables the clock for FTF moudle.
screamer 0:c5e2f793b59a 494 * @param instance module device instance
screamer 0:c5e2f793b59a 495 */
screamer 0:c5e2f793b59a 496 static inline void CLOCK_SYS_EnableFtfClock(uint32_t instance)
screamer 0:c5e2f793b59a 497 {
screamer 0:c5e2f793b59a 498 SIM_HAL_EnableFtfClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 499 }
screamer 0:c5e2f793b59a 500
screamer 0:c5e2f793b59a 501 /*!
screamer 0:c5e2f793b59a 502 * @brief Disable the clock for FTF module.
screamer 0:c5e2f793b59a 503 *
screamer 0:c5e2f793b59a 504 * This function disables the clock for FTF moudle.
screamer 0:c5e2f793b59a 505 * @param instance module device instance
screamer 0:c5e2f793b59a 506 */
screamer 0:c5e2f793b59a 507 static inline void CLOCK_SYS_DisableFtfClock(uint32_t instance)
screamer 0:c5e2f793b59a 508 {
screamer 0:c5e2f793b59a 509 SIM_HAL_DisableFtfClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 510 }
screamer 0:c5e2f793b59a 511
screamer 0:c5e2f793b59a 512 /*!
screamer 0:c5e2f793b59a 513 * @brief Get the the clock gate state for FTF module.
screamer 0:c5e2f793b59a 514 *
screamer 0:c5e2f793b59a 515 * This function will get the clock gate state for FTF moudle.
screamer 0:c5e2f793b59a 516 * @param instance module device instance
screamer 0:c5e2f793b59a 517 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 518 */
screamer 0:c5e2f793b59a 519 static inline bool CLOCK_SYS_GetFtfGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 520 {
screamer 0:c5e2f793b59a 521 return SIM_HAL_GetFtfGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 522 }
screamer 0:c5e2f793b59a 523
screamer 0:c5e2f793b59a 524 /*!
screamer 0:c5e2f793b59a 525 * @brief Enable the clock for CRC module.
screamer 0:c5e2f793b59a 526 *
screamer 0:c5e2f793b59a 527 * This function enables the clock for CRC moudle.
screamer 0:c5e2f793b59a 528 * @param instance module device instance
screamer 0:c5e2f793b59a 529 */
screamer 0:c5e2f793b59a 530 static inline void CLOCK_SYS_EnableCrcClock(uint32_t instance)
screamer 0:c5e2f793b59a 531 {
screamer 0:c5e2f793b59a 532 SIM_HAL_EnableCrcClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 533 }
screamer 0:c5e2f793b59a 534
screamer 0:c5e2f793b59a 535 /*!
screamer 0:c5e2f793b59a 536 * @brief Disable the clock for CRC module.
screamer 0:c5e2f793b59a 537 *
screamer 0:c5e2f793b59a 538 * This function disables the clock for CRC moudle.
screamer 0:c5e2f793b59a 539 * @param instance module device instance
screamer 0:c5e2f793b59a 540 */
screamer 0:c5e2f793b59a 541 static inline void CLOCK_SYS_DisableCrcClock(uint32_t instance)
screamer 0:c5e2f793b59a 542 {
screamer 0:c5e2f793b59a 543 SIM_HAL_DisableCrcClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 544 }
screamer 0:c5e2f793b59a 545
screamer 0:c5e2f793b59a 546 /*!
screamer 0:c5e2f793b59a 547 * @brief Get the the clock gate state for CRC module.
screamer 0:c5e2f793b59a 548 *
screamer 0:c5e2f793b59a 549 * This function will get the clock gate state for CRC moudle.
screamer 0:c5e2f793b59a 550 * @param instance module device instance
screamer 0:c5e2f793b59a 551 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 552 */
screamer 0:c5e2f793b59a 553 static inline bool CLOCK_SYS_GetCrcGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 554 {
screamer 0:c5e2f793b59a 555 return SIM_HAL_GetCrcGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 556 }
screamer 0:c5e2f793b59a 557
screamer 0:c5e2f793b59a 558 /*!
screamer 0:c5e2f793b59a 559 * @brief Enable the clock for RNGA module.
screamer 0:c5e2f793b59a 560 *
screamer 0:c5e2f793b59a 561 * This function enables the clock for RNGA moudle.
screamer 0:c5e2f793b59a 562 * @param instance module device instance
screamer 0:c5e2f793b59a 563 */
screamer 0:c5e2f793b59a 564 static inline void CLOCK_SYS_EnableRngaClock(uint32_t instance)
screamer 0:c5e2f793b59a 565 {
screamer 0:c5e2f793b59a 566 SIM_HAL_EnableRngaClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 567 }
screamer 0:c5e2f793b59a 568
screamer 0:c5e2f793b59a 569 /*!
screamer 0:c5e2f793b59a 570 * @brief Disable the clock for RNGA module.
screamer 0:c5e2f793b59a 571 *
screamer 0:c5e2f793b59a 572 * This function disables the clock for RNGA moudle.
screamer 0:c5e2f793b59a 573 * @param instance module device instance
screamer 0:c5e2f793b59a 574 */
screamer 0:c5e2f793b59a 575 static inline void CLOCK_SYS_DisableRngaClock(uint32_t instance)
screamer 0:c5e2f793b59a 576 {
screamer 0:c5e2f793b59a 577 SIM_HAL_DisableRngaClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 578 }
screamer 0:c5e2f793b59a 579
screamer 0:c5e2f793b59a 580 /*!
screamer 0:c5e2f793b59a 581 * @brief Get the the clock gate state for RNGA module.
screamer 0:c5e2f793b59a 582 *
screamer 0:c5e2f793b59a 583 * This function will get the clock gate state for RNGA moudle.
screamer 0:c5e2f793b59a 584 * @param instance module device instance
screamer 0:c5e2f793b59a 585 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 586 */
screamer 0:c5e2f793b59a 587 static inline bool CLOCK_SYS_GetRngaGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 588 {
screamer 0:c5e2f793b59a 589 return SIM_HAL_GetRngaGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 590 }
screamer 0:c5e2f793b59a 591
screamer 0:c5e2f793b59a 592 /*!
screamer 0:c5e2f793b59a 593 * @brief Enable the clock for ADC module.
screamer 0:c5e2f793b59a 594 *
screamer 0:c5e2f793b59a 595 * This function enables the clock for ADC moudle.
screamer 0:c5e2f793b59a 596 * @param instance module device instance
screamer 0:c5e2f793b59a 597 */
screamer 0:c5e2f793b59a 598 static inline void CLOCK_SYS_EnableAdcClock(uint32_t instance)
screamer 0:c5e2f793b59a 599 {
screamer 0:c5e2f793b59a 600 SIM_HAL_EnableAdcClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 601 }
screamer 0:c5e2f793b59a 602
screamer 0:c5e2f793b59a 603 /*!
screamer 0:c5e2f793b59a 604 * @brief Disable the clock for ADC module.
screamer 0:c5e2f793b59a 605 *
screamer 0:c5e2f793b59a 606 * This function disables the clock for ADC moudle.
screamer 0:c5e2f793b59a 607 * @param instance module device instance
screamer 0:c5e2f793b59a 608 */
screamer 0:c5e2f793b59a 609 static inline void CLOCK_SYS_DisableAdcClock(uint32_t instance)
screamer 0:c5e2f793b59a 610 {
screamer 0:c5e2f793b59a 611 SIM_HAL_DisableAdcClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 612 }
screamer 0:c5e2f793b59a 613
screamer 0:c5e2f793b59a 614 /*!
screamer 0:c5e2f793b59a 615 * @brief Get the the clock gate state for ADC module.
screamer 0:c5e2f793b59a 616 *
screamer 0:c5e2f793b59a 617 * This function will get the clock gate state for ADC moudle.
screamer 0:c5e2f793b59a 618 * @param instance module device instance
screamer 0:c5e2f793b59a 619 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 620 */
screamer 0:c5e2f793b59a 621 static inline bool CLOCK_SYS_GetAdcGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 622 {
screamer 0:c5e2f793b59a 623 return SIM_HAL_GetAdcGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 624 }
screamer 0:c5e2f793b59a 625
screamer 0:c5e2f793b59a 626 /*!
screamer 0:c5e2f793b59a 627 * @brief Enable the clock for CMP module.
screamer 0:c5e2f793b59a 628 *
screamer 0:c5e2f793b59a 629 * This function enables the clock for CMP moudle.
screamer 0:c5e2f793b59a 630 * @param instance module device instance
screamer 0:c5e2f793b59a 631 */
screamer 0:c5e2f793b59a 632 static inline void CLOCK_SYS_EnableCmpClock(uint32_t instance)
screamer 0:c5e2f793b59a 633 {
screamer 0:c5e2f793b59a 634 SIM_HAL_EnableCmpClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 635 }
screamer 0:c5e2f793b59a 636
screamer 0:c5e2f793b59a 637 /*!
screamer 0:c5e2f793b59a 638 * @brief Disable the clock for CMP module.
screamer 0:c5e2f793b59a 639 *
screamer 0:c5e2f793b59a 640 * This function disables the clock for CMP moudle.
screamer 0:c5e2f793b59a 641 * @param instance module device instance
screamer 0:c5e2f793b59a 642 */
screamer 0:c5e2f793b59a 643 static inline void CLOCK_SYS_DisableCmpClock(uint32_t instance)
screamer 0:c5e2f793b59a 644 {
screamer 0:c5e2f793b59a 645 SIM_HAL_DisableCmpClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 646 }
screamer 0:c5e2f793b59a 647
screamer 0:c5e2f793b59a 648 /*!
screamer 0:c5e2f793b59a 649 * @brief Get the the clock gate state for CMP module.
screamer 0:c5e2f793b59a 650 *
screamer 0:c5e2f793b59a 651 * This function will get the clock gate state for CMP moudle.
screamer 0:c5e2f793b59a 652 * @param instance module device instance
screamer 0:c5e2f793b59a 653 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 654 */
screamer 0:c5e2f793b59a 655 static inline bool CLOCK_SYS_GetCmpGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 656 {
screamer 0:c5e2f793b59a 657 return SIM_HAL_GetCmpGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 658 }
screamer 0:c5e2f793b59a 659
screamer 0:c5e2f793b59a 660 /*!
screamer 0:c5e2f793b59a 661 * @brief Enable the clock for DAC module.
screamer 0:c5e2f793b59a 662 *
screamer 0:c5e2f793b59a 663 * This function enables the clock for DAC moudle.
screamer 0:c5e2f793b59a 664 * @param instance module device instance
screamer 0:c5e2f793b59a 665 */
screamer 0:c5e2f793b59a 666 static inline void CLOCK_SYS_EnableDacClock(uint32_t instance)
screamer 0:c5e2f793b59a 667 {
screamer 0:c5e2f793b59a 668 SIM_HAL_EnableDacClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 669 }
screamer 0:c5e2f793b59a 670
screamer 0:c5e2f793b59a 671 /*!
screamer 0:c5e2f793b59a 672 * @brief Disable the clock for DAC module.
screamer 0:c5e2f793b59a 673 *
screamer 0:c5e2f793b59a 674 * This function disables the clock for DAC moudle.
screamer 0:c5e2f793b59a 675 * @param instance module device instance
screamer 0:c5e2f793b59a 676 */
screamer 0:c5e2f793b59a 677 static inline void CLOCK_SYS_DisableDacClock(uint32_t instance)
screamer 0:c5e2f793b59a 678 {
screamer 0:c5e2f793b59a 679 SIM_HAL_DisableDacClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 680 }
screamer 0:c5e2f793b59a 681
screamer 0:c5e2f793b59a 682 /*!
screamer 0:c5e2f793b59a 683 * @brief Get the the clock gate state for DAC module.
screamer 0:c5e2f793b59a 684 *
screamer 0:c5e2f793b59a 685 * This function will get the clock gate state for DAC moudle.
screamer 0:c5e2f793b59a 686 * @param instance module device instance
screamer 0:c5e2f793b59a 687 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 688 */
screamer 0:c5e2f793b59a 689 static inline bool CLOCK_SYS_GetDacGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 690 {
screamer 0:c5e2f793b59a 691 return SIM_HAL_GetDacGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 692 }
screamer 0:c5e2f793b59a 693
screamer 0:c5e2f793b59a 694 /*!
screamer 0:c5e2f793b59a 695 * @brief Enable the clock for VREF module.
screamer 0:c5e2f793b59a 696 *
screamer 0:c5e2f793b59a 697 * This function enables the clock for VREF moudle.
screamer 0:c5e2f793b59a 698 * @param instance module device instance
screamer 0:c5e2f793b59a 699 */
screamer 0:c5e2f793b59a 700 static inline void CLOCK_SYS_EnableVrefClock(uint32_t instance)
screamer 0:c5e2f793b59a 701 {
screamer 0:c5e2f793b59a 702 SIM_HAL_EnableVrefClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 703 }
screamer 0:c5e2f793b59a 704
screamer 0:c5e2f793b59a 705 /*!
screamer 0:c5e2f793b59a 706 * @brief Disable the clock for VREF module.
screamer 0:c5e2f793b59a 707 *
screamer 0:c5e2f793b59a 708 * This function disables the clock for VREF moudle.
screamer 0:c5e2f793b59a 709 * @param instance module device instance
screamer 0:c5e2f793b59a 710 */
screamer 0:c5e2f793b59a 711 static inline void CLOCK_SYS_DisableVrefClock(uint32_t instance)
screamer 0:c5e2f793b59a 712 {
screamer 0:c5e2f793b59a 713 SIM_HAL_DisableVrefClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 714 }
screamer 0:c5e2f793b59a 715
screamer 0:c5e2f793b59a 716 /*!
screamer 0:c5e2f793b59a 717 * @brief Get the the clock gate state for VREF module.
screamer 0:c5e2f793b59a 718 *
screamer 0:c5e2f793b59a 719 * This function will get the clock gate state for VREF moudle.
screamer 0:c5e2f793b59a 720 * @param instance module device instance
screamer 0:c5e2f793b59a 721 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 722 */
screamer 0:c5e2f793b59a 723 static inline bool CLOCK_SYS_GetVrefGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 724 {
screamer 0:c5e2f793b59a 725 return SIM_HAL_GetVrefGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 726 }
screamer 0:c5e2f793b59a 727
screamer 0:c5e2f793b59a 728 /*!
screamer 0:c5e2f793b59a 729 * @brief Enable the clock for SAI module.
screamer 0:c5e2f793b59a 730 *
screamer 0:c5e2f793b59a 731 * This function enables the clock for SAI moudle.
screamer 0:c5e2f793b59a 732 * @param instance module device instance
screamer 0:c5e2f793b59a 733 */
screamer 0:c5e2f793b59a 734 static inline void CLOCK_SYS_EnableSaiClock(uint32_t instance)
screamer 0:c5e2f793b59a 735 {
screamer 0:c5e2f793b59a 736 SIM_HAL_EnableSaiClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 737 }
screamer 0:c5e2f793b59a 738
screamer 0:c5e2f793b59a 739 /*!
screamer 0:c5e2f793b59a 740 * @brief Disable the clock for SAI module.
screamer 0:c5e2f793b59a 741 *
screamer 0:c5e2f793b59a 742 * This function disables the clock for SAI moudle.
screamer 0:c5e2f793b59a 743 * @param instance module device instance
screamer 0:c5e2f793b59a 744 */
screamer 0:c5e2f793b59a 745 static inline void CLOCK_SYS_DisableSaiClock(uint32_t instance)
screamer 0:c5e2f793b59a 746 {
screamer 0:c5e2f793b59a 747 SIM_HAL_DisableSaiClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 748 }
screamer 0:c5e2f793b59a 749
screamer 0:c5e2f793b59a 750 /*!
screamer 0:c5e2f793b59a 751 * @brief Get the the clock gate state for SAI module.
screamer 0:c5e2f793b59a 752 *
screamer 0:c5e2f793b59a 753 * This function will get the clock gate state for SAI moudle.
screamer 0:c5e2f793b59a 754 * @param instance module device instance
screamer 0:c5e2f793b59a 755 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 756 */
screamer 0:c5e2f793b59a 757 static inline bool CLOCK_SYS_GetSaiGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 758 {
screamer 0:c5e2f793b59a 759 return SIM_HAL_GetSaiGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 760 }
screamer 0:c5e2f793b59a 761
screamer 0:c5e2f793b59a 762 /*!
screamer 0:c5e2f793b59a 763 * @brief Enable the clock for PDB module.
screamer 0:c5e2f793b59a 764 *
screamer 0:c5e2f793b59a 765 * This function enables the clock for PDB moudle.
screamer 0:c5e2f793b59a 766 * @param instance module device instance
screamer 0:c5e2f793b59a 767 */
screamer 0:c5e2f793b59a 768 static inline void CLOCK_SYS_EnablePdbClock(uint32_t instance)
screamer 0:c5e2f793b59a 769 {
screamer 0:c5e2f793b59a 770 SIM_HAL_EnablePdbClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 771 }
screamer 0:c5e2f793b59a 772
screamer 0:c5e2f793b59a 773 /*!
screamer 0:c5e2f793b59a 774 * @brief Disable the clock for PDB module.
screamer 0:c5e2f793b59a 775 *
screamer 0:c5e2f793b59a 776 * This function disables the clock for PDB moudle.
screamer 0:c5e2f793b59a 777 * @param instance module device instance
screamer 0:c5e2f793b59a 778 */
screamer 0:c5e2f793b59a 779 static inline void CLOCK_SYS_DisablePdbClock(uint32_t instance)
screamer 0:c5e2f793b59a 780 {
screamer 0:c5e2f793b59a 781 SIM_HAL_DisablePdbClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 782 }
screamer 0:c5e2f793b59a 783
screamer 0:c5e2f793b59a 784 /*!
screamer 0:c5e2f793b59a 785 * @brief Get the the clock gate state for PDB module.
screamer 0:c5e2f793b59a 786 *
screamer 0:c5e2f793b59a 787 * This function will get the clock gate state for PDB moudle.
screamer 0:c5e2f793b59a 788 * @param instance module device instance
screamer 0:c5e2f793b59a 789 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 790 */
screamer 0:c5e2f793b59a 791 static inline bool CLOCK_SYS_GetPdbGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 792 {
screamer 0:c5e2f793b59a 793 return SIM_HAL_GetPdbGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 794 }
screamer 0:c5e2f793b59a 795
screamer 0:c5e2f793b59a 796 /*!
screamer 0:c5e2f793b59a 797 * @brief Enable the clock for FTM module.
screamer 0:c5e2f793b59a 798 *
screamer 0:c5e2f793b59a 799 * This function enables the clock for FTM moudle.
screamer 0:c5e2f793b59a 800 * @param instance module device instance
screamer 0:c5e2f793b59a 801 */
screamer 0:c5e2f793b59a 802 static inline void CLOCK_SYS_EnableFtmClock(uint32_t instance)
screamer 0:c5e2f793b59a 803 {
screamer 0:c5e2f793b59a 804 SIM_HAL_EnableFtmClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 805 }
screamer 0:c5e2f793b59a 806
screamer 0:c5e2f793b59a 807 /*!
screamer 0:c5e2f793b59a 808 * @brief Disable the clock for FTM module.
screamer 0:c5e2f793b59a 809 *
screamer 0:c5e2f793b59a 810 * This function disables the clock for FTM moudle.
screamer 0:c5e2f793b59a 811 * @param instance module device instance
screamer 0:c5e2f793b59a 812 */
screamer 0:c5e2f793b59a 813 static inline void CLOCK_SYS_DisableFtmClock(uint32_t instance)
screamer 0:c5e2f793b59a 814 {
screamer 0:c5e2f793b59a 815 SIM_HAL_DisableFtmClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 816 }
screamer 0:c5e2f793b59a 817
screamer 0:c5e2f793b59a 818 /*!
screamer 0:c5e2f793b59a 819 * @brief Get the the clock gate state for FTM module.
screamer 0:c5e2f793b59a 820 *
screamer 0:c5e2f793b59a 821 * This function will get the clock gate state for FTM moudle.
screamer 0:c5e2f793b59a 822 * @param instance module device instance
screamer 0:c5e2f793b59a 823 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 824 */
screamer 0:c5e2f793b59a 825 static inline bool CLOCK_SYS_GetFtmGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 826 {
screamer 0:c5e2f793b59a 827 return SIM_HAL_GetFtmGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 828 }
screamer 0:c5e2f793b59a 829
screamer 0:c5e2f793b59a 830 /*!
screamer 0:c5e2f793b59a 831 * @brief Enable the clock for PIT module.
screamer 0:c5e2f793b59a 832 *
screamer 0:c5e2f793b59a 833 * This function enables the clock for PIT moudle.
screamer 0:c5e2f793b59a 834 * @param instance module device instance
screamer 0:c5e2f793b59a 835 */
screamer 0:c5e2f793b59a 836 static inline void CLOCK_SYS_EnablePitClock(uint32_t instance)
screamer 0:c5e2f793b59a 837 {
screamer 0:c5e2f793b59a 838 SIM_HAL_EnablePitClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 839 }
screamer 0:c5e2f793b59a 840
screamer 0:c5e2f793b59a 841 /*!
screamer 0:c5e2f793b59a 842 * @brief Disable the clock for PIT module.
screamer 0:c5e2f793b59a 843 *
screamer 0:c5e2f793b59a 844 * This function disables the clock for PIT moudle.
screamer 0:c5e2f793b59a 845 * @param instance module device instance
screamer 0:c5e2f793b59a 846 */
screamer 0:c5e2f793b59a 847 static inline void CLOCK_SYS_DisablePitClock(uint32_t instance)
screamer 0:c5e2f793b59a 848 {
screamer 0:c5e2f793b59a 849 SIM_HAL_DisablePitClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 850 }
screamer 0:c5e2f793b59a 851
screamer 0:c5e2f793b59a 852 /*!
screamer 0:c5e2f793b59a 853 * @brief Get the the clock gate state for PIT module.
screamer 0:c5e2f793b59a 854 *
screamer 0:c5e2f793b59a 855 * This function will get the clock gate state for PIT moudle.
screamer 0:c5e2f793b59a 856 * @param instance module device instance
screamer 0:c5e2f793b59a 857 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 858 */
screamer 0:c5e2f793b59a 859 static inline bool CLOCK_SYS_GetPitGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 860 {
screamer 0:c5e2f793b59a 861 return SIM_HAL_GetPitGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 862 }
screamer 0:c5e2f793b59a 863
screamer 0:c5e2f793b59a 864 /*!
screamer 0:c5e2f793b59a 865 * @brief Enable the clock for LPTIMER module.
screamer 0:c5e2f793b59a 866 *
screamer 0:c5e2f793b59a 867 * This function enables the clock for LPTIMER moudle.
screamer 0:c5e2f793b59a 868 * @param instance module device instance
screamer 0:c5e2f793b59a 869 */
screamer 0:c5e2f793b59a 870 static inline void CLOCK_SYS_EnableLptimerClock(uint32_t instance)
screamer 0:c5e2f793b59a 871 {
screamer 0:c5e2f793b59a 872 SIM_HAL_EnableLptimerClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 873 }
screamer 0:c5e2f793b59a 874
screamer 0:c5e2f793b59a 875 /*!
screamer 0:c5e2f793b59a 876 * @brief Disable the clock for LPTIMER module.
screamer 0:c5e2f793b59a 877 *
screamer 0:c5e2f793b59a 878 * This function disables the clock for LPTIMER moudle.
screamer 0:c5e2f793b59a 879 * @param instance module device instance
screamer 0:c5e2f793b59a 880 */
screamer 0:c5e2f793b59a 881 static inline void CLOCK_SYS_DisableLptimerClock(uint32_t instance)
screamer 0:c5e2f793b59a 882 {
screamer 0:c5e2f793b59a 883 SIM_HAL_DisableLptimerClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 884 }
screamer 0:c5e2f793b59a 885
screamer 0:c5e2f793b59a 886 /*!
screamer 0:c5e2f793b59a 887 * @brief Get the the clock gate state for LPTIMER module.
screamer 0:c5e2f793b59a 888 *
screamer 0:c5e2f793b59a 889 * This function will get the clock gate state for LPTIMER moudle.
screamer 0:c5e2f793b59a 890 * @param instance module device instance
screamer 0:c5e2f793b59a 891 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 892 */
screamer 0:c5e2f793b59a 893 static inline bool CLOCK_SYS_GetLptimerGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 894 {
screamer 0:c5e2f793b59a 895 return SIM_HAL_GetLptimerGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 896 }
screamer 0:c5e2f793b59a 897
screamer 0:c5e2f793b59a 898 /*!
screamer 0:c5e2f793b59a 899 * @brief Enable the clock for CMT module.
screamer 0:c5e2f793b59a 900 *
screamer 0:c5e2f793b59a 901 * This function enables the clock for CMT moudle.
screamer 0:c5e2f793b59a 902 * @param instance module device instance
screamer 0:c5e2f793b59a 903 */
screamer 0:c5e2f793b59a 904 static inline void CLOCK_SYS_EnableCmtClock(uint32_t instance)
screamer 0:c5e2f793b59a 905 {
screamer 0:c5e2f793b59a 906 SIM_HAL_EnableCmtClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 907 }
screamer 0:c5e2f793b59a 908
screamer 0:c5e2f793b59a 909 /*!
screamer 0:c5e2f793b59a 910 * @brief Disable the clock for CMT module.
screamer 0:c5e2f793b59a 911 *
screamer 0:c5e2f793b59a 912 * This function disables the clock for CMT moudle.
screamer 0:c5e2f793b59a 913 * @param instance module device instance
screamer 0:c5e2f793b59a 914 */
screamer 0:c5e2f793b59a 915 static inline void CLOCK_SYS_DisableCmtClock(uint32_t instance)
screamer 0:c5e2f793b59a 916 {
screamer 0:c5e2f793b59a 917 SIM_HAL_DisableCmtClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 918 }
screamer 0:c5e2f793b59a 919
screamer 0:c5e2f793b59a 920 /*!
screamer 0:c5e2f793b59a 921 * @brief Get the the clock gate state for CMT module.
screamer 0:c5e2f793b59a 922 *
screamer 0:c5e2f793b59a 923 * This function will get the clock gate state for CMT moudle.
screamer 0:c5e2f793b59a 924 * @param instance module device instance
screamer 0:c5e2f793b59a 925 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 926 */
screamer 0:c5e2f793b59a 927 static inline bool CLOCK_SYS_GetCmtGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 928 {
screamer 0:c5e2f793b59a 929 return SIM_HAL_GetCmtGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 930 }
screamer 0:c5e2f793b59a 931
screamer 0:c5e2f793b59a 932 /*!
screamer 0:c5e2f793b59a 933 * @brief Enable the clock for RTC module.
screamer 0:c5e2f793b59a 934 *
screamer 0:c5e2f793b59a 935 * This function enables the clock for RTC moudle.
screamer 0:c5e2f793b59a 936 * @param instance module device instance
screamer 0:c5e2f793b59a 937 */
screamer 0:c5e2f793b59a 938 static inline void CLOCK_SYS_EnableRtcClock(uint32_t instance)
screamer 0:c5e2f793b59a 939 {
screamer 0:c5e2f793b59a 940 SIM_HAL_EnableRtcClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 941 }
screamer 0:c5e2f793b59a 942
screamer 0:c5e2f793b59a 943 /*!
screamer 0:c5e2f793b59a 944 * @brief Disable the clock for RTC module.
screamer 0:c5e2f793b59a 945 *
screamer 0:c5e2f793b59a 946 * This function disables the clock for RTC moudle.
screamer 0:c5e2f793b59a 947 * @param instance module device instance
screamer 0:c5e2f793b59a 948 */
screamer 0:c5e2f793b59a 949 static inline void CLOCK_SYS_DisableRtcClock(uint32_t instance)
screamer 0:c5e2f793b59a 950 {
screamer 0:c5e2f793b59a 951 SIM_HAL_DisableRtcClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 952 }
screamer 0:c5e2f793b59a 953
screamer 0:c5e2f793b59a 954 /*!
screamer 0:c5e2f793b59a 955 * @brief Get the the clock gate state for RTC module.
screamer 0:c5e2f793b59a 956 *
screamer 0:c5e2f793b59a 957 * This function will get the clock gate state for RTC moudle.
screamer 0:c5e2f793b59a 958 * @param instance module device instance
screamer 0:c5e2f793b59a 959 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 960 */
screamer 0:c5e2f793b59a 961 static inline bool CLOCK_SYS_GetRtcGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 962 {
screamer 0:c5e2f793b59a 963 return SIM_HAL_GetRtcGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 964 }
screamer 0:c5e2f793b59a 965
screamer 0:c5e2f793b59a 966 /*!
screamer 0:c5e2f793b59a 967 * @brief Enable the clock for ENET module.
screamer 0:c5e2f793b59a 968 *
screamer 0:c5e2f793b59a 969 * This function enables the clock for ENET moudle.
screamer 0:c5e2f793b59a 970 * @param instance module device instance
screamer 0:c5e2f793b59a 971 */
screamer 0:c5e2f793b59a 972 static inline void CLOCK_SYS_EnableEnetClock(uint32_t instance)
screamer 0:c5e2f793b59a 973 {
screamer 0:c5e2f793b59a 974 SIM_HAL_EnableEnetClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 975 }
screamer 0:c5e2f793b59a 976
screamer 0:c5e2f793b59a 977 /*!
screamer 0:c5e2f793b59a 978 * @brief Disable the clock for ENET module.
screamer 0:c5e2f793b59a 979 *
screamer 0:c5e2f793b59a 980 * This function disables the clock for ENET moudle.
screamer 0:c5e2f793b59a 981 * @param instance module device instance
screamer 0:c5e2f793b59a 982 */
screamer 0:c5e2f793b59a 983 static inline void CLOCK_SYS_DisableEnetClock(uint32_t instance)
screamer 0:c5e2f793b59a 984 {
screamer 0:c5e2f793b59a 985 SIM_HAL_DisableEnetClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 986 }
screamer 0:c5e2f793b59a 987
screamer 0:c5e2f793b59a 988 /*!
screamer 0:c5e2f793b59a 989 * @brief Get the the clock gate state for ENET module.
screamer 0:c5e2f793b59a 990 *
screamer 0:c5e2f793b59a 991 * This function will get the clock gate state for ENET moudle.
screamer 0:c5e2f793b59a 992 * @param instance module device instance
screamer 0:c5e2f793b59a 993 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 994 */
screamer 0:c5e2f793b59a 995 static inline bool CLOCK_SYS_GetEnetGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 996 {
screamer 0:c5e2f793b59a 997 return SIM_HAL_GetEnetGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 998 }
screamer 0:c5e2f793b59a 999
screamer 0:c5e2f793b59a 1000 /*!
screamer 0:c5e2f793b59a 1001 * @brief Enable the clock for USBFS module.
screamer 0:c5e2f793b59a 1002 *
screamer 0:c5e2f793b59a 1003 * This function enables the clock for USBFS moudle.
screamer 0:c5e2f793b59a 1004 * @param instance module device instance
screamer 0:c5e2f793b59a 1005 */
screamer 0:c5e2f793b59a 1006 static inline void CLOCK_SYS_EnableUsbClock(uint32_t instance)
screamer 0:c5e2f793b59a 1007 {
screamer 0:c5e2f793b59a 1008 SIM_HAL_EnableUsbClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1009 }
screamer 0:c5e2f793b59a 1010
screamer 0:c5e2f793b59a 1011 /*!
screamer 0:c5e2f793b59a 1012 * @brief Disable the clock for USBFS module.
screamer 0:c5e2f793b59a 1013 *
screamer 0:c5e2f793b59a 1014 * This function disables the clock for USBFS moudle.
screamer 0:c5e2f793b59a 1015 * @param instance module device instance
screamer 0:c5e2f793b59a 1016 */
screamer 0:c5e2f793b59a 1017 static inline void CLOCK_SYS_DisableUsbClock(uint32_t instance)
screamer 0:c5e2f793b59a 1018 {
screamer 0:c5e2f793b59a 1019 SIM_HAL_DisableUsbClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1020 }
screamer 0:c5e2f793b59a 1021
screamer 0:c5e2f793b59a 1022 /*!
screamer 0:c5e2f793b59a 1023 * @brief Get the the clock gate state for USB module.
screamer 0:c5e2f793b59a 1024 *
screamer 0:c5e2f793b59a 1025 * This function will get the clock gate state for USB moudle.
screamer 0:c5e2f793b59a 1026 * @param instance module device instance
screamer 0:c5e2f793b59a 1027 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 1028 */
screamer 0:c5e2f793b59a 1029 static inline bool CLOCK_SYS_GetUsbGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 1030 {
screamer 0:c5e2f793b59a 1031 return SIM_HAL_GetUsbGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1032 }
screamer 0:c5e2f793b59a 1033
screamer 0:c5e2f793b59a 1034 /*!
screamer 0:c5e2f793b59a 1035 * @brief Enable the clock for USBDCD module.
screamer 0:c5e2f793b59a 1036 *
screamer 0:c5e2f793b59a 1037 * This function enables the clock for USBDCD moudle.
screamer 0:c5e2f793b59a 1038 * @param instance module device instance
screamer 0:c5e2f793b59a 1039 */
screamer 0:c5e2f793b59a 1040 static inline void CLOCK_SYS_EnableUsbdcdClock(uint32_t instance)
screamer 0:c5e2f793b59a 1041 {
screamer 0:c5e2f793b59a 1042 SIM_HAL_EnableUsbdcdClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1043 }
screamer 0:c5e2f793b59a 1044
screamer 0:c5e2f793b59a 1045 /*!
screamer 0:c5e2f793b59a 1046 * @brief Disable the clock for USBDCD module.
screamer 0:c5e2f793b59a 1047 *
screamer 0:c5e2f793b59a 1048 * This function disables the clock for USBDCD moudle.
screamer 0:c5e2f793b59a 1049 * @param instance module device instance
screamer 0:c5e2f793b59a 1050 */
screamer 0:c5e2f793b59a 1051 static inline void CLOCK_SYS_DisableUsbdcdClock(uint32_t instance)
screamer 0:c5e2f793b59a 1052 {
screamer 0:c5e2f793b59a 1053 SIM_HAL_DisableUsbdcdClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1054 }
screamer 0:c5e2f793b59a 1055
screamer 0:c5e2f793b59a 1056 /*!
screamer 0:c5e2f793b59a 1057 * @brief Get the the clock gate state for USBDCD module.
screamer 0:c5e2f793b59a 1058 *
screamer 0:c5e2f793b59a 1059 * This function will get the clock gate state for USBDCD moudle.
screamer 0:c5e2f793b59a 1060 * @param instance module device instance
screamer 0:c5e2f793b59a 1061 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 1062 */
screamer 0:c5e2f793b59a 1063 static inline bool CLOCK_SYS_GetUsbdcdGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 1064 {
screamer 0:c5e2f793b59a 1065 return SIM_HAL_GetUsbdcdGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1066 }
screamer 0:c5e2f793b59a 1067
screamer 0:c5e2f793b59a 1068 /*!
screamer 0:c5e2f793b59a 1069 * @brief Enable the clock for FLEXCAN module.
screamer 0:c5e2f793b59a 1070 *
screamer 0:c5e2f793b59a 1071 * This function enables the clock for FLEXCAN moudle.
screamer 0:c5e2f793b59a 1072 * @param instance module device instance
screamer 0:c5e2f793b59a 1073 */
screamer 0:c5e2f793b59a 1074 static inline void CLOCK_SYS_EnableFlexcanClock(uint32_t instance)
screamer 0:c5e2f793b59a 1075 {
screamer 0:c5e2f793b59a 1076 SIM_HAL_EnableFlexcanClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1077 }
screamer 0:c5e2f793b59a 1078
screamer 0:c5e2f793b59a 1079 /*!
screamer 0:c5e2f793b59a 1080 * @brief Disable the clock for FLEXCAN module.
screamer 0:c5e2f793b59a 1081 *
screamer 0:c5e2f793b59a 1082 * This function disables the clock for FLEXCAN moudle.
screamer 0:c5e2f793b59a 1083 * @param instance module device instance
screamer 0:c5e2f793b59a 1084 */
screamer 0:c5e2f793b59a 1085 static inline void CLOCK_SYS_DisableFlexcanClock(uint32_t instance)
screamer 0:c5e2f793b59a 1086 {
screamer 0:c5e2f793b59a 1087 SIM_HAL_DisableFlexcanClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1088 }
screamer 0:c5e2f793b59a 1089
screamer 0:c5e2f793b59a 1090 /*!
screamer 0:c5e2f793b59a 1091 * @brief Get the the clock gate state for FLEXCAN module.
screamer 0:c5e2f793b59a 1092 *
screamer 0:c5e2f793b59a 1093 * This function will get the clock gate state for FLEXCAN moudle.
screamer 0:c5e2f793b59a 1094 * @param instance module device instance
screamer 0:c5e2f793b59a 1095 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 1096 */
screamer 0:c5e2f793b59a 1097 static inline bool CLOCK_SYS_GetFlexcanGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 1098 {
screamer 0:c5e2f793b59a 1099 return SIM_HAL_GetFlexcanGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1100 }
screamer 0:c5e2f793b59a 1101
screamer 0:c5e2f793b59a 1102 /*!
screamer 0:c5e2f793b59a 1103 * @brief Enable the clock for SPI module.
screamer 0:c5e2f793b59a 1104 *
screamer 0:c5e2f793b59a 1105 * This function enables the clock for SPI moudle.
screamer 0:c5e2f793b59a 1106 * @param instance module device instance
screamer 0:c5e2f793b59a 1107 */
screamer 0:c5e2f793b59a 1108 static inline void CLOCK_SYS_EnableSpiClock(uint32_t instance)
screamer 0:c5e2f793b59a 1109 {
screamer 0:c5e2f793b59a 1110 SIM_HAL_EnableSpiClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1111 }
screamer 0:c5e2f793b59a 1112
screamer 0:c5e2f793b59a 1113 /*!
screamer 0:c5e2f793b59a 1114 * @brief Disable the clock for SPI module.
screamer 0:c5e2f793b59a 1115 *
screamer 0:c5e2f793b59a 1116 * This function disables the clock for SPI moudle.
screamer 0:c5e2f793b59a 1117 * @param instance module device instance
screamer 0:c5e2f793b59a 1118 */
screamer 0:c5e2f793b59a 1119 static inline void CLOCK_SYS_DisableSpiClock(uint32_t instance)
screamer 0:c5e2f793b59a 1120 {
screamer 0:c5e2f793b59a 1121 SIM_HAL_DisableSpiClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1122 }
screamer 0:c5e2f793b59a 1123
screamer 0:c5e2f793b59a 1124 /*!
screamer 0:c5e2f793b59a 1125 * @brief Get the the clock gate state for SPI module.
screamer 0:c5e2f793b59a 1126 *
screamer 0:c5e2f793b59a 1127 * This function will get the clock gate state for SPI moudle.
screamer 0:c5e2f793b59a 1128 * @param instance module device instance
screamer 0:c5e2f793b59a 1129 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 1130 */
screamer 0:c5e2f793b59a 1131 static inline bool CLOCK_SYS_GetSpiGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 1132 {
screamer 0:c5e2f793b59a 1133 return SIM_HAL_GetSpiGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1134 }
screamer 0:c5e2f793b59a 1135
screamer 0:c5e2f793b59a 1136 /*!
screamer 0:c5e2f793b59a 1137 * @brief Enable the clock for I2C module.
screamer 0:c5e2f793b59a 1138 *
screamer 0:c5e2f793b59a 1139 * This function enables the clock for I2C moudle.
screamer 0:c5e2f793b59a 1140 * @param instance module device instance
screamer 0:c5e2f793b59a 1141 */
screamer 0:c5e2f793b59a 1142 static inline void CLOCK_SYS_EnableI2cClock(uint32_t instance)
screamer 0:c5e2f793b59a 1143 {
screamer 0:c5e2f793b59a 1144 SIM_HAL_EnableI2cClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1145 }
screamer 0:c5e2f793b59a 1146
screamer 0:c5e2f793b59a 1147 /*!
screamer 0:c5e2f793b59a 1148 * @brief Disable the clock for I2C module.
screamer 0:c5e2f793b59a 1149 *
screamer 0:c5e2f793b59a 1150 * This function disables the clock for I2C moudle.
screamer 0:c5e2f793b59a 1151 * @param instance module device instance
screamer 0:c5e2f793b59a 1152 */
screamer 0:c5e2f793b59a 1153 static inline void CLOCK_SYS_DisableI2cClock(uint32_t instance)
screamer 0:c5e2f793b59a 1154 {
screamer 0:c5e2f793b59a 1155 SIM_HAL_DisableI2cClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1156 }
screamer 0:c5e2f793b59a 1157
screamer 0:c5e2f793b59a 1158 /*!
screamer 0:c5e2f793b59a 1159 * @brief Get the the clock gate state for I2C module.
screamer 0:c5e2f793b59a 1160 *
screamer 0:c5e2f793b59a 1161 * This function will get the clock gate state for I2C moudle.
screamer 0:c5e2f793b59a 1162 * @param instance module device instance
screamer 0:c5e2f793b59a 1163 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 1164 */
screamer 0:c5e2f793b59a 1165 static inline bool CLOCK_SYS_GetI2cGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 1166 {
screamer 0:c5e2f793b59a 1167 return SIM_HAL_GetI2cGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1168 }
screamer 0:c5e2f793b59a 1169
screamer 0:c5e2f793b59a 1170 /*!
screamer 0:c5e2f793b59a 1171 * @brief Enable the clock for UART module.
screamer 0:c5e2f793b59a 1172 *
screamer 0:c5e2f793b59a 1173 * This function enables the clock for UART moudle.
screamer 0:c5e2f793b59a 1174 * @param instance module device instance
screamer 0:c5e2f793b59a 1175 */
screamer 0:c5e2f793b59a 1176 static inline void CLOCK_SYS_EnableUartClock(uint32_t instance)
screamer 0:c5e2f793b59a 1177 {
screamer 0:c5e2f793b59a 1178 SIM_HAL_EnableUartClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1179 }
screamer 0:c5e2f793b59a 1180
screamer 0:c5e2f793b59a 1181 /*!
screamer 0:c5e2f793b59a 1182 * @brief Disable the clock for UART module.
screamer 0:c5e2f793b59a 1183 *
screamer 0:c5e2f793b59a 1184 * This function disables the clock for UART moudle.
screamer 0:c5e2f793b59a 1185 * @param instance module device instance
screamer 0:c5e2f793b59a 1186 */
screamer 0:c5e2f793b59a 1187 static inline void CLOCK_SYS_DisableUartClock(uint32_t instance)
screamer 0:c5e2f793b59a 1188 {
screamer 0:c5e2f793b59a 1189 SIM_HAL_DisableUartClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1190 }
screamer 0:c5e2f793b59a 1191
screamer 0:c5e2f793b59a 1192 /*!
screamer 0:c5e2f793b59a 1193 * @brief Get the the clock gate state for UART module.
screamer 0:c5e2f793b59a 1194 *
screamer 0:c5e2f793b59a 1195 * This function will get the clock gate state for UART moudle.
screamer 0:c5e2f793b59a 1196 * @param instance module device instance
screamer 0:c5e2f793b59a 1197 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 1198 */
screamer 0:c5e2f793b59a 1199 static inline bool CLOCK_SYS_GetUartGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 1200 {
screamer 0:c5e2f793b59a 1201 return SIM_HAL_GetUartGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1202 }
screamer 0:c5e2f793b59a 1203
screamer 0:c5e2f793b59a 1204 /*!
screamer 0:c5e2f793b59a 1205 * @brief Enable the clock for SDHC module.
screamer 0:c5e2f793b59a 1206 *
screamer 0:c5e2f793b59a 1207 * This function enables the clock for SDHC moudle.
screamer 0:c5e2f793b59a 1208 * @param instance module device instance
screamer 0:c5e2f793b59a 1209 */
screamer 0:c5e2f793b59a 1210 static inline void CLOCK_SYS_EnableSdhcClock(uint32_t instance)
screamer 0:c5e2f793b59a 1211 {
screamer 0:c5e2f793b59a 1212 SIM_HAL_EnableSdhcClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1213 }
screamer 0:c5e2f793b59a 1214
screamer 0:c5e2f793b59a 1215 /*!
screamer 0:c5e2f793b59a 1216 * @brief Disable the clock for SDHC module.
screamer 0:c5e2f793b59a 1217 *
screamer 0:c5e2f793b59a 1218 * This function disables the clock for SDHC moudle.
screamer 0:c5e2f793b59a 1219 * @param instance module device instance
screamer 0:c5e2f793b59a 1220 */
screamer 0:c5e2f793b59a 1221 static inline void CLOCK_SYS_DisableSdhcClock(uint32_t instance)
screamer 0:c5e2f793b59a 1222 {
screamer 0:c5e2f793b59a 1223 SIM_HAL_DisableSdhcClock(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1224 }
screamer 0:c5e2f793b59a 1225
screamer 0:c5e2f793b59a 1226 /*!
screamer 0:c5e2f793b59a 1227 * @brief Get the the clock gate state for SDHC module.
screamer 0:c5e2f793b59a 1228 *
screamer 0:c5e2f793b59a 1229 * This function will get the clock gate state for SDHC moudle.
screamer 0:c5e2f793b59a 1230 * @param instance module device instance
screamer 0:c5e2f793b59a 1231 * @return state true - ungated(Enabled), false - gated (Disabled)
screamer 0:c5e2f793b59a 1232 */
screamer 0:c5e2f793b59a 1233 static inline bool CLOCK_SYS_GetSdhcGateCmd(uint32_t instance)
screamer 0:c5e2f793b59a 1234 {
screamer 0:c5e2f793b59a 1235 return SIM_HAL_GetSdhcGateCmd(g_simBaseAddr[0], instance);
screamer 0:c5e2f793b59a 1236 }
screamer 0:c5e2f793b59a 1237
screamer 0:c5e2f793b59a 1238 #if defined(__cplusplus)
screamer 0:c5e2f793b59a 1239 }
screamer 0:c5e2f793b59a 1240 #endif /* __cplusplus*/
screamer 0:c5e2f793b59a 1241
screamer 0:c5e2f793b59a 1242 /*! @}*/
screamer 0:c5e2f793b59a 1243
screamer 0:c5e2f793b59a 1244 #endif /* __FSL_CLOCK_K64F12_H__ */
screamer 0:c5e2f793b59a 1245 /*******************************************************************************
screamer 0:c5e2f793b59a 1246 * EOF
screamer 0:c5e2f793b59a 1247 ******************************************************************************/
screamer 0:c5e2f793b59a 1248