fsl_rcm.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. /*
  2. * Copyright (c) 2015, Freescale Semiconductor, Inc.
  3. * Copyright 2016-2017 NXP
  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 the copyright holder 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. #ifndef _FSL_RCM_H_
  31. #define _FSL_RCM_H_
  32. #include "fsl_common.h"
  33. /*! @addtogroup rcm */
  34. /*! @{*/
  35. /*******************************************************************************
  36. * Definitions
  37. ******************************************************************************/
  38. /*! @name Driver version */
  39. /*@{*/
  40. /*! @brief RCM driver version 2.0.1. */
  41. #define FSL_RCM_DRIVER_VERSION (MAKE_VERSION(2, 0, 1))
  42. /*@}*/
  43. /*!
  44. * @brief System Reset Source Name definitions
  45. */
  46. typedef enum _rcm_reset_source
  47. {
  48. #if (defined(FSL_FEATURE_RCM_REG_WIDTH) && (FSL_FEATURE_RCM_REG_WIDTH == 32))
  49. /* RCM register bit width is 32. */
  50. #if (defined(FSL_FEATURE_RCM_HAS_WAKEUP) && FSL_FEATURE_RCM_HAS_WAKEUP)
  51. kRCM_SourceWakeup = RCM_SRS_WAKEUP_MASK, /*!< Low-leakage wakeup reset */
  52. #endif
  53. kRCM_SourceLvd = RCM_SRS_LVD_MASK, /*!< Low-voltage detect reset */
  54. #if (defined(FSL_FEATURE_RCM_HAS_LOC) && FSL_FEATURE_RCM_HAS_LOC)
  55. kRCM_SourceLoc = RCM_SRS_LOC_MASK, /*!< Loss of clock reset */
  56. #endif /* FSL_FEATURE_RCM_HAS_LOC */
  57. #if (defined(FSL_FEATURE_RCM_HAS_LOL) && FSL_FEATURE_RCM_HAS_LOL)
  58. kRCM_SourceLol = RCM_SRS_LOL_MASK, /*!< Loss of lock reset */
  59. #endif /* FSL_FEATURE_RCM_HAS_LOL */
  60. kRCM_SourceWdog = RCM_SRS_WDOG_MASK, /*!< Watchdog reset */
  61. kRCM_SourcePin = RCM_SRS_PIN_MASK, /*!< External pin reset */
  62. kRCM_SourcePor = RCM_SRS_POR_MASK, /*!< Power on reset */
  63. #if (defined(FSL_FEATURE_RCM_HAS_JTAG) && FSL_FEATURE_RCM_HAS_JTAG)
  64. kRCM_SourceJtag = RCM_SRS_JTAG_MASK, /*!< JTAG generated reset */
  65. #endif /* FSL_FEATURE_RCM_HAS_JTAG */
  66. kRCM_SourceLockup = RCM_SRS_LOCKUP_MASK, /*!< Core lock up reset */
  67. kRCM_SourceSw = RCM_SRS_SW_MASK, /*!< Software reset */
  68. #if (defined(FSL_FEATURE_RCM_HAS_MDM_AP) && FSL_FEATURE_RCM_HAS_MDM_AP)
  69. kRCM_SourceMdmap = RCM_SRS_MDM_AP_MASK, /*!< MDM-AP system reset */
  70. #endif /* FSL_FEATURE_RCM_HAS_MDM_AP */
  71. #if (defined(FSL_FEATURE_RCM_HAS_EZPORT) && FSL_FEATURE_RCM_HAS_EZPORT)
  72. kRCM_SourceEzpt = RCM_SRS_EZPT_MASK, /*!< EzPort reset */
  73. #endif /* FSL_FEATURE_RCM_HAS_EZPORT */
  74. kRCM_SourceSackerr = RCM_SRS_SACKERR_MASK, /*!< Parameter could get all reset flags */
  75. #else /* (FSL_FEATURE_RCM_REG_WIDTH == 32) */
  76. /* RCM register bit width is 8. */
  77. #if (defined(FSL_FEATURE_RCM_HAS_WAKEUP) && FSL_FEATURE_RCM_HAS_WAKEUP)
  78. kRCM_SourceWakeup = RCM_SRS0_WAKEUP_MASK, /*!< Low-leakage wakeup reset */
  79. #endif
  80. kRCM_SourceLvd = RCM_SRS0_LVD_MASK, /*!< Low-voltage detect reset */
  81. #if (defined(FSL_FEATURE_RCM_HAS_LOC) && FSL_FEATURE_RCM_HAS_LOC)
  82. kRCM_SourceLoc = RCM_SRS0_LOC_MASK, /*!< Loss of clock reset */
  83. #endif /* FSL_FEATURE_RCM_HAS_LOC */
  84. #if (defined(FSL_FEATURE_RCM_HAS_LOL) && FSL_FEATURE_RCM_HAS_LOL)
  85. kRCM_SourceLol = RCM_SRS0_LOL_MASK, /*!< Loss of lock reset */
  86. #endif /* FSL_FEATURE_RCM_HAS_LOL */
  87. kRCM_SourceWdog = RCM_SRS0_WDOG_MASK, /*!< Watchdog reset */
  88. kRCM_SourcePin = RCM_SRS0_PIN_MASK, /*!< External pin reset */
  89. kRCM_SourcePor = RCM_SRS0_POR_MASK, /*!< Power on reset */
  90. #if (defined(FSL_FEATURE_RCM_HAS_JTAG) && FSL_FEATURE_RCM_HAS_JTAG)
  91. kRCM_SourceJtag = RCM_SRS1_JTAG_MASK << 8U, /*!< JTAG generated reset */
  92. #endif /* FSL_FEATURE_RCM_HAS_JTAG */
  93. kRCM_SourceLockup = RCM_SRS1_LOCKUP_MASK << 8U, /*!< Core lock up reset */
  94. kRCM_SourceSw = RCM_SRS1_SW_MASK << 8U, /*!< Software reset */
  95. #if (defined(FSL_FEATURE_RCM_HAS_MDM_AP) && FSL_FEATURE_RCM_HAS_MDM_AP)
  96. kRCM_SourceMdmap = RCM_SRS1_MDM_AP_MASK << 8U, /*!< MDM-AP system reset */
  97. #endif /* FSL_FEATURE_RCM_HAS_MDM_AP */
  98. #if (defined(FSL_FEATURE_RCM_HAS_EZPORT) && FSL_FEATURE_RCM_HAS_EZPORT)
  99. kRCM_SourceEzpt = RCM_SRS1_EZPT_MASK << 8U, /*!< EzPort reset */
  100. #endif /* FSL_FEATURE_RCM_HAS_EZPORT */
  101. kRCM_SourceSackerr = RCM_SRS1_SACKERR_MASK << 8U, /*!< Parameter could get all reset flags */
  102. #endif /* (FSL_FEATURE_RCM_REG_WIDTH == 32) */
  103. kRCM_SourceAll = 0xffffffffU,
  104. } rcm_reset_source_t;
  105. /*!
  106. * @brief Reset pin filter select in Run and Wait modes.
  107. */
  108. typedef enum _rcm_run_wait_filter_mode
  109. {
  110. kRCM_FilterDisable = 0U, /*!< All filtering disabled */
  111. kRCM_FilterBusClock = 1U, /*!< Bus clock filter enabled */
  112. kRCM_FilterLpoClock = 2U /*!< LPO clock filter enabled */
  113. } rcm_run_wait_filter_mode_t;
  114. #if (defined(FSL_FEATURE_RCM_HAS_BOOTROM) && FSL_FEATURE_RCM_HAS_BOOTROM)
  115. /*!
  116. * @brief Boot from ROM configuration.
  117. */
  118. typedef enum _rcm_boot_rom_config
  119. {
  120. kRCM_BootFlash = 0U, /*!< Boot from flash */
  121. kRCM_BootRomCfg0 = 1U, /*!< Boot from boot ROM due to BOOTCFG0 */
  122. kRCM_BootRomFopt = 2U, /*!< Boot from boot ROM due to FOPT[7] */
  123. kRCM_BootRomBoth = 3U /*!< Boot from boot ROM due to both BOOTCFG0 and FOPT[7] */
  124. } rcm_boot_rom_config_t;
  125. #endif /* FSL_FEATURE_RCM_HAS_BOOTROM */
  126. #if (defined(FSL_FEATURE_RCM_HAS_SRIE) && FSL_FEATURE_RCM_HAS_SRIE)
  127. /*!
  128. * @brief Maximum delay time from interrupt asserts to system reset.
  129. */
  130. typedef enum _rcm_reset_delay
  131. {
  132. kRCM_ResetDelay8Lpo = 0U, /*!< Delay 8 LPO cycles. */
  133. kRCM_ResetDelay32Lpo = 1U, /*!< Delay 32 LPO cycles. */
  134. kRCM_ResetDelay128Lpo = 2U, /*!< Delay 128 LPO cycles. */
  135. kRCM_ResetDelay512Lpo = 3U /*!< Delay 512 LPO cycles. */
  136. } rcm_reset_delay_t;
  137. /*!
  138. * @brief System reset interrupt enable bit definitions.
  139. */
  140. typedef enum _rcm_interrupt_enable
  141. {
  142. kRCM_IntNone = 0U, /*!< No interrupt enabled. */
  143. kRCM_IntLossOfClk = RCM_SRIE_LOC_MASK, /*!< Loss of clock interrupt. */
  144. kRCM_IntLossOfLock = RCM_SRIE_LOL_MASK, /*!< Loss of lock interrupt. */
  145. kRCM_IntWatchDog = RCM_SRIE_WDOG_MASK, /*!< Watch dog interrupt. */
  146. kRCM_IntExternalPin = RCM_SRIE_PIN_MASK, /*!< External pin interrupt. */
  147. kRCM_IntGlobal = RCM_SRIE_GIE_MASK, /*!< Global interrupts. */
  148. kRCM_IntCoreLockup = RCM_SRIE_LOCKUP_MASK, /*!< Core lock up interrupt */
  149. kRCM_IntSoftware = RCM_SRIE_SW_MASK, /*!< software interrupt */
  150. kRCM_IntStopModeAckErr = RCM_SRIE_SACKERR_MASK, /*!< Stop mode ACK error interrupt. */
  151. #if (defined(FSL_FEATURE_RCM_HAS_CORE1) && FSL_FEATURE_RCM_HAS_CORE1)
  152. kRCM_IntCore1 = RCM_SRIE_CORE1_MASK, /*!< Core 1 interrupt. */
  153. #endif
  154. kRCM_IntAll = RCM_SRIE_LOC_MASK /*!< Enable all interrupts. */
  155. |
  156. RCM_SRIE_LOL_MASK | RCM_SRIE_WDOG_MASK | RCM_SRIE_PIN_MASK | RCM_SRIE_GIE_MASK |
  157. RCM_SRIE_LOCKUP_MASK | RCM_SRIE_SW_MASK | RCM_SRIE_SACKERR_MASK
  158. #if (defined(FSL_FEATURE_RCM_HAS_CORE1) && FSL_FEATURE_RCM_HAS_CORE1)
  159. |
  160. RCM_SRIE_CORE1_MASK
  161. #endif
  162. } rcm_interrupt_enable_t;
  163. #endif /* FSL_FEATURE_RCM_HAS_SRIE */
  164. #if (defined(FSL_FEATURE_RCM_HAS_VERID) && FSL_FEATURE_RCM_HAS_VERID)
  165. /*!
  166. * @brief IP version ID definition.
  167. */
  168. typedef struct _rcm_version_id
  169. {
  170. uint16_t feature; /*!< Feature Specification Number. */
  171. uint8_t minor; /*!< Minor version number. */
  172. uint8_t major; /*!< Major version number. */
  173. } rcm_version_id_t;
  174. #endif
  175. /*!
  176. * @brief Reset pin filter configuration.
  177. */
  178. typedef struct _rcm_reset_pin_filter_config
  179. {
  180. bool enableFilterInStop; /*!< Reset pin filter select in stop mode. */
  181. rcm_run_wait_filter_mode_t filterInRunWait; /*!< Reset pin filter in run/wait mode. */
  182. uint8_t busClockFilterCount; /*!< Reset pin bus clock filter width. */
  183. } rcm_reset_pin_filter_config_t;
  184. /*******************************************************************************
  185. * API
  186. ******************************************************************************/
  187. #if defined(__cplusplus)
  188. extern "C" {
  189. #endif /* __cplusplus*/
  190. /*! @name Reset Control Module APIs*/
  191. /*@{*/
  192. #if (defined(FSL_FEATURE_RCM_HAS_VERID) && FSL_FEATURE_RCM_HAS_VERID)
  193. /*!
  194. * @brief Gets the RCM version ID.
  195. *
  196. * This function gets the RCM version ID including the major version number,
  197. * the minor version number, and the feature specification number.
  198. *
  199. * @param base RCM peripheral base address.
  200. * @param versionId Pointer to the version ID structure.
  201. */
  202. static inline void RCM_GetVersionId(RCM_Type *base, rcm_version_id_t *versionId)
  203. {
  204. *((uint32_t *)versionId) = base->VERID;
  205. }
  206. #endif
  207. #if (defined(FSL_FEATURE_RCM_HAS_PARAM) && FSL_FEATURE_RCM_HAS_PARAM)
  208. /*!
  209. * @brief Gets the reset source implemented status.
  210. *
  211. * This function gets the RCM parameter that indicates whether the corresponding reset source is implemented.
  212. * Use source masks defined in the rcm_reset_source_t to get the desired source status.
  213. *
  214. * This is an example.
  215. @code
  216. uint32_t status;
  217. // To test whether the MCU is reset using Watchdog.
  218. status = RCM_GetResetSourceImplementedStatus(RCM) & (kRCM_SourceWdog | kRCM_SourcePin);
  219. @endcode
  220. *
  221. * @param base RCM peripheral base address.
  222. * @return All reset source implemented status bit map.
  223. */
  224. static inline uint32_t RCM_GetResetSourceImplementedStatus(RCM_Type *base)
  225. {
  226. return base->PARAM;
  227. }
  228. #endif /* FSL_FEATURE_RCM_HAS_PARAM */
  229. /*!
  230. * @brief Gets the reset source status which caused a previous reset.
  231. *
  232. * This function gets the current reset source status. Use source masks
  233. * defined in the rcm_reset_source_t to get the desired source status.
  234. *
  235. * This is an example.
  236. @code
  237. uint32_t resetStatus;
  238. // To get all reset source statuses.
  239. resetStatus = RCM_GetPreviousResetSources(RCM) & kRCM_SourceAll;
  240. // To test whether the MCU is reset using Watchdog.
  241. resetStatus = RCM_GetPreviousResetSources(RCM) & kRCM_SourceWdog;
  242. // To test multiple reset sources.
  243. resetStatus = RCM_GetPreviousResetSources(RCM) & (kRCM_SourceWdog | kRCM_SourcePin);
  244. @endcode
  245. *
  246. * @param base RCM peripheral base address.
  247. * @return All reset source status bit map.
  248. */
  249. static inline uint32_t RCM_GetPreviousResetSources(RCM_Type *base)
  250. {
  251. #if (defined(FSL_FEATURE_RCM_REG_WIDTH) && (FSL_FEATURE_RCM_REG_WIDTH == 32))
  252. return base->SRS;
  253. #else
  254. return (uint32_t)((uint32_t)base->SRS0 | ((uint32_t)base->SRS1 << 8U));
  255. #endif /* (FSL_FEATURE_RCM_REG_WIDTH == 32) */
  256. }
  257. #if (defined(FSL_FEATURE_RCM_HAS_SSRS) && FSL_FEATURE_RCM_HAS_SSRS)
  258. /*!
  259. * @brief Gets the sticky reset source status.
  260. *
  261. * This function gets the current reset source status that has not been cleared
  262. * by software for a specific source.
  263. *
  264. * This is an example.
  265. @code
  266. uint32_t resetStatus;
  267. // To get all reset source statuses.
  268. resetStatus = RCM_GetStickyResetSources(RCM) & kRCM_SourceAll;
  269. // To test whether the MCU is reset using Watchdog.
  270. resetStatus = RCM_GetStickyResetSources(RCM) & kRCM_SourceWdog;
  271. // To test multiple reset sources.
  272. resetStatus = RCM_GetStickyResetSources(RCM) & (kRCM_SourceWdog | kRCM_SourcePin);
  273. @endcode
  274. *
  275. * @param base RCM peripheral base address.
  276. * @return All reset source status bit map.
  277. */
  278. static inline uint32_t RCM_GetStickyResetSources(RCM_Type *base)
  279. {
  280. #if (defined(FSL_FEATURE_RCM_REG_WIDTH) && (FSL_FEATURE_RCM_REG_WIDTH == 32))
  281. return base->SSRS;
  282. #else
  283. return (base->SSRS0 | ((uint32_t)base->SSRS1 << 8U));
  284. #endif /* (FSL_FEATURE_RCM_REG_WIDTH == 32) */
  285. }
  286. /*!
  287. * @brief Clears the sticky reset source status.
  288. *
  289. * This function clears the sticky system reset flags indicated by source masks.
  290. *
  291. * This is an example.
  292. @code
  293. // Clears multiple reset sources.
  294. RCM_ClearStickyResetSources(kRCM_SourceWdog | kRCM_SourcePin);
  295. @endcode
  296. *
  297. * @param base RCM peripheral base address.
  298. * @param sourceMasks reset source status bit map
  299. */
  300. static inline void RCM_ClearStickyResetSources(RCM_Type *base, uint32_t sourceMasks)
  301. {
  302. #if (defined(FSL_FEATURE_RCM_REG_WIDTH) && (FSL_FEATURE_RCM_REG_WIDTH == 32))
  303. base->SSRS = sourceMasks;
  304. #else
  305. base->SSRS0 = (sourceMasks & 0xffU);
  306. base->SSRS1 = ((sourceMasks >> 8U) & 0xffU);
  307. #endif /* (FSL_FEATURE_RCM_REG_WIDTH == 32) */
  308. }
  309. #endif /* FSL_FEATURE_RCM_HAS_SSRS */
  310. /*!
  311. * @brief Configures the reset pin filter.
  312. *
  313. * This function sets the reset pin filter including the filter source, filter
  314. * width, and so on.
  315. *
  316. * @param base RCM peripheral base address.
  317. * @param config Pointer to the configuration structure.
  318. */
  319. void RCM_ConfigureResetPinFilter(RCM_Type *base, const rcm_reset_pin_filter_config_t *config);
  320. #if (defined(FSL_FEATURE_RCM_HAS_EZPMS) && FSL_FEATURE_RCM_HAS_EZPMS)
  321. /*!
  322. * @brief Gets the EZP_MS_B pin assert status.
  323. *
  324. * This function gets the easy port mode status (EZP_MS_B) pin assert status.
  325. *
  326. * @param base RCM peripheral base address.
  327. * @return status true - asserted, false - reasserted
  328. */
  329. static inline bool RCM_GetEasyPortModePinStatus(RCM_Type *base)
  330. {
  331. return (bool)(base->MR & RCM_MR_EZP_MS_MASK);
  332. }
  333. #endif /* FSL_FEATURE_RCM_HAS_EZPMS */
  334. #if (defined(FSL_FEATURE_RCM_HAS_BOOTROM) && FSL_FEATURE_RCM_HAS_BOOTROM)
  335. /*!
  336. * @brief Gets the ROM boot source.
  337. *
  338. * This function gets the ROM boot source during the last chip reset.
  339. *
  340. * @param base RCM peripheral base address.
  341. * @return The ROM boot source.
  342. */
  343. static inline rcm_boot_rom_config_t RCM_GetBootRomSource(RCM_Type *base)
  344. {
  345. return (rcm_boot_rom_config_t)((base->MR & RCM_MR_BOOTROM_MASK) >> RCM_MR_BOOTROM_SHIFT);
  346. }
  347. /*!
  348. * @brief Clears the ROM boot source flag.
  349. *
  350. * This function clears the ROM boot source flag.
  351. *
  352. * @param base Register base address of RCM
  353. */
  354. static inline void RCM_ClearBootRomSource(RCM_Type *base)
  355. {
  356. base->MR |= RCM_MR_BOOTROM_MASK;
  357. }
  358. /*!
  359. * @brief Forces the boot from ROM.
  360. *
  361. * This function forces booting from ROM during all subsequent system resets.
  362. *
  363. * @param base RCM peripheral base address.
  364. * @param config Boot configuration.
  365. */
  366. void RCM_SetForceBootRomSource(RCM_Type *base, rcm_boot_rom_config_t config);
  367. #endif /* FSL_FEATURE_RCM_HAS_BOOTROM */
  368. #if (defined(FSL_FEATURE_RCM_HAS_SRIE) && FSL_FEATURE_RCM_HAS_SRIE)
  369. /*!
  370. * @brief Sets the system reset interrupt configuration.
  371. *
  372. * For a graceful shut down, the RCM supports delaying the assertion of the system
  373. * reset for a period of time when the reset interrupt is generated. This function
  374. * can be used to enable the interrupt and the delay period. The interrupts
  375. * are passed in as bit mask. See rcm_int_t for details. For example, to
  376. * delay a reset for 512 LPO cycles after the WDOG timeout or loss-of-clock occurs,
  377. * configure as follows:
  378. * RCM_SetSystemResetInterruptConfig(kRCM_IntWatchDog | kRCM_IntLossOfClk, kRCM_ResetDelay512Lpo);
  379. *
  380. * @param base RCM peripheral base address.
  381. * @param intMask Bit mask of the system reset interrupts to enable. See
  382. * rcm_interrupt_enable_t for details.
  383. * @param Delay Bit mask of the system reset interrupts to enable.
  384. */
  385. static inline void RCM_SetSystemResetInterruptConfig(RCM_Type *base, uint32_t intMask, rcm_reset_delay_t delay)
  386. {
  387. base->SRIE = (intMask | delay);
  388. }
  389. #endif /* FSL_FEATURE_RCM_HAS_SRIE */
  390. /*@}*/
  391. #if defined(__cplusplus)
  392. }
  393. #endif /* __cplusplus*/
  394. /*! @}*/
  395. #endif /* _FSL_RCM_H_ */