/** ****************************************************************************** * @file Cortex/CORTEXM_MPU/Inc/stm32_mpu.h * @author MCD Application Team * @brief Header for stm32_mpu.c module ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... *//* Define to prevent recursive inclusion -------------------------------------*/#ifndef__STM32_MPU_H#define__STM32_MPU_H/* Includes ------------------------------------------------------------------*/#include"stm32f4xx.h"Includes/* Exported types ------------------------------------------------------------*//* Exported constants --------------------------------------------------------*/#defineRAM_ADDRESS_START(0x20000000UL)#defineRAM_SIZEMPU_REGION_SIZE_8KB#definePERIPH_ADDRESS_START(0x40000000)#definePERIPH_SIZEMPU_REGION_SIZE_512MB#defineFLASH_ADDRESS_START(0x08000000)#defineFLASH_SIZEMPU_REGION_SIZE_1MB#defineportMPU_REGION_READ_WRITEMPU_REGION_FULL_ACCESS#defineportMPU_REGION_PRIVILEGED_READ_ONLYMPU_REGION_PRIV_RO#defineportMPU_REGION_READ_ONLYMPU_REGION_PRIV_RO_URO#defineportMPU_REGION_PRIVILEGED_READ_WRITEMPU_REGION_PRIV_RW#defineRAM_REGION_NUMBERMPU_REGION_NUMBER0#defineFLASH_REGION_NUMBERMPU_REGION_NUMBER1#definePERIPH_REGION_NUMBERMPU_REGION_NUMBER213 definesExported constants/* Exported macro ------------------------------------------------------------*//* Exported functions ------------------------------------------------------- */voidMPU_Config(void);voidMPU_AccessPermConfig(void);Exported functions/* ... */#endif/* __STM32_MPU_H */