Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of target-mcu-k64f by
fsl_clock_K64F12.h
00001 /* 00002 * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc. 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without modification, 00006 * are permitted provided that the following conditions are met: 00007 * 00008 * o Redistributions of source code must retain the above copyright notice, this list 00009 * of conditions and the following disclaimer. 00010 * 00011 * o Redistributions in binary form must reproduce the above copyright notice, this 00012 * list of conditions and the following disclaimer in the documentation and/or 00013 * other materials provided with the distribution. 00014 * 00015 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its 00016 * contributors may be used to endorse or promote products derived from this 00017 * software without specific prior written permission. 00018 * 00019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 00020 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00021 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00022 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 00023 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00024 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00025 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 00026 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00027 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00028 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00029 */ 00030 00031 #if !defined(__FSL_CLOCK_K64F12_H__) 00032 #define __FSL_CLOCK_K64F12__H__ 00033 00034 /*! @addtogroup clock_manager*/ 00035 /*! @{*/ 00036 00037 /*! @file*/ 00038 00039 /******************************************************************************* 00040 * Definitions 00041 ******************************************************************************/ 00042 00043 00044 /******************************************************************************* 00045 * API 00046 ******************************************************************************/ 00047 00048 #if defined(__cplusplus) 00049 extern "C" { 00050 #endif /* __cplusplus*/ 00051 00052 /*! 00053 * @brief Gets the clock frequency for DMA module. 00054 * 00055 * This function gets the clock frequence for DMA moudle. 00056 * @param instance module device instance 00057 * @return freq clock frequence for this module 00058 */ 00059 uint32_t CLOCK_SYS_GetDmaFreq(uint32_t instance); 00060 00061 /*! 00062 * @brief Gets the clock frequency for DMAMUX module. 00063 * 00064 * This function gets the clock frequence for DMAMUX moudle. 00065 * @param instance module device instance 00066 * @return freq clock frequence for this module 00067 */ 00068 uint32_t CLOCK_SYS_GetDmamuxFreq(uint32_t instance); 00069 00070 /*! 00071 * @brief Gets the clock frequency for PORT module. 00072 * 00073 * This function gets the clock frequence for PORT moudle. 00074 * @param instance module device instance 00075 * @return freq clock frequence for this module 00076 */ 00077 uint32_t CLOCK_SYS_GetPortFreq(uint32_t instance); 00078 00079 /*! 00080 * @brief Gets the clock frequency for MPU module. 00081 * 00082 * This function gets the clock frequence for MPU moudle. 00083 * @param instance module device instance 00084 * @return freq clock frequence for this module 00085 */ 00086 uint32_t CLOCK_SYS_GetMpuFreq(uint32_t instance); 00087 00088 /*! 00089 * @brief Gets the clock frequency for EWM module. 00090 * 00091 * This function gets the clock frequence for EWM moudle. 00092 * @param instance module device instance 00093 * @return freq clock frequence for this module 00094 */ 00095 uint32_t CLOCK_SYS_GetEwmFreq(uint32_t instance); 00096 00097 /*! 00098 * @brief Gets the clock frequency for FLEXBUS module. 00099 * 00100 * This function gets the clock frequence for FLEXBUS moudle. 00101 * @param instance module device instance 00102 * @return freq clock frequence for this module 00103 */ 00104 uint32_t CLOCK_SYS_GetFlexbusFreq(uint32_t instance); 00105 00106 /*! 00107 * @brief Gets the clock frequency for FTF module. (Flash Memory) 00108 * 00109 * This function gets the clock frequence for FTF module. (Flash Memory) 00110 * @param instance module device instance 00111 * @return freq clock frequence for this module 00112 */ 00113 uint32_t CLOCK_SYS_GetFtfFreq(uint32_t instance); 00114 00115 /*! 00116 * @brief Gets the clock frequency for CRC module. 00117 * 00118 * This function gets the clock frequence for CRC module. 00119 * @param instance module device instance 00120 * @return freq clock frequence for this module 00121 */ 00122 uint32_t CLOCK_SYS_GetCrcFreq(uint32_t instance); 00123 00124 /*! 00125 * @brief Gets the clock frequency for RNGA module. 00126 * 00127 * This function gets the clock frequence for RNGA module. 00128 * @param instance module device instance 00129 * @return freq clock frequence for this module 00130 */ 00131 uint32_t CLOCK_SYS_GetRngaFreq(uint32_t instance); 00132 00133 /*! 00134 * @brief Gets the clock frequency for ADC module. 00135 * 00136 * This function gets the clock frequence for ADC module. 00137 * @param instance module device instance 00138 * @return freq clock frequence for this module 00139 */ 00140 uint32_t CLOCK_SYS_GetAdcFreq(uint32_t instance); 00141 00142 /*! 00143 * @brief Gets the clock frequency for CMP module. 00144 * 00145 * This function gets the clock frequence for CMP module. 00146 * @param instance module device instance 00147 * @return freq clock frequence for this module 00148 */ 00149 uint32_t CLOCK_SYS_GetCmpFreq(uint32_t instance); 00150 00151 /*! 00152 * @brief Gets the clock frequency for VREF module. 00153 * 00154 * This function gets the clock frequence for VREF module. 00155 * @param instance module device instance 00156 * @return freq clock frequence for this module 00157 */ 00158 uint32_t CLOCK_SYS_GetVrefFreq(uint32_t instance); 00159 00160 /*! 00161 * @brief Gets the clock frequency for PDB module. 00162 * 00163 * This function gets the clock frequence for PDB module. 00164 * @param instance module device instance 00165 * @return freq clock frequence for this module 00166 */ 00167 uint32_t CLOCK_SYS_GetPdbFreq(uint32_t instance); 00168 00169 /*! 00170 * @brief Gets the clock frequency for FTM module. (FlexTimer) 00171 * 00172 * This function gets the clock frequence for FTM module. 00173 * @param instance module device instance 00174 * @return freq clock frequence for this module 00175 */ 00176 uint32_t CLOCK_SYS_GetFtmFreq(uint32_t instance); 00177 00178 /*! 00179 * @brief Gets the clock frequency for PIT module. 00180 * 00181 * This function gets the clock frequence for PIT module. 00182 * @param instance module device instance 00183 * @return freq clock frequence for this module 00184 */ 00185 uint32_t CLOCK_SYS_GetPitFreq(uint32_t instance); 00186 00187 /*! 00188 * @brief Gets the clock frequency for CMT module. 00189 * 00190 * This function gets the clock frequence for CMT module. 00191 * @param instance module device instance 00192 * @return freq clock frequence for this module 00193 */ 00194 uint32_t CLOCK_SYS_GetCmtFreq(uint32_t instance); 00195 00196 /*! 00197 * @brief Gets the clock frequency for ENET module RMII clock. 00198 * 00199 * This function gets the clock frequence for ENET module RMII clock.. 00200 * @param instance module device instance 00201 * @return freq clock frequence for this module 00202 */ 00203 uint32_t CLOCK_SYS_GetEnetRmiiFreq(uint32_t instance); 00204 00205 /*! 00206 * @brief Gets the clock frequency for ENET module TIME clock. 00207 * 00208 * This function gets the clock frequence for ENET module TIME clock.. 00209 * @param instance module device instance 00210 * @return freq clock frequence for this module 00211 */ 00212 uint32_t CLOCK_SYS_GetEnetTimeStampFreq(uint32_t instance); 00213 00214 /*! 00215 * @brief Gets the clock frequency for USB FS OTG module 00216 * 00217 * This function gets the clock frequence for USB FS OTG module. 00218 * @param instance module device instance 00219 * @return freq clock frequence for this module 00220 */ 00221 uint32_t CLOCK_SYS_GetUsbFreq(uint32_t instance); 00222 00223 /*! 00224 * @brief Gets the clock frequency for USB DCD module 00225 * 00226 * This function gets the clock frequence for USB DCD module. 00227 * @param instance module device instance 00228 * @return freq clock frequence for this module 00229 */ 00230 uint32_t CLOCK_SYS_GetUsbdcdFreq(uint32_t instance); 00231 00232 /*! 00233 * @brief Gets the clock frequency for SPI module 00234 * 00235 * This function gets the clock frequence for SPI module. 00236 * @param instance module device instance 00237 * @return freq clock frequence for this module 00238 */ 00239 uint32_t CLOCK_SYS_GetSpiFreq(uint32_t instance); 00240 00241 /*! 00242 * @brief Gets the clock frequency for I2C module 00243 * 00244 * This function gets the clock frequence for I2C module. 00245 * @param instance module device instance 00246 * @return freq clock frequence for this module 00247 */ 00248 uint32_t CLOCK_SYS_GetI2cFreq(uint32_t instance); 00249 00250 /*! 00251 * @brief Gets the clock frequency for UART module 00252 * 00253 * This function gets the clock frequence for UART module. 00254 * @param instance module device instance 00255 * @return freq clock frequence for this module 00256 */ 00257 uint32_t CLOCK_SYS_GetUartFreq(uint32_t instance); 00258 00259 /*! 00260 * @brief Gets the clock frequency for SDHC module. 00261 * 00262 * This function gets the clock frequence for SDHC moudle. 00263 * @param instance module device instance 00264 * @return freq clock frequence for this module 00265 */ 00266 uint32_t CLOCK_SYS_GetSdhcFreq(uint32_t instance); 00267 00268 /*! 00269 * @brief Gets the clock frequency for I2S module. 00270 * 00271 * This function gets the clock frequence for I2S module. 00272 * @param instance module device instance 00273 * @return freq clock frequence for this module 00274 */ 00275 uint32_t CLOCK_SYS_GetSaiFreq(uint32_t instance); 00276 00277 /*! 00278 * @brief Gets the clock frequency for GPIO module 00279 * 00280 * This function gets the clock frequence for GPIO module. 00281 * @param instance module device instance 00282 * @return freq clock frequence for this module 00283 */ 00284 uint32_t CLOCK_SYS_GetGpioFreq(uint32_t instance); 00285 00286 /*! 00287 * @brief Enable the clock for DMA module. 00288 * 00289 * This function enables the clock for DMA moudle. 00290 * @param instance module device instance 00291 */ 00292 static inline void CLOCK_SYS_EnableDmaClock(uint32_t instance) 00293 { 00294 SIM_HAL_EnableDmaClock(g_simBaseAddr[0], instance); 00295 } 00296 00297 /*! 00298 * @brief Disable the clock for DMA module. 00299 * 00300 * This function disables the clock for DMA moudle. 00301 * @param instance module device instance 00302 */ 00303 static inline void CLOCK_SYS_DisableDmaClock(uint32_t instance) 00304 { 00305 SIM_HAL_DisableDmaClock(g_simBaseAddr[0], instance); 00306 } 00307 00308 /*! 00309 * @brief Get the the clock gate state for DMA module. 00310 * 00311 * This function will get the clock gate state for DMA moudle. 00312 * @param instance module device instance 00313 * @return state true - ungated(Enabled), false - gated (Disabled) 00314 */ 00315 static inline bool CLOCK_SYS_GetDmaGateCmd(uint32_t instance) 00316 { 00317 return SIM_HAL_GetDmaGateCmd(g_simBaseAddr[0], instance); 00318 } 00319 00320 /*! 00321 * @brief Enable the clock for DMAMUX module. 00322 * 00323 * This function enables the clock for DMAMUX moudle. 00324 * @param instance module device instance 00325 */ 00326 static inline void CLOCK_SYS_EnableDmamuxClock(uint32_t instance) 00327 { 00328 SIM_HAL_EnableDmamuxClock(g_simBaseAddr[0], instance); 00329 } 00330 00331 /*! 00332 * @brief Disable the clock for DMAMUX module. 00333 * 00334 * This function disables the clock for DMAMUX moudle. 00335 * @param instance module device instance 00336 */ 00337 static inline void CLOCK_SYS_DisableDmamuxClock(uint32_t instance) 00338 { 00339 SIM_HAL_DisableDmamuxClock(g_simBaseAddr[0], instance); 00340 } 00341 00342 /*! 00343 * @brief Get the the clock gate state for DMAMUX module. 00344 * 00345 * This function will get the clock gate state for DMAMUX moudle. 00346 * @param instance module device instance 00347 * @return state true - ungated(Enabled), false - gated (Disabled) 00348 */ 00349 static inline bool CLOCK_SYS_GetDmamuxGateCmd(uint32_t instance) 00350 { 00351 return SIM_HAL_GetDmamuxGateCmd(g_simBaseAddr[0], instance); 00352 } 00353 00354 /*! 00355 * @brief Enable the clock for PORT module. 00356 * 00357 * This function enables the clock for PORT moudle. 00358 * @param instance module device instance 00359 */ 00360 static inline void CLOCK_SYS_EnablePortClock(uint32_t instance) 00361 { 00362 SIM_HAL_EnablePortClock(g_simBaseAddr[0], instance); 00363 } 00364 00365 /*! 00366 * @brief Disable the clock for PORT module. 00367 * 00368 * This function disables the clock for PORT moudle. 00369 * @param instance module device instance 00370 */ 00371 static inline void CLOCK_SYS_DisablePortClock(uint32_t instance) 00372 { 00373 SIM_HAL_DisablePortClock(g_simBaseAddr[0], instance); 00374 } 00375 00376 /*! 00377 * @brief Get the the clock gate state for PORT module. 00378 * 00379 * This function will get the clock gate state for PORT moudle. 00380 * @param instance module device instance 00381 * @return state true - ungated(Enabled), false - gated (Disabled) 00382 */ 00383 static inline bool CLOCK_SYS_GetPortGateCmd(uint32_t instance) 00384 { 00385 return SIM_HAL_GetPortGateCmd(g_simBaseAddr[0], instance); 00386 } 00387 00388 /*! 00389 * @brief Enable the clock for MPU module. 00390 * 00391 * This function enables the clock for MPU moudle. 00392 * @param instance module device instance 00393 */ 00394 static inline void CLOCK_SYS_EnableMpuClock(uint32_t instance) 00395 { 00396 SIM_HAL_EnableMpuClock(g_simBaseAddr[0], instance); 00397 } 00398 00399 /*! 00400 * @brief Disable the clock for MPU module. 00401 * 00402 * This function disables the clock for MPU moudle. 00403 * @param instance module device instance 00404 */ 00405 static inline void CLOCK_SYS_DisableMpuClock(uint32_t instance) 00406 { 00407 SIM_HAL_DisableMpuClock(g_simBaseAddr[0], instance); 00408 } 00409 00410 /*! 00411 * @brief Get the the clock gate state for MPU module. 00412 * 00413 * This function will get the clock gate state for MPU moudle. 00414 * @param instance module device instance 00415 * @return state true - ungated(Enabled), false - gated (Disabled) 00416 */ 00417 static inline bool CLOCK_SYS_GetMpuGateCmd(uint32_t instance) 00418 { 00419 return SIM_HAL_GetMpuGateCmd(g_simBaseAddr[0], instance); 00420 } 00421 00422 /*! 00423 * @brief Enable the clock for EWM module. 00424 * 00425 * This function enables the clock for EWM moudle. 00426 * @param instance module device instance 00427 */ 00428 static inline void CLOCK_SYS_EnableEwmClock(uint32_t instance) 00429 { 00430 SIM_HAL_EnableEwmClock(g_simBaseAddr[0], instance); 00431 } 00432 00433 /*! 00434 * @brief Disable the clock for EWM module. 00435 * 00436 * This function disables the clock for EWM moudle. 00437 * @param instance module device instance 00438 */ 00439 static inline void CLOCK_SYS_DisableEwmClock(uint32_t instance) 00440 { 00441 SIM_HAL_DisableEwmClock(g_simBaseAddr[0], instance); 00442 } 00443 00444 /*! 00445 * @brief Get the the clock gate state for EWM module. 00446 * 00447 * This function will get the clock gate state for EWM moudle. 00448 * @param instance module device instance 00449 * @return state true - ungated(Enabled), false - gated (Disabled) 00450 */ 00451 static inline bool CLOCK_SYS_GetEwmGateCmd(uint32_t instance) 00452 { 00453 return SIM_HAL_GetEwmGateCmd(g_simBaseAddr[0], instance); 00454 } 00455 00456 /*! 00457 * @brief Enable the clock for FLEXBUS module. 00458 * 00459 * This function enables the clock for FLEXBUS moudle. 00460 * @param instance module device instance 00461 */ 00462 static inline void CLOCK_SYS_EnableFlexbusClock(uint32_t instance) 00463 { 00464 SIM_HAL_EnableFlexbusClock(g_simBaseAddr[0], instance); 00465 } 00466 00467 /*! 00468 * @brief Disable the clock for FLEXBUS module. 00469 * 00470 * This function disables the clock for FLEXBUS moudle. 00471 * @param instance module device instance 00472 */ 00473 static inline void CLOCK_SYS_DisableFlexbusClock(uint32_t instance) 00474 { 00475 SIM_HAL_DisableFlexbusClock(g_simBaseAddr[0], instance); 00476 } 00477 00478 /*! 00479 * @brief Get the the clock gate state for FLEXBUS module. 00480 * 00481 * This function will get the clock gate state for FLEXBUS moudle. 00482 * @param instance module device instance 00483 * @return state true - ungated(Enabled), false - gated (Disabled) 00484 */ 00485 static inline bool CLOCK_SYS_GetFlexbusGateCmd(uint32_t instance) 00486 { 00487 return SIM_HAL_GetFlexbusGateCmd(g_simBaseAddr[0], instance); 00488 } 00489 00490 /*! 00491 * @brief Enable the clock for FTF module. 00492 * 00493 * This function enables the clock for FTF moudle. 00494 * @param instance module device instance 00495 */ 00496 static inline void CLOCK_SYS_EnableFtfClock(uint32_t instance) 00497 { 00498 SIM_HAL_EnableFtfClock(g_simBaseAddr[0], instance); 00499 } 00500 00501 /*! 00502 * @brief Disable the clock for FTF module. 00503 * 00504 * This function disables the clock for FTF moudle. 00505 * @param instance module device instance 00506 */ 00507 static inline void CLOCK_SYS_DisableFtfClock(uint32_t instance) 00508 { 00509 SIM_HAL_DisableFtfClock(g_simBaseAddr[0], instance); 00510 } 00511 00512 /*! 00513 * @brief Get the the clock gate state for FTF module. 00514 * 00515 * This function will get the clock gate state for FTF moudle. 00516 * @param instance module device instance 00517 * @return state true - ungated(Enabled), false - gated (Disabled) 00518 */ 00519 static inline bool CLOCK_SYS_GetFtfGateCmd(uint32_t instance) 00520 { 00521 return SIM_HAL_GetFtfGateCmd(g_simBaseAddr[0], instance); 00522 } 00523 00524 /*! 00525 * @brief Enable the clock for CRC module. 00526 * 00527 * This function enables the clock for CRC moudle. 00528 * @param instance module device instance 00529 */ 00530 static inline void CLOCK_SYS_EnableCrcClock(uint32_t instance) 00531 { 00532 SIM_HAL_EnableCrcClock(g_simBaseAddr[0], instance); 00533 } 00534 00535 /*! 00536 * @brief Disable the clock for CRC module. 00537 * 00538 * This function disables the clock for CRC moudle. 00539 * @param instance module device instance 00540 */ 00541 static inline void CLOCK_SYS_DisableCrcClock(uint32_t instance) 00542 { 00543 SIM_HAL_DisableCrcClock(g_simBaseAddr[0], instance); 00544 } 00545 00546 /*! 00547 * @brief Get the the clock gate state for CRC module. 00548 * 00549 * This function will get the clock gate state for CRC moudle. 00550 * @param instance module device instance 00551 * @return state true - ungated(Enabled), false - gated (Disabled) 00552 */ 00553 static inline bool CLOCK_SYS_GetCrcGateCmd(uint32_t instance) 00554 { 00555 return SIM_HAL_GetCrcGateCmd(g_simBaseAddr[0], instance); 00556 } 00557 00558 /*! 00559 * @brief Enable the clock for RNGA module. 00560 * 00561 * This function enables the clock for RNGA moudle. 00562 * @param instance module device instance 00563 */ 00564 static inline void CLOCK_SYS_EnableRngaClock(uint32_t instance) 00565 { 00566 SIM_HAL_EnableRngaClock(g_simBaseAddr[0], instance); 00567 } 00568 00569 /*! 00570 * @brief Disable the clock for RNGA module. 00571 * 00572 * This function disables the clock for RNGA moudle. 00573 * @param instance module device instance 00574 */ 00575 static inline void CLOCK_SYS_DisableRngaClock(uint32_t instance) 00576 { 00577 SIM_HAL_DisableRngaClock(g_simBaseAddr[0], instance); 00578 } 00579 00580 /*! 00581 * @brief Get the the clock gate state for RNGA module. 00582 * 00583 * This function will get the clock gate state for RNGA moudle. 00584 * @param instance module device instance 00585 * @return state true - ungated(Enabled), false - gated (Disabled) 00586 */ 00587 static inline bool CLOCK_SYS_GetRngaGateCmd(uint32_t instance) 00588 { 00589 return SIM_HAL_GetRngaGateCmd(g_simBaseAddr[0], instance); 00590 } 00591 00592 /*! 00593 * @brief Enable the clock for ADC module. 00594 * 00595 * This function enables the clock for ADC moudle. 00596 * @param instance module device instance 00597 */ 00598 static inline void CLOCK_SYS_EnableAdcClock(uint32_t instance) 00599 { 00600 SIM_HAL_EnableAdcClock(g_simBaseAddr[0], instance); 00601 } 00602 00603 /*! 00604 * @brief Disable the clock for ADC module. 00605 * 00606 * This function disables the clock for ADC moudle. 00607 * @param instance module device instance 00608 */ 00609 static inline void CLOCK_SYS_DisableAdcClock(uint32_t instance) 00610 { 00611 SIM_HAL_DisableAdcClock(g_simBaseAddr[0], instance); 00612 } 00613 00614 /*! 00615 * @brief Get the the clock gate state for ADC module. 00616 * 00617 * This function will get the clock gate state for ADC moudle. 00618 * @param instance module device instance 00619 * @return state true - ungated(Enabled), false - gated (Disabled) 00620 */ 00621 static inline bool CLOCK_SYS_GetAdcGateCmd(uint32_t instance) 00622 { 00623 return SIM_HAL_GetAdcGateCmd(g_simBaseAddr[0], instance); 00624 } 00625 00626 /*! 00627 * @brief Enable the clock for CMP module. 00628 * 00629 * This function enables the clock for CMP moudle. 00630 * @param instance module device instance 00631 */ 00632 static inline void CLOCK_SYS_EnableCmpClock(uint32_t instance) 00633 { 00634 SIM_HAL_EnableCmpClock(g_simBaseAddr[0], instance); 00635 } 00636 00637 /*! 00638 * @brief Disable the clock for CMP module. 00639 * 00640 * This function disables the clock for CMP moudle. 00641 * @param instance module device instance 00642 */ 00643 static inline void CLOCK_SYS_DisableCmpClock(uint32_t instance) 00644 { 00645 SIM_HAL_DisableCmpClock(g_simBaseAddr[0], instance); 00646 } 00647 00648 /*! 00649 * @brief Get the the clock gate state for CMP module. 00650 * 00651 * This function will get the clock gate state for CMP moudle. 00652 * @param instance module device instance 00653 * @return state true - ungated(Enabled), false - gated (Disabled) 00654 */ 00655 static inline bool CLOCK_SYS_GetCmpGateCmd(uint32_t instance) 00656 { 00657 return SIM_HAL_GetCmpGateCmd(g_simBaseAddr[0], instance); 00658 } 00659 00660 /*! 00661 * @brief Enable the clock for DAC module. 00662 * 00663 * This function enables the clock for DAC moudle. 00664 * @param instance module device instance 00665 */ 00666 static inline void CLOCK_SYS_EnableDacClock(uint32_t instance) 00667 { 00668 SIM_HAL_EnableDacClock(g_simBaseAddr[0], instance); 00669 } 00670 00671 /*! 00672 * @brief Disable the clock for DAC module. 00673 * 00674 * This function disables the clock for DAC moudle. 00675 * @param instance module device instance 00676 */ 00677 static inline void CLOCK_SYS_DisableDacClock(uint32_t instance) 00678 { 00679 SIM_HAL_DisableDacClock(g_simBaseAddr[0], instance); 00680 } 00681 00682 /*! 00683 * @brief Get the the clock gate state for DAC module. 00684 * 00685 * This function will get the clock gate state for DAC moudle. 00686 * @param instance module device instance 00687 * @return state true - ungated(Enabled), false - gated (Disabled) 00688 */ 00689 static inline bool CLOCK_SYS_GetDacGateCmd(uint32_t instance) 00690 { 00691 return SIM_HAL_GetDacGateCmd(g_simBaseAddr[0], instance); 00692 } 00693 00694 /*! 00695 * @brief Enable the clock for VREF module. 00696 * 00697 * This function enables the clock for VREF moudle. 00698 * @param instance module device instance 00699 */ 00700 static inline void CLOCK_SYS_EnableVrefClock(uint32_t instance) 00701 { 00702 SIM_HAL_EnableVrefClock(g_simBaseAddr[0], instance); 00703 } 00704 00705 /*! 00706 * @brief Disable the clock for VREF module. 00707 * 00708 * This function disables the clock for VREF moudle. 00709 * @param instance module device instance 00710 */ 00711 static inline void CLOCK_SYS_DisableVrefClock(uint32_t instance) 00712 { 00713 SIM_HAL_DisableVrefClock(g_simBaseAddr[0], instance); 00714 } 00715 00716 /*! 00717 * @brief Get the the clock gate state for VREF module. 00718 * 00719 * This function will get the clock gate state for VREF moudle. 00720 * @param instance module device instance 00721 * @return state true - ungated(Enabled), false - gated (Disabled) 00722 */ 00723 static inline bool CLOCK_SYS_GetVrefGateCmd(uint32_t instance) 00724 { 00725 return SIM_HAL_GetVrefGateCmd(g_simBaseAddr[0], instance); 00726 } 00727 00728 /*! 00729 * @brief Enable the clock for SAI module. 00730 * 00731 * This function enables the clock for SAI moudle. 00732 * @param instance module device instance 00733 */ 00734 static inline void CLOCK_SYS_EnableSaiClock(uint32_t instance) 00735 { 00736 SIM_HAL_EnableSaiClock(g_simBaseAddr[0], instance); 00737 } 00738 00739 /*! 00740 * @brief Disable the clock for SAI module. 00741 * 00742 * This function disables the clock for SAI moudle. 00743 * @param instance module device instance 00744 */ 00745 static inline void CLOCK_SYS_DisableSaiClock(uint32_t instance) 00746 { 00747 SIM_HAL_DisableSaiClock(g_simBaseAddr[0], instance); 00748 } 00749 00750 /*! 00751 * @brief Get the the clock gate state for SAI module. 00752 * 00753 * This function will get the clock gate state for SAI moudle. 00754 * @param instance module device instance 00755 * @return state true - ungated(Enabled), false - gated (Disabled) 00756 */ 00757 static inline bool CLOCK_SYS_GetSaiGateCmd(uint32_t instance) 00758 { 00759 return SIM_HAL_GetSaiGateCmd(g_simBaseAddr[0], instance); 00760 } 00761 00762 /*! 00763 * @brief Enable the clock for PDB module. 00764 * 00765 * This function enables the clock for PDB moudle. 00766 * @param instance module device instance 00767 */ 00768 static inline void CLOCK_SYS_EnablePdbClock(uint32_t instance) 00769 { 00770 SIM_HAL_EnablePdbClock(g_simBaseAddr[0], instance); 00771 } 00772 00773 /*! 00774 * @brief Disable the clock for PDB module. 00775 * 00776 * This function disables the clock for PDB moudle. 00777 * @param instance module device instance 00778 */ 00779 static inline void CLOCK_SYS_DisablePdbClock(uint32_t instance) 00780 { 00781 SIM_HAL_DisablePdbClock(g_simBaseAddr[0], instance); 00782 } 00783 00784 /*! 00785 * @brief Get the the clock gate state for PDB module. 00786 * 00787 * This function will get the clock gate state for PDB moudle. 00788 * @param instance module device instance 00789 * @return state true - ungated(Enabled), false - gated (Disabled) 00790 */ 00791 static inline bool CLOCK_SYS_GetPdbGateCmd(uint32_t instance) 00792 { 00793 return SIM_HAL_GetPdbGateCmd(g_simBaseAddr[0], instance); 00794 } 00795 00796 /*! 00797 * @brief Enable the clock for FTM module. 00798 * 00799 * This function enables the clock for FTM moudle. 00800 * @param instance module device instance 00801 */ 00802 static inline void CLOCK_SYS_EnableFtmClock(uint32_t instance) 00803 { 00804 SIM_HAL_EnableFtmClock(g_simBaseAddr[0], instance); 00805 } 00806 00807 /*! 00808 * @brief Disable the clock for FTM module. 00809 * 00810 * This function disables the clock for FTM moudle. 00811 * @param instance module device instance 00812 */ 00813 static inline void CLOCK_SYS_DisableFtmClock(uint32_t instance) 00814 { 00815 SIM_HAL_DisableFtmClock(g_simBaseAddr[0], instance); 00816 } 00817 00818 /*! 00819 * @brief Get the the clock gate state for FTM module. 00820 * 00821 * This function will get the clock gate state for FTM moudle. 00822 * @param instance module device instance 00823 * @return state true - ungated(Enabled), false - gated (Disabled) 00824 */ 00825 static inline bool CLOCK_SYS_GetFtmGateCmd(uint32_t instance) 00826 { 00827 return SIM_HAL_GetFtmGateCmd(g_simBaseAddr[0], instance); 00828 } 00829 00830 /*! 00831 * @brief Enable the clock for PIT module. 00832 * 00833 * This function enables the clock for PIT moudle. 00834 * @param instance module device instance 00835 */ 00836 static inline void CLOCK_SYS_EnablePitClock(uint32_t instance) 00837 { 00838 SIM_HAL_EnablePitClock(g_simBaseAddr[0], instance); 00839 } 00840 00841 /*! 00842 * @brief Disable the clock for PIT module. 00843 * 00844 * This function disables the clock for PIT moudle. 00845 * @param instance module device instance 00846 */ 00847 static inline void CLOCK_SYS_DisablePitClock(uint32_t instance) 00848 { 00849 SIM_HAL_DisablePitClock(g_simBaseAddr[0], instance); 00850 } 00851 00852 /*! 00853 * @brief Get the the clock gate state for PIT module. 00854 * 00855 * This function will get the clock gate state for PIT moudle. 00856 * @param instance module device instance 00857 * @return state true - ungated(Enabled), false - gated (Disabled) 00858 */ 00859 static inline bool CLOCK_SYS_GetPitGateCmd(uint32_t instance) 00860 { 00861 return SIM_HAL_GetPitGateCmd(g_simBaseAddr[0], instance); 00862 } 00863 00864 /*! 00865 * @brief Enable the clock for LPTIMER module. 00866 * 00867 * This function enables the clock for LPTIMER moudle. 00868 * @param instance module device instance 00869 */ 00870 static inline void CLOCK_SYS_EnableLptimerClock(uint32_t instance) 00871 { 00872 SIM_HAL_EnableLptimerClock(g_simBaseAddr[0], instance); 00873 } 00874 00875 /*! 00876 * @brief Disable the clock for LPTIMER module. 00877 * 00878 * This function disables the clock for LPTIMER moudle. 00879 * @param instance module device instance 00880 */ 00881 static inline void CLOCK_SYS_DisableLptimerClock(uint32_t instance) 00882 { 00883 SIM_HAL_DisableLptimerClock(g_simBaseAddr[0], instance); 00884 } 00885 00886 /*! 00887 * @brief Get the the clock gate state for LPTIMER module. 00888 * 00889 * This function will get the clock gate state for LPTIMER moudle. 00890 * @param instance module device instance 00891 * @return state true - ungated(Enabled), false - gated (Disabled) 00892 */ 00893 static inline bool CLOCK_SYS_GetLptimerGateCmd(uint32_t instance) 00894 { 00895 return SIM_HAL_GetLptimerGateCmd(g_simBaseAddr[0], instance); 00896 } 00897 00898 /*! 00899 * @brief Enable the clock for CMT module. 00900 * 00901 * This function enables the clock for CMT moudle. 00902 * @param instance module device instance 00903 */ 00904 static inline void CLOCK_SYS_EnableCmtClock(uint32_t instance) 00905 { 00906 SIM_HAL_EnableCmtClock(g_simBaseAddr[0], instance); 00907 } 00908 00909 /*! 00910 * @brief Disable the clock for CMT module. 00911 * 00912 * This function disables the clock for CMT moudle. 00913 * @param instance module device instance 00914 */ 00915 static inline void CLOCK_SYS_DisableCmtClock(uint32_t instance) 00916 { 00917 SIM_HAL_DisableCmtClock(g_simBaseAddr[0], instance); 00918 } 00919 00920 /*! 00921 * @brief Get the the clock gate state for CMT module. 00922 * 00923 * This function will get the clock gate state for CMT moudle. 00924 * @param instance module device instance 00925 * @return state true - ungated(Enabled), false - gated (Disabled) 00926 */ 00927 static inline bool CLOCK_SYS_GetCmtGateCmd(uint32_t instance) 00928 { 00929 return SIM_HAL_GetCmtGateCmd(g_simBaseAddr[0], instance); 00930 } 00931 00932 /*! 00933 * @brief Enable the clock for RTC module. 00934 * 00935 * This function enables the clock for RTC moudle. 00936 * @param instance module device instance 00937 */ 00938 static inline void CLOCK_SYS_EnableRtcClock(uint32_t instance) 00939 { 00940 SIM_HAL_EnableRtcClock(g_simBaseAddr[0], instance); 00941 } 00942 00943 /*! 00944 * @brief Disable the clock for RTC module. 00945 * 00946 * This function disables the clock for RTC moudle. 00947 * @param instance module device instance 00948 */ 00949 static inline void CLOCK_SYS_DisableRtcClock(uint32_t instance) 00950 { 00951 SIM_HAL_DisableRtcClock(g_simBaseAddr[0], instance); 00952 } 00953 00954 /*! 00955 * @brief Get the the clock gate state for RTC module. 00956 * 00957 * This function will get the clock gate state for RTC moudle. 00958 * @param instance module device instance 00959 * @return state true - ungated(Enabled), false - gated (Disabled) 00960 */ 00961 static inline bool CLOCK_SYS_GetRtcGateCmd(uint32_t instance) 00962 { 00963 return SIM_HAL_GetRtcGateCmd(g_simBaseAddr[0], instance); 00964 } 00965 00966 /*! 00967 * @brief Enable the clock for ENET module. 00968 * 00969 * This function enables the clock for ENET moudle. 00970 * @param instance module device instance 00971 */ 00972 static inline void CLOCK_SYS_EnableEnetClock(uint32_t instance) 00973 { 00974 SIM_HAL_EnableEnetClock(g_simBaseAddr[0], instance); 00975 } 00976 00977 /*! 00978 * @brief Disable the clock for ENET module. 00979 * 00980 * This function disables the clock for ENET moudle. 00981 * @param instance module device instance 00982 */ 00983 static inline void CLOCK_SYS_DisableEnetClock(uint32_t instance) 00984 { 00985 SIM_HAL_DisableEnetClock(g_simBaseAddr[0], instance); 00986 } 00987 00988 /*! 00989 * @brief Get the the clock gate state for ENET module. 00990 * 00991 * This function will get the clock gate state for ENET moudle. 00992 * @param instance module device instance 00993 * @return state true - ungated(Enabled), false - gated (Disabled) 00994 */ 00995 static inline bool CLOCK_SYS_GetEnetGateCmd(uint32_t instance) 00996 { 00997 return SIM_HAL_GetEnetGateCmd(g_simBaseAddr[0], instance); 00998 } 00999 01000 /*! 01001 * @brief Enable the clock for USBFS module. 01002 * 01003 * This function enables the clock for USBFS moudle. 01004 * @param instance module device instance 01005 */ 01006 static inline void CLOCK_SYS_EnableUsbClock(uint32_t instance) 01007 { 01008 SIM_HAL_EnableUsbClock(g_simBaseAddr[0], instance); 01009 } 01010 01011 /*! 01012 * @brief Disable the clock for USBFS module. 01013 * 01014 * This function disables the clock for USBFS moudle. 01015 * @param instance module device instance 01016 */ 01017 static inline void CLOCK_SYS_DisableUsbClock(uint32_t instance) 01018 { 01019 SIM_HAL_DisableUsbClock(g_simBaseAddr[0], instance); 01020 } 01021 01022 /*! 01023 * @brief Get the the clock gate state for USB module. 01024 * 01025 * This function will get the clock gate state for USB moudle. 01026 * @param instance module device instance 01027 * @return state true - ungated(Enabled), false - gated (Disabled) 01028 */ 01029 static inline bool CLOCK_SYS_GetUsbGateCmd(uint32_t instance) 01030 { 01031 return SIM_HAL_GetUsbGateCmd(g_simBaseAddr[0], instance); 01032 } 01033 01034 /*! 01035 * @brief Enable the clock for USBDCD module. 01036 * 01037 * This function enables the clock for USBDCD moudle. 01038 * @param instance module device instance 01039 */ 01040 static inline void CLOCK_SYS_EnableUsbdcdClock(uint32_t instance) 01041 { 01042 SIM_HAL_EnableUsbdcdClock(g_simBaseAddr[0], instance); 01043 } 01044 01045 /*! 01046 * @brief Disable the clock for USBDCD module. 01047 * 01048 * This function disables the clock for USBDCD moudle. 01049 * @param instance module device instance 01050 */ 01051 static inline void CLOCK_SYS_DisableUsbdcdClock(uint32_t instance) 01052 { 01053 SIM_HAL_DisableUsbdcdClock(g_simBaseAddr[0], instance); 01054 } 01055 01056 /*! 01057 * @brief Get the the clock gate state for USBDCD module. 01058 * 01059 * This function will get the clock gate state for USBDCD moudle. 01060 * @param instance module device instance 01061 * @return state true - ungated(Enabled), false - gated (Disabled) 01062 */ 01063 static inline bool CLOCK_SYS_GetUsbdcdGateCmd(uint32_t instance) 01064 { 01065 return SIM_HAL_GetUsbdcdGateCmd(g_simBaseAddr[0], instance); 01066 } 01067 01068 /*! 01069 * @brief Enable the clock for FLEXCAN module. 01070 * 01071 * This function enables the clock for FLEXCAN moudle. 01072 * @param instance module device instance 01073 */ 01074 static inline void CLOCK_SYS_EnableFlexcanClock(uint32_t instance) 01075 { 01076 SIM_HAL_EnableFlexcanClock(g_simBaseAddr[0], instance); 01077 } 01078 01079 /*! 01080 * @brief Disable the clock for FLEXCAN module. 01081 * 01082 * This function disables the clock for FLEXCAN moudle. 01083 * @param instance module device instance 01084 */ 01085 static inline void CLOCK_SYS_DisableFlexcanClock(uint32_t instance) 01086 { 01087 SIM_HAL_DisableFlexcanClock(g_simBaseAddr[0], instance); 01088 } 01089 01090 /*! 01091 * @brief Get the the clock gate state for FLEXCAN module. 01092 * 01093 * This function will get the clock gate state for FLEXCAN moudle. 01094 * @param instance module device instance 01095 * @return state true - ungated(Enabled), false - gated (Disabled) 01096 */ 01097 static inline bool CLOCK_SYS_GetFlexcanGateCmd(uint32_t instance) 01098 { 01099 return SIM_HAL_GetFlexcanGateCmd(g_simBaseAddr[0], instance); 01100 } 01101 01102 /*! 01103 * @brief Enable the clock for SPI module. 01104 * 01105 * This function enables the clock for SPI moudle. 01106 * @param instance module device instance 01107 */ 01108 static inline void CLOCK_SYS_EnableSpiClock(uint32_t instance) 01109 { 01110 SIM_HAL_EnableSpiClock(g_simBaseAddr[0], instance); 01111 } 01112 01113 /*! 01114 * @brief Disable the clock for SPI module. 01115 * 01116 * This function disables the clock for SPI moudle. 01117 * @param instance module device instance 01118 */ 01119 static inline void CLOCK_SYS_DisableSpiClock(uint32_t instance) 01120 { 01121 SIM_HAL_DisableSpiClock(g_simBaseAddr[0], instance); 01122 } 01123 01124 /*! 01125 * @brief Get the the clock gate state for SPI module. 01126 * 01127 * This function will get the clock gate state for SPI moudle. 01128 * @param instance module device instance 01129 * @return state true - ungated(Enabled), false - gated (Disabled) 01130 */ 01131 static inline bool CLOCK_SYS_GetSpiGateCmd(uint32_t instance) 01132 { 01133 return SIM_HAL_GetSpiGateCmd(g_simBaseAddr[0], instance); 01134 } 01135 01136 /*! 01137 * @brief Enable the clock for I2C module. 01138 * 01139 * This function enables the clock for I2C moudle. 01140 * @param instance module device instance 01141 */ 01142 static inline void CLOCK_SYS_EnableI2cClock(uint32_t instance) 01143 { 01144 SIM_HAL_EnableI2cClock(g_simBaseAddr[0], instance); 01145 } 01146 01147 /*! 01148 * @brief Disable the clock for I2C module. 01149 * 01150 * This function disables the clock for I2C moudle. 01151 * @param instance module device instance 01152 */ 01153 static inline void CLOCK_SYS_DisableI2cClock(uint32_t instance) 01154 { 01155 SIM_HAL_DisableI2cClock(g_simBaseAddr[0], instance); 01156 } 01157 01158 /*! 01159 * @brief Get the the clock gate state for I2C module. 01160 * 01161 * This function will get the clock gate state for I2C moudle. 01162 * @param instance module device instance 01163 * @return state true - ungated(Enabled), false - gated (Disabled) 01164 */ 01165 static inline bool CLOCK_SYS_GetI2cGateCmd(uint32_t instance) 01166 { 01167 return SIM_HAL_GetI2cGateCmd(g_simBaseAddr[0], instance); 01168 } 01169 01170 /*! 01171 * @brief Enable the clock for UART module. 01172 * 01173 * This function enables the clock for UART moudle. 01174 * @param instance module device instance 01175 */ 01176 static inline void CLOCK_SYS_EnableUartClock(uint32_t instance) 01177 { 01178 SIM_HAL_EnableUartClock(g_simBaseAddr[0], instance); 01179 } 01180 01181 /*! 01182 * @brief Disable the clock for UART module. 01183 * 01184 * This function disables the clock for UART moudle. 01185 * @param instance module device instance 01186 */ 01187 static inline void CLOCK_SYS_DisableUartClock(uint32_t instance) 01188 { 01189 SIM_HAL_DisableUartClock(g_simBaseAddr[0], instance); 01190 } 01191 01192 /*! 01193 * @brief Get the the clock gate state for UART module. 01194 * 01195 * This function will get the clock gate state for UART moudle. 01196 * @param instance module device instance 01197 * @return state true - ungated(Enabled), false - gated (Disabled) 01198 */ 01199 static inline bool CLOCK_SYS_GetUartGateCmd(uint32_t instance) 01200 { 01201 return SIM_HAL_GetUartGateCmd(g_simBaseAddr[0], instance); 01202 } 01203 01204 /*! 01205 * @brief Enable the clock for SDHC module. 01206 * 01207 * This function enables the clock for SDHC moudle. 01208 * @param instance module device instance 01209 */ 01210 static inline void CLOCK_SYS_EnableSdhcClock(uint32_t instance) 01211 { 01212 SIM_HAL_EnableSdhcClock(g_simBaseAddr[0], instance); 01213 } 01214 01215 /*! 01216 * @brief Disable the clock for SDHC module. 01217 * 01218 * This function disables the clock for SDHC moudle. 01219 * @param instance module device instance 01220 */ 01221 static inline void CLOCK_SYS_DisableSdhcClock(uint32_t instance) 01222 { 01223 SIM_HAL_DisableSdhcClock(g_simBaseAddr[0], instance); 01224 } 01225 01226 /*! 01227 * @brief Get the the clock gate state for SDHC module. 01228 * 01229 * This function will get the clock gate state for SDHC moudle. 01230 * @param instance module device instance 01231 * @return state true - ungated(Enabled), false - gated (Disabled) 01232 */ 01233 static inline bool CLOCK_SYS_GetSdhcGateCmd(uint32_t instance) 01234 { 01235 return SIM_HAL_GetSdhcGateCmd(g_simBaseAddr[0], instance); 01236 } 01237 01238 #if defined(__cplusplus) 01239 } 01240 #endif /* __cplusplus*/ 01241 01242 /*! @}*/ 01243 01244 #endif /* __FSL_CLOCK_K64F12_H__ */ 01245 /******************************************************************************* 01246 * EOF 01247 ******************************************************************************/ 01248
Generated on Sat Aug 27 2022 17:08:59 by
