Skip to content

Commit 41aac30

Browse files
committed
Update as per review suggestion
1 parent e6eb61c commit 41aac30

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

source/include/FreeRTOSIPConfigDefaults.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,14 +1162,8 @@ STATIC_ASSERT( pdMS_TO_TICKS( ipconfigPHY_LS_LOW_CHECK_TIME_MS ) <= portMAX_DELA
11621162
#error ipconfigIP_TASK_PRIORITY must be at least 0
11631163
#endif
11641164

1165-
#if ( configENABLE_MPU != 0 )
1166-
#if ( ipconfigIP_TASK_PRIORITY > ( ( configMAX_PRIORITIES - 1 ) | portPRIVILEGE_BIT ) )
1167-
#error ipconfigIP_TASK_PRIORITY must be at most ( ( configMAX_PRIORITIES - 1 ) | portPRIVILEGE_BIT ) )
1168-
#endif
1169-
#else
1170-
#if ( ipconfigIP_TASK_PRIORITY > ( configMAX_PRIORITIES - 1 ) )
1171-
#error ipconfigIP_TASK_PRIORITY must be at most configMAX_PRIORITIES - 1
1172-
#endif
1165+
#if ( ( ipconfigIP_TASK_PRIORITY & ~( portPRIVILEGE_BIT ) ) > ( configMAX_PRIORITIES - 1 ) )
1166+
#error ipconfigIP_TASK_PRIORITY must be at most configMAX_PRIORITIES - 1 or ( ( configMAX_PRIORITIES - 1 ) | portPRIVILEGE_BIT ) ) when configENABLE_MPU is enabled.
11731167
#endif
11741168

11751169
/*---------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)