Skip to content

Commit b9f488a

Browse files
authored
Fix remarks emitted by IAR compiler (#763)
Signed-off-by: Gaurav Aggarwal <[email protected]>
1 parent 7372519 commit b9f488a

File tree

30 files changed

+54
-33
lines changed

30 files changed

+54
-33
lines changed

portable/ARMv8M/non_secure/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */
16551655

16561656
/* Check that the bits not implemented in hardware are zero in
16571657
* configMAX_SYSCALL_INTERRUPT_PRIORITY. */
1658-
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( ~ucMaxPriorityValue ) ) == 0U );
1658+
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( uint8_t ) ( ~( uint32_t ) ucMaxPriorityValue ) ) == 0U );
16591659

16601660
/* Calculate the maximum acceptable priority group value for the number
16611661
* of bits read back. */

portable/GCC/ARM_CM23/non_secure/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */
16551655

16561656
/* Check that the bits not implemented in hardware are zero in
16571657
* configMAX_SYSCALL_INTERRUPT_PRIORITY. */
1658-
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( ~ucMaxPriorityValue ) ) == 0U );
1658+
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( uint8_t ) ( ~( uint32_t ) ucMaxPriorityValue ) ) == 0U );
16591659

16601660
/* Calculate the maximum acceptable priority group value for the number
16611661
* of bits read back. */

portable/GCC/ARM_CM23_NTZ/non_secure/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */
16551655

16561656
/* Check that the bits not implemented in hardware are zero in
16571657
* configMAX_SYSCALL_INTERRUPT_PRIORITY. */
1658-
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( ~ucMaxPriorityValue ) ) == 0U );
1658+
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( uint8_t ) ( ~( uint32_t ) ucMaxPriorityValue ) ) == 0U );
16591659

16601660
/* Calculate the maximum acceptable priority group value for the number
16611661
* of bits read back. */

portable/GCC/ARM_CM33/non_secure/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */
16551655

16561656
/* Check that the bits not implemented in hardware are zero in
16571657
* configMAX_SYSCALL_INTERRUPT_PRIORITY. */
1658-
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( ~ucMaxPriorityValue ) ) == 0U );
1658+
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( uint8_t ) ( ~( uint32_t ) ucMaxPriorityValue ) ) == 0U );
16591659

16601660
/* Calculate the maximum acceptable priority group value for the number
16611661
* of bits read back. */

portable/GCC/ARM_CM33_NTZ/non_secure/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */
16551655

16561656
/* Check that the bits not implemented in hardware are zero in
16571657
* configMAX_SYSCALL_INTERRUPT_PRIORITY. */
1658-
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( ~ucMaxPriorityValue ) ) == 0U );
1658+
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( uint8_t ) ( ~( uint32_t ) ucMaxPriorityValue ) ) == 0U );
16591659

16601660
/* Calculate the maximum acceptable priority group value for the number
16611661
* of bits read back. */

portable/GCC/ARM_CM35P/non_secure/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */
16551655

16561656
/* Check that the bits not implemented in hardware are zero in
16571657
* configMAX_SYSCALL_INTERRUPT_PRIORITY. */
1658-
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( ~ucMaxPriorityValue ) ) == 0U );
1658+
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( uint8_t ) ( ~( uint32_t ) ucMaxPriorityValue ) ) == 0U );
16591659

16601660
/* Calculate the maximum acceptable priority group value for the number
16611661
* of bits read back. */

portable/GCC/ARM_CM35P_NTZ/non_secure/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */
16551655

16561656
/* Check that the bits not implemented in hardware are zero in
16571657
* configMAX_SYSCALL_INTERRUPT_PRIORITY. */
1658-
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( ~ucMaxPriorityValue ) ) == 0U );
1658+
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( uint8_t ) ( ~( uint32_t ) ucMaxPriorityValue ) ) == 0U );
16591659

16601660
/* Calculate the maximum acceptable priority group value for the number
16611661
* of bits read back. */

portable/GCC/ARM_CM4_MPU/portmacro.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ typedef unsigned long UBaseType_t;
7474
#error configTICK_TYPE_WIDTH_IN_BITS set to unsupported tick type width.
7575
#endif
7676

77+
/* Errata 837070 workaround must be enabled on Cortex-M7 r0p0
78+
* and r0p1 cores. */
79+
#ifndef configENABLE_ERRATA_837070_WORKAROUND
80+
#define configENABLE_ERRATA_837070_WORKAROUND 0
81+
#endif
7782
/*-----------------------------------------------------------*/
7883

7984
/* MPU specific constants. */

portable/GCC/ARM_CM55/non_secure/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */
16551655

16561656
/* Check that the bits not implemented in hardware are zero in
16571657
* configMAX_SYSCALL_INTERRUPT_PRIORITY. */
1658-
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( ~ucMaxPriorityValue ) ) == 0U );
1658+
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( uint8_t ) ( ~( uint32_t ) ucMaxPriorityValue ) ) == 0U );
16591659

16601660
/* Calculate the maximum acceptable priority group value for the number
16611661
* of bits read back. */

portable/GCC/ARM_CM55_NTZ/non_secure/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */
16551655

16561656
/* Check that the bits not implemented in hardware are zero in
16571657
* configMAX_SYSCALL_INTERRUPT_PRIORITY. */
1658-
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( ~ucMaxPriorityValue ) ) == 0U );
1658+
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY & ( uint8_t ) ( ~( uint32_t ) ucMaxPriorityValue ) ) == 0U );
16591659

16601660
/* Calculate the maximum acceptable priority group value for the number
16611661
* of bits read back. */

0 commit comments

Comments
 (0)