From a8885ef2be4159347529cf5ff6147c0e812a59f6 Mon Sep 17 00:00:00 2001 From: Ching-Hsin Lee Date: Tue, 1 Aug 2023 18:22:11 +0800 Subject: [PATCH] Add MPU enabled demo --- FreeRTOS/Demo/PMP-test/pmp_apis.c | 3 --- FreeRTOS/Demo/PMP-test/pmp_apis.h | 3 +++ FreeRTOS/Source | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FreeRTOS/Demo/PMP-test/pmp_apis.c b/FreeRTOS/Demo/PMP-test/pmp_apis.c index b00acf6c674..cbf43ebe446 100644 --- a/FreeRTOS/Demo/PMP-test/pmp_apis.c +++ b/FreeRTOS/Demo/PMP-test/pmp_apis.c @@ -4,9 +4,6 @@ #define IMPLEMENTED_PMP_REGIONS 16 -#define CONFIG_TO_INT(_config) (*((char *)&(_config))) -#define INT_TO_CONFIG(_int) (*((struct pmp_config *)(char *)&(_int))) - int xPortPmpGetNumRegions( void ) { return IMPLEMENTED_PMP_REGIONS; diff --git a/FreeRTOS/Demo/PMP-test/pmp_apis.h b/FreeRTOS/Demo/PMP-test/pmp_apis.h index 232f54346ee..fb65be1de86 100644 --- a/FreeRTOS/Demo/PMP-test/pmp_apis.h +++ b/FreeRTOS/Demo/PMP-test/pmp_apis.h @@ -3,6 +3,9 @@ #include +#define CONFIG_TO_INT(_config) (*((char *)&(_config))) +#define INT_TO_CONFIG(_int) (*((struct pmp_config *)(char *)&(_int))) + /*! * @brief Set of available PMP addressing modes */ diff --git a/FreeRTOS/Source b/FreeRTOS/Source index f550cd5f347..974262286a6 160000 --- a/FreeRTOS/Source +++ b/FreeRTOS/Source @@ -1 +1 @@ -Subproject commit f550cd5f347436e42b873ed4431c886ef8e3d461 +Subproject commit 974262286a690132d8d9061ef2fd01cff58ee533