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