Skip to content

Commit

Permalink
Add macro guard configUSE_MPU_WRAPPERS_V1 to remove definition missin…
Browse files Browse the repository at this point in the history
…g warning. (#1208)

Add macro guard to removed definition missing warning
  • Loading branch information
kar-rahul-aws authored Dec 16, 2024
1 parent 974351f commit b58005a
Show file tree
Hide file tree
Showing 23 changed files with 89 additions and 84 deletions.
3 changes: 3 additions & 0 deletions .github/allowed_urls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://www.renesas.com/us/en/document/mah/rh850f1k-group-users-manual-hardware?r=1170166
https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rh850-automotive-mcus
https://www.renesas.com/us/en/software-tool/c-compiler-package-rh850-family#downloads
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
uses: actions/[email protected]
- name: Link Verification
uses: FreeRTOS/CI-CD-Github-Actions/link-verifier@main
with:
allowlist-file: '.github/allowed_urls.txt'

verify-manifest:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions portable/ARMv8M/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM23/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM23_NTZ/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM33/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM33_NTZ/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM35P/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM35P_NTZ/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM55/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM55_NTZ/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM85/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
Loading

0 comments on commit b58005a

Please sign in to comment.