mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
71 lines
2.2 KiB
C
71 lines
2.2 KiB
C
/* Copyright (C) 2022 Alif Semiconductor - All Rights Reserved.
|
|
* Use, distribution and modification of this code is permitted under the
|
|
* terms stated in the Alif Semiconductor Software License Agreement
|
|
*
|
|
* You should have received a copy of the Alif Semiconductor Software
|
|
* License Agreement with this file. If not, please write to:
|
|
* contact@alifsemi.com, or visit: https://alifsemi.com/license
|
|
*
|
|
*/
|
|
/**************************************************************************//**
|
|
* @file mpu_M55.h
|
|
* @author Sudhir Sreedharan
|
|
* @emial sudhir@alifsemi.com
|
|
* @version V1.0.0
|
|
* @date 14-December-2021
|
|
* @brief MPU header file
|
|
******************************************************************************/
|
|
|
|
/* Include Guard */
|
|
#ifndef MPU_M55_H
|
|
#define MPU_M55_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* Public function prototypes ------------------------------------------------*/
|
|
|
|
/**
|
|
* @brief Clear all the MPU registers
|
|
* @note This function disables the MPU and clear
|
|
* all the existing regions.
|
|
* @param None
|
|
* @retval None
|
|
*/
|
|
void MPU_Clear_All_Regions(void);
|
|
|
|
/**
|
|
* @brief Load the MPU regions from the given table
|
|
* @note This function loads the region and also sets the
|
|
* attributes for the regions.
|
|
* User can override from application.
|
|
* @note This function will be invoked much early in the boot process
|
|
* and before the scatterload. User must ensure that this function
|
|
* is included in the primary load region.
|
|
* @param None
|
|
* @retval None
|
|
*/
|
|
void MPU_Load_Regions(void);
|
|
|
|
/**
|
|
* @brief Configure the MPU.
|
|
* @note This function disables the MPU and loads the regions
|
|
* from the table. Once it is loaded, MPU is enabled.
|
|
* User can override from application.
|
|
* @note This function will be invoked much early in the boot process
|
|
* and before the scatterload. User must ensure that this function
|
|
* is included in the primary load region.
|
|
* @param None
|
|
* @retval None
|
|
*/
|
|
void MPU_Setup(void);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* End Include Guard */
|
|
/************************ (C) COPYRIGHT ALIF SEMICONDUCTOR *****END OF FILE****/
|