blob: abcc3cdab34c21e37c056073dd1265be481c04f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/**
******************************************************************************
* @file Cortex/CORTEXM_MPU/Inc/stm32_mpu.h
* @author MCD Application Team
* @brief Header for stm32_mpu.c module
******************************************************************************
* @attention
*
* Copyright (c) 2019-2021 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 "stm32wbxx.h"
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
#define EXAMPLE_RAM_ADDRESS_START (0x20000000UL)
#define EXAMPLE_RAM_SIZE MPU_REGION_SIZE_256KB
#define EXAMPLE_PERIPH_ADDRESS_START (0x40000000)
#define EXAMPLE_PERIPH_SIZE MPU_REGION_SIZE_512MB
#define EXAMPLE_FLASH_ADDRESS_START (0x08000000)
#define EXAMPLE_FLASH_SIZE MPU_REGION_SIZE_1MB
#define EXAMPLE_RAM_REGION_NUMBER MPU_REGION_NUMBER0
#define EXAMPLE_FLASH_REGION_NUMBER MPU_REGION_NUMBER1
#define EXAMPLE_PERIPH_REGION_NUMBER MPU_REGION_NUMBER2
#define portMPU_REGION_READ_WRITE MPU_REGION_FULL_ACCESS
#define portMPU_REGION_PRIVILEGED_READ_ONLY MPU_REGION_PRIV_RO
#define portMPU_REGION_READ_ONLY MPU_REGION_PRIV_RO_URO
#define portMPU_REGION_PRIVILEGED_READ_WRITE MPU_REGION_PRIV_RW
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void MPU_Config(void);
void MPU_AccessPermConfig(void);
#endif /* __STM32_MPU_H */
|