Skip to content

Commit

Permalink
Add MPU enabled demo
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot committed Aug 1, 2023
1 parent f9ce547 commit a8885ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions FreeRTOS/Demo/PMP-test/pmp_apis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions FreeRTOS/Demo/PMP-test/pmp_apis.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

#include <stddef.h>

#define CONFIG_TO_INT(_config) (*((char *)&(_config)))
#define INT_TO_CONFIG(_int) (*((struct pmp_config *)(char *)&(_int)))

/*!
* @brief Set of available PMP addressing modes
*/
Expand Down

0 comments on commit a8885ef

Please sign in to comment.