fsl_sysmpu.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. /*
  2. * Copyright (c) 2015 - 2016, 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_SYSMPU_H_
  31. #define _FSL_SYSMPU_H_
  32. #include "fsl_common.h"
  33. /*!
  34. * @addtogroup sysmpu
  35. * @{
  36. */
  37. /*******************************************************************************
  38. * Definitions
  39. ******************************************************************************/
  40. /*! @name Driver version */
  41. /*@{*/
  42. /*! @brief SYSMPU driver version 2.2.0. */
  43. #define FSL_SYSMPU_DRIVER_VERSION (MAKE_VERSION(2, 2, 0))
  44. /*@}*/
  45. /*! @brief define the start master port with read and write attributes. */
  46. #define SYSMPU_MASTER_RWATTRIBUTE_START_PORT (4)
  47. /*! @brief SYSMPU the bit shift for masters with privilege rights: read write and execute. */
  48. #define SYSMPU_REGION_RWXRIGHTS_MASTER_SHIFT(n) (n * 6)
  49. /*! @brief SYSMPU masters with read, write and execute rights bit mask. */
  50. #define SYSMPU_REGION_RWXRIGHTS_MASTER_MASK(n) (0x1Fu << SYSMPU_REGION_RWXRIGHTS_MASTER_SHIFT(n))
  51. /*! @brief SYSMPU masters with read, write and execute rights bit width. */
  52. #define SYSMPU_REGION_RWXRIGHTS_MASTER_WIDTH 5
  53. /*! @brief SYSMPU masters with read, write and execute rights priority setting. */
  54. #define SYSMPU_REGION_RWXRIGHTS_MASTER(n, x) \
  55. (((uint32_t)(((uint32_t)(x)) << SYSMPU_REGION_RWXRIGHTS_MASTER_SHIFT(n))) & SYSMPU_REGION_RWXRIGHTS_MASTER_MASK(n))
  56. /*! @brief SYSMPU masters with read, write and execute rights process enable bit shift. */
  57. #define SYSMPU_REGION_RWXRIGHTS_MASTER_PE_SHIFT(n) (n * 6 + SYSMPU_REGION_RWXRIGHTS_MASTER_WIDTH)
  58. /*! @brief SYSMPU masters with read, write and execute rights process enable bit mask. */
  59. #define SYSMPU_REGION_RWXRIGHTS_MASTER_PE_MASK(n) (0x1u << SYSMPU_REGION_RWXRIGHTS_MASTER_PE_SHIFT(n))
  60. /*! @brief SYSMPU masters with read, write and execute rights process enable setting. */
  61. #define SYSMPU_REGION_RWXRIGHTS_MASTER_PE(n, x) \
  62. (((uint32_t)(((uint32_t)(x)) << SYSMPU_REGION_RWXRIGHTS_MASTER_PE_SHIFT(n))) & SYSMPU_REGION_RWXRIGHTS_MASTER_PE_MASK(n))
  63. /*! @brief SYSMPU masters with normal read write permission bit shift. */
  64. #define SYSMPU_REGION_RWRIGHTS_MASTER_SHIFT(n) ((n - SYSMPU_MASTER_RWATTRIBUTE_START_PORT) * 2 + 24)
  65. /*! @brief SYSMPU masters with normal read write rights bit mask. */
  66. #define SYSMPU_REGION_RWRIGHTS_MASTER_MASK(n) (0x3u << SYSMPU_REGION_RWRIGHTS_MASTER_SHIFT(n))
  67. /*! @brief SYSMPU masters with normal read write rights priority setting. */
  68. #define SYSMPU_REGION_RWRIGHTS_MASTER(n, x) \
  69. (((uint32_t)(((uint32_t)(x)) << SYSMPU_REGION_RWRIGHTS_MASTER_SHIFT(n))) & SYSMPU_REGION_RWRIGHTS_MASTER_MASK(n))
  70. /*! @brief Describes the number of SYSMPU regions. */
  71. typedef enum _sysmpu_region_total_num
  72. {
  73. kSYSMPU_8Regions = 0x0U, /*!< SYSMPU supports 8 regions. */
  74. kSYSMPU_12Regions = 0x1U, /*!< SYSMPU supports 12 regions. */
  75. kSYSMPU_16Regions = 0x2U /*!< SYSMPU supports 16 regions. */
  76. } sysmpu_region_total_num_t;
  77. /*! @brief SYSMPU slave port number. */
  78. typedef enum _sysmpu_slave
  79. {
  80. kSYSMPU_Slave0 = 0U, /*!< SYSMPU slave port 0. */
  81. kSYSMPU_Slave1 = 1U, /*!< SYSMPU slave port 1. */
  82. kSYSMPU_Slave2 = 2U, /*!< SYSMPU slave port 2. */
  83. kSYSMPU_Slave3 = 3U, /*!< SYSMPU slave port 3. */
  84. kSYSMPU_Slave4 = 4U, /*!< SYSMPU slave port 4. */
  85. #if FSL_FEATURE_SYSMPU_SLAVE_COUNT > 5
  86. kSYSMPU_Slave5 = 5U, /*!< SYSMPU slave port 5. */
  87. #endif
  88. #if FSL_FEATURE_SYSMPU_SLAVE_COUNT > 6
  89. kSYSMPU_Slave6 = 6U, /*!< SYSMPU slave port 6. */
  90. #endif
  91. #if FSL_FEATURE_SYSMPU_SLAVE_COUNT > 7
  92. kSYSMPU_Slave7 = 7U, /*!< SYSMPU slave port 7. */
  93. #endif
  94. } sysmpu_slave_t;
  95. /*! @brief SYSMPU error access control detail. */
  96. typedef enum _sysmpu_err_access_control
  97. {
  98. kSYSMPU_NoRegionHit = 0U, /*!< No region hit error. */
  99. kSYSMPU_NoneOverlappRegion = 1U, /*!< Access single region error. */
  100. kSYSMPU_OverlappRegion = 2U /*!< Access overlapping region error. */
  101. } sysmpu_err_access_control_t;
  102. /*! @brief SYSMPU error access type. */
  103. typedef enum _sysmpu_err_access_type
  104. {
  105. kSYSMPU_ErrTypeRead = 0U, /*!< SYSMPU error access type --- read. */
  106. kSYSMPU_ErrTypeWrite = 1U /*!< SYSMPU error access type --- write. */
  107. } sysmpu_err_access_type_t;
  108. /*! @brief SYSMPU access error attributes.*/
  109. typedef enum _sysmpu_err_attributes
  110. {
  111. kSYSMPU_InstructionAccessInUserMode = 0U, /*!< Access instruction error in user mode. */
  112. kSYSMPU_DataAccessInUserMode = 1U, /*!< Access data error in user mode. */
  113. kSYSMPU_InstructionAccessInSupervisorMode = 2U, /*!< Access instruction error in supervisor mode. */
  114. kSYSMPU_DataAccessInSupervisorMode = 3U /*!< Access data error in supervisor mode. */
  115. } sysmpu_err_attributes_t;
  116. /*! @brief SYSMPU access rights in supervisor mode for bus master 0 ~ 3. */
  117. typedef enum _sysmpu_supervisor_access_rights
  118. {
  119. kSYSMPU_SupervisorReadWriteExecute = 0U, /*!< Read write and execute operations are allowed in supervisor mode. */
  120. kSYSMPU_SupervisorReadExecute = 1U, /*!< Read and execute operations are allowed in supervisor mode. */
  121. kSYSMPU_SupervisorReadWrite = 2U, /*!< Read write operations are allowed in supervisor mode. */
  122. kSYSMPU_SupervisorEqualToUsermode = 3U /*!< Access permission equal to user mode. */
  123. } sysmpu_supervisor_access_rights_t;
  124. /*! @brief SYSMPU access rights in user mode for bus master 0 ~ 3. */
  125. typedef enum _sysmpu_user_access_rights
  126. {
  127. kSYSMPU_UserNoAccessRights = 0U, /*!< No access allowed in user mode. */
  128. kSYSMPU_UserExecute = 1U, /*!< Execute operation is allowed in user mode. */
  129. kSYSMPU_UserWrite = 2U, /*!< Write operation is allowed in user mode. */
  130. kSYSMPU_UserWriteExecute = 3U, /*!< Write and execute operations are allowed in user mode. */
  131. kSYSMPU_UserRead = 4U, /*!< Read is allowed in user mode. */
  132. kSYSMPU_UserReadExecute = 5U, /*!< Read and execute operations are allowed in user mode. */
  133. kSYSMPU_UserReadWrite = 6U, /*!< Read and write operations are allowed in user mode. */
  134. kSYSMPU_UserReadWriteExecute = 7U /*!< Read write and execute operations are allowed in user mode. */
  135. } sysmpu_user_access_rights_t;
  136. /*! @brief SYSMPU hardware basic information. */
  137. typedef struct _sysmpu_hardware_info
  138. {
  139. uint8_t hardwareRevisionLevel; /*!< Specifies the SYSMPU's hardware and definition reversion level. */
  140. uint8_t slavePortsNumbers; /*!< Specifies the number of slave ports connected to SYSMPU. */
  141. sysmpu_region_total_num_t regionsNumbers; /*!< Indicates the number of region descriptors implemented. */
  142. } sysmpu_hardware_info_t;
  143. /*! @brief SYSMPU detail error access information. */
  144. typedef struct _sysmpu_access_err_info
  145. {
  146. uint32_t master; /*!< Access error master. */
  147. sysmpu_err_attributes_t attributes; /*!< Access error attributes. */
  148. sysmpu_err_access_type_t accessType; /*!< Access error type. */
  149. sysmpu_err_access_control_t accessControl; /*!< Access error control. */
  150. uint32_t address; /*!< Access error address. */
  151. #if FSL_FEATURE_SYSMPU_HAS_PROCESS_IDENTIFIER
  152. uint8_t processorIdentification; /*!< Access error processor identification. */
  153. #endif /* FSL_FEATURE_SYSMPU_HAS_PROCESS_IDENTIFIER */
  154. } sysmpu_access_err_info_t;
  155. /*! @brief SYSMPU read/write/execute rights control for bus master 0 ~ 3. */
  156. typedef struct _sysmpu_rwxrights_master_access_control
  157. {
  158. sysmpu_supervisor_access_rights_t superAccessRights; /*!< Master access rights in supervisor mode. */
  159. sysmpu_user_access_rights_t userAccessRights; /*!< Master access rights in user mode. */
  160. #if FSL_FEATURE_SYSMPU_HAS_PROCESS_IDENTIFIER
  161. bool processIdentifierEnable; /*!< Enables or disables process identifier. */
  162. #endif /* FSL_FEATURE_SYSMPU_HAS_PROCESS_IDENTIFIER */
  163. } sysmpu_rwxrights_master_access_control_t;
  164. /*! @brief SYSMPU read/write access control for bus master 4 ~ 7. */
  165. typedef struct _sysmpu_rwrights_master_access_control
  166. {
  167. bool writeEnable; /*!< Enables or disables write permission. */
  168. bool readEnable; /*!< Enables or disables read permission. */
  169. } sysmpu_rwrights_master_access_control_t;
  170. /*!
  171. * @brief SYSMPU region configuration structure.
  172. *
  173. * This structure is used to configure the regionNum region.
  174. * The accessRights1[0] ~ accessRights1[3] are used to configure the bus master
  175. * 0 ~ 3 with the privilege rights setting. The accessRights2[0] ~ accessRights2[3]
  176. * are used to configure the high master 4 ~ 7 with the normal read write permission.
  177. * The master port assignment is the chip configuration. Normally, the core is the
  178. * master 0, debugger is the master 1.
  179. * Note that the SYSMPU assigns a priority scheme where the debugger is treated as the highest
  180. * priority master followed by the core and then all the remaining masters.
  181. * SYSMPU protection does not allow writes from the core to affect the "regionNum 0" start
  182. * and end address nor the permissions associated with the debugger. It can only write
  183. * the permission fields associated with the other masters. This protection guarantees that
  184. * the debugger always has access to the entire address space and those rights can't
  185. * be changed by the core or any other bus master. Prepare
  186. * the region configuration when regionNum is 0.
  187. */
  188. typedef struct _sysmpu_region_config
  189. {
  190. uint32_t regionNum; /*!< SYSMPU region number, range form 0 ~ FSL_FEATURE_SYSMPU_DESCRIPTOR_COUNT - 1. */
  191. uint32_t startAddress; /*!< Memory region start address. Note: bit0 ~ bit4 always be marked as 0 by SYSMPU. The actual
  192. start address is 0-modulo-32 byte address. */
  193. uint32_t endAddress; /*!< Memory region end address. Note: bit0 ~ bit4 always be marked as 1 by SYSMPU. The actual end
  194. address is 31-modulo-32 byte address. */
  195. sysmpu_rwxrights_master_access_control_t accessRights1[4]; /*!< Masters with read, write and execute rights setting. */
  196. sysmpu_rwrights_master_access_control_t accessRights2[4]; /*!< Masters with normal read write rights setting. */
  197. #if FSL_FEATURE_SYSMPU_HAS_PROCESS_IDENTIFIER
  198. uint8_t processIdentifier; /*!< Process identifier used when "processIdentifierEnable" set with true. */
  199. uint8_t
  200. processIdMask; /*!< Process identifier mask. The setting bit will ignore the same bit in process identifier. */
  201. #endif /* FSL_FEATURE_SYSMPU_HAS_PROCESS_IDENTIFIER */
  202. } sysmpu_region_config_t;
  203. /*!
  204. * @brief The configuration structure for the SYSMPU initialization.
  205. *
  206. * This structure is used when calling the SYSMPU_Init function.
  207. */
  208. typedef struct _sysmpu_config
  209. {
  210. sysmpu_region_config_t regionConfig; /*!< Region access permission. */
  211. struct _sysmpu_config *next; /*!< Pointer to the next structure. */
  212. } sysmpu_config_t;
  213. /*******************************************************************************
  214. * API
  215. ******************************************************************************/
  216. #if defined(__cplusplus)
  217. extern "C" {
  218. #endif /* _cplusplus */
  219. /*!
  220. * @name Initialization and deinitialization
  221. * @{
  222. */
  223. /*!
  224. * @brief Initializes the SYSMPU with the user configuration structure.
  225. *
  226. * This function configures the SYSMPU module with the user-defined configuration.
  227. *
  228. * @param base SYSMPU peripheral base address.
  229. * @param config The pointer to the configuration structure.
  230. */
  231. void SYSMPU_Init(SYSMPU_Type *base, const sysmpu_config_t *config);
  232. /*!
  233. * @brief Deinitializes the SYSMPU regions.
  234. *
  235. * @param base SYSMPU peripheral base address.
  236. */
  237. void SYSMPU_Deinit(SYSMPU_Type *base);
  238. /* @}*/
  239. /*!
  240. * @name Basic Control Operations
  241. * @{
  242. */
  243. /*!
  244. * @brief Enables/disables the SYSMPU globally.
  245. *
  246. * Call this API to enable or disable the SYSMPU module.
  247. *
  248. * @param base SYSMPU peripheral base address.
  249. * @param enable True enable SYSMPU, false disable SYSMPU.
  250. */
  251. static inline void SYSMPU_Enable(SYSMPU_Type *base, bool enable)
  252. {
  253. if (enable)
  254. {
  255. /* Enable the SYSMPU globally. */
  256. base->CESR |= SYSMPU_CESR_VLD_MASK;
  257. }
  258. else
  259. { /* Disable the SYSMPU globally. */
  260. base->CESR &= ~SYSMPU_CESR_VLD_MASK;
  261. }
  262. }
  263. /*!
  264. * @brief Enables/disables the SYSMPU for a special region.
  265. *
  266. * When SYSMPU is enabled, call this API to disable an unused region
  267. * of an enabled SYSMPU. Call this API to minimize the power dissipation.
  268. *
  269. * @param base SYSMPU peripheral base address.
  270. * @param number SYSMPU region number.
  271. * @param enable True enable the special region SYSMPU, false disable the special region SYSMPU.
  272. */
  273. static inline void SYSMPU_RegionEnable(SYSMPU_Type *base, uint32_t number, bool enable)
  274. {
  275. if (enable)
  276. {
  277. /* Enable the #number region SYSMPU. */
  278. base->WORD[number][3] |= SYSMPU_WORD_VLD_MASK;
  279. }
  280. else
  281. { /* Disable the #number region SYSMPU. */
  282. base->WORD[number][3] &= ~SYSMPU_WORD_VLD_MASK;
  283. }
  284. }
  285. /*!
  286. * @brief Gets the SYSMPU basic hardware information.
  287. *
  288. * @param base SYSMPU peripheral base address.
  289. * @param hardwareInform The pointer to the SYSMPU hardware information structure. See "sysmpu_hardware_info_t".
  290. */
  291. void SYSMPU_GetHardwareInfo(SYSMPU_Type *base, sysmpu_hardware_info_t *hardwareInform);
  292. /*!
  293. * @brief Sets the SYSMPU region.
  294. *
  295. * Note: Due to the SYSMPU protection, the region number 0 does not allow writes from
  296. * core to affect the start and end address nor the permissions associated with
  297. * the debugger. It can only write the permission fields associated
  298. * with the other masters.
  299. *
  300. * @param base SYSMPU peripheral base address.
  301. * @param regionConfig The pointer to the SYSMPU user configuration structure. See "sysmpu_region_config_t".
  302. */
  303. void SYSMPU_SetRegionConfig(SYSMPU_Type *base, const sysmpu_region_config_t *regionConfig);
  304. /*!
  305. * @brief Sets the region start and end address.
  306. *
  307. * Memory region start address. Note: bit0 ~ bit4 is always marked as 0 by SYSMPU.
  308. * The actual start address by SYSMPU is 0-modulo-32 byte address.
  309. * Memory region end address. Note: bit0 ~ bit4 always be marked as 1 by SYSMPU.
  310. * The end address used by the SYSMPU is 31-modulo-32 byte address.
  311. * Note: Due to the SYSMPU protection, the startAddr and endAddr can't be
  312. * changed by the core when regionNum is 0.
  313. *
  314. * @param base SYSMPU peripheral base address.
  315. * @param regionNum SYSMPU region number. The range is from 0 to
  316. * FSL_FEATURE_SYSMPU_DESCRIPTOR_COUNT - 1.
  317. * @param startAddr Region start address.
  318. * @param endAddr Region end address.
  319. */
  320. void SYSMPU_SetRegionAddr(SYSMPU_Type *base, uint32_t regionNum, uint32_t startAddr, uint32_t endAddr);
  321. /*!
  322. * @brief Sets the SYSMPU region access rights for masters with read, write, and execute rights.
  323. * The SYSMPU access rights depend on two board classifications of bus masters.
  324. * The privilege rights masters and the normal rights masters.
  325. * The privilege rights masters have the read, write, and execute access rights.
  326. * Except the normal read and write rights, the execute rights are also
  327. * allowed for these masters. The privilege rights masters normally range from
  328. * bus masters 0 - 3. However, the maximum master number is device-specific.
  329. * See the "SYSMPU_PRIVILEGED_RIGHTS_MASTER_MAX_INDEX".
  330. * The normal rights masters access rights control see
  331. * "SYSMPU_SetRegionRwMasterAccessRights()".
  332. *
  333. * @param base SYSMPU peripheral base address.
  334. * @param regionNum SYSMPU region number. Should range from 0 to
  335. * FSL_FEATURE_SYSMPU_DESCRIPTOR_COUNT - 1.
  336. * @param masterNum SYSMPU bus master number. Should range from 0 to
  337. * SYSMPU_PRIVILEGED_RIGHTS_MASTER_MAX_INDEX.
  338. * @param accessRights The pointer to the SYSMPU access rights configuration. See "sysmpu_rwxrights_master_access_control_t".
  339. */
  340. void SYSMPU_SetRegionRwxMasterAccessRights(SYSMPU_Type *base,
  341. uint32_t regionNum,
  342. uint32_t masterNum,
  343. const sysmpu_rwxrights_master_access_control_t *accessRights);
  344. #if FSL_FEATURE_SYSMPU_MASTER_COUNT > 4
  345. /*!
  346. * @brief Sets the SYSMPU region access rights for masters with read and write rights.
  347. * The SYSMPU access rights depend on two board classifications of bus masters.
  348. * The privilege rights masters and the normal rights masters.
  349. * The normal rights masters only have the read and write access permissions.
  350. * The privilege rights access control see "SYSMPU_SetRegionRwxMasterAccessRights".
  351. *
  352. * @param base SYSMPU peripheral base address.
  353. * @param regionNum SYSMPU region number. The range is from 0 to
  354. * FSL_FEATURE_SYSMPU_DESCRIPTOR_COUNT - 1.
  355. * @param masterNum SYSMPU bus master number. Should range from SYSMPU_MASTER_RWATTRIBUTE_START_PORT
  356. * to ~ FSL_FEATURE_SYSMPU_MASTER_COUNT - 1.
  357. * @param accessRights The pointer to the SYSMPU access rights configuration. See "sysmpu_rwrights_master_access_control_t".
  358. */
  359. void SYSMPU_SetRegionRwMasterAccessRights(SYSMPU_Type *base,
  360. uint32_t regionNum,
  361. uint32_t masterNum,
  362. const sysmpu_rwrights_master_access_control_t *accessRights);
  363. #endif /* FSL_FEATURE_SYSMPU_MASTER_COUNT > 4 */
  364. /*!
  365. * @brief Gets the numbers of slave ports where errors occur.
  366. *
  367. * @param base SYSMPU peripheral base address.
  368. * @param slaveNum SYSMPU slave port number.
  369. * @return The slave ports error status.
  370. * true - error happens in this slave port.
  371. * false - error didn't happen in this slave port.
  372. */
  373. bool SYSMPU_GetSlavePortErrorStatus(SYSMPU_Type *base, sysmpu_slave_t slaveNum);
  374. /*!
  375. * @brief Gets the SYSMPU detailed error access information.
  376. *
  377. * @param base SYSMPU peripheral base address.
  378. * @param slaveNum SYSMPU slave port number.
  379. * @param errInform The pointer to the SYSMPU access error information. See "sysmpu_access_err_info_t".
  380. */
  381. void SYSMPU_GetDetailErrorAccessInfo(SYSMPU_Type *base, sysmpu_slave_t slaveNum, sysmpu_access_err_info_t *errInform);
  382. /* @} */
  383. #if defined(__cplusplus)
  384. }
  385. #endif
  386. /*! @}*/
  387. #endif /* _FSL_SYSMPU_H_ */