@@ -403,7 +403,7 @@ typedef void ( * portISR_t )( void );
403403 */
404404static void prvTaskExitError ( void );
405405
406- #if ( configENABLE_MPU == 1 )
406+ #if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )
407407
408408/**
409409 * @brief Extract MPU region's access permissions from the Region Base Address
@@ -414,7 +414,7 @@ static void prvTaskExitError( void );
414414 * @return uint32_t Access permissions.
415415 */
416416 static uint32_t prvGetRegionAccessPermissions ( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION ;
417- #endif /* configENABLE_MPU */
417+ #endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
418418
419419#if ( configENABLE_MPU == 1 )
420420
@@ -876,7 +876,7 @@ static void prvTaskExitError( void )
876876}
877877/*-----------------------------------------------------------*/
878878
879- #if ( configENABLE_MPU == 1 )
879+ #if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )
880880
881881 static uint32_t prvGetRegionAccessPermissions ( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
882882 {
@@ -895,7 +895,7 @@ static void prvTaskExitError( void )
895895 return ulAccessPermissions ;
896896 }
897897
898- #endif /* configENABLE_MPU */
898+ #endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
899899/*-----------------------------------------------------------*/
900900
901901#if ( configENABLE_MPU == 1 )
0 commit comments