Remove error for 16 MPU resgion from IAR ports (#1149)

Support for 16 MPU regions was added to Cortex-M33, M35P, M55 and M85
ports was added but the compile time error check was not removed. This
results in compilation error when 16 MPU regions are used. This PR
removes the not needed compile time error check.

It was reported here - https://forums.freertos.org/t/cortex-m55-and-16-region-mpu-support/21470.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
Gaurav-Aggarwal-AWS 2024-09-23 10:39:29 +05:30 committed by GitHub
parent 9788e7e46a
commit c0bfbb9692
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 0 additions and 62 deletions

View file

@ -54,11 +54,6 @@
#define portDONT_DISCARD __root #define portDONT_DISCARD __root
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
/*-----------------------------------------------------------*/
/* ARMv8-M common port configurations. */ /* ARMv8-M common port configurations. */
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/

View file

@ -58,16 +58,11 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
#ifndef configENABLE_MVE #ifndef configENABLE_MVE
#define configENABLE_MVE 0 #define configENABLE_MVE 0
#elif( configENABLE_MVE != 0 ) #elif( configENABLE_MVE != 0 )
#error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33. #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
#endif #endif
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/** /**

View file

@ -58,10 +58,6 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
#ifndef configENABLE_MVE #ifndef configENABLE_MVE
#define configENABLE_MVE 0 #define configENABLE_MVE 0
#elif( configENABLE_MVE != 0 ) #elif( configENABLE_MVE != 0 )

View file

@ -63,11 +63,6 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
/*-----------------------------------------------------------*/
/** /**
* @brief Critical section management. * @brief Critical section management.
*/ */

View file

@ -63,11 +63,6 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
/*-----------------------------------------------------------*/
/** /**
* @brief Critical section management. * @brief Critical section management.
*/ */

View file

@ -54,11 +54,6 @@
#define portDONT_DISCARD __root #define portDONT_DISCARD __root
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
/*-----------------------------------------------------------*/
/* ARMv8-M common port configurations. */ /* ARMv8-M common port configurations. */
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/

View file

@ -58,16 +58,11 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
#ifndef configENABLE_MVE #ifndef configENABLE_MVE
#define configENABLE_MVE 0 #define configENABLE_MVE 0
#elif( configENABLE_MVE != 0 ) #elif( configENABLE_MVE != 0 )
#error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33. #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
#endif #endif
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/** /**

View file

@ -58,10 +58,6 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
#ifndef configENABLE_MVE #ifndef configENABLE_MVE
#define configENABLE_MVE 0 #define configENABLE_MVE 0
#elif( configENABLE_MVE != 0 ) #elif( configENABLE_MVE != 0 )

View file

@ -58,10 +58,6 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
#ifndef configENABLE_MVE #ifndef configENABLE_MVE
#define configENABLE_MVE 0 #define configENABLE_MVE 0
#elif( configENABLE_MVE != 0 ) #elif( configENABLE_MVE != 0 )

View file

@ -63,11 +63,6 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
/*-----------------------------------------------------------*/
/** /**
* @brief Critical section management. * @brief Critical section management.
*/ */

View file

@ -63,11 +63,6 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
/*-----------------------------------------------------------*/
/** /**
* @brief Critical section management. * @brief Critical section management.
*/ */

View file

@ -63,11 +63,6 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
/*-----------------------------------------------------------*/
/** /**
* @brief Critical section management. * @brief Critical section management.
*/ */

View file

@ -63,11 +63,6 @@
#include "portmacrocommon.h" #include "portmacrocommon.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#if ( configTOTAL_MPU_REGIONS == 16 )
#error 16 MPU regions are not yet supported for this port.
#endif
/*-----------------------------------------------------------*/
/** /**
* @brief Critical section management. * @brief Critical section management.
*/ */