@@ -1175,9 +1175,8 @@ BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue,
1175
1175
1176
1176
traceENTER_xQueueGenericSendFromISR ( xQueue , pvItemToQueue , pxHigherPriorityTaskWoken , xCopyPosition );
1177
1177
1178
- configASSERT ( pxQueue );
1179
- configASSERT ( !( ( pvItemToQueue == NULL ) && ( pxQueue -> uxItemSize != ( UBaseType_t ) 0U ) ) );
1180
- configASSERT ( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue -> uxLength != 1 ) ) );
1178
+ configASSERT ( ( pxQueue != NULL ) && !( ( pvItemToQueue == NULL ) && ( pxQueue -> uxItemSize != ( UBaseType_t ) 0U ) ) );
1179
+ configASSERT ( ( pxQueue != NULL ) && !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue -> uxLength != 1 ) ) );
1181
1180
1182
1181
/* RTOS ports that support interrupt nesting have the concept of a maximum
1183
1182
* system call (or maximum API call) interrupt priority. Interrupts that are
@@ -1351,16 +1350,14 @@ BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue,
1351
1350
* not (i.e. has a task with a higher priority than us been woken by this
1352
1351
* post). */
1353
1352
1354
- configASSERT ( pxQueue );
1355
-
1356
1353
/* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR()
1357
1354
* if the item size is not 0. */
1358
- configASSERT ( pxQueue -> uxItemSize == 0 );
1355
+ configASSERT ( ( pxQueue != NULL ) && ( pxQueue -> uxItemSize == 0 ) );
1359
1356
1360
1357
/* Normally a mutex would not be given from an interrupt, especially if
1361
1358
* there is a mutex holder, as priority inheritance makes no sense for an
1362
- * interrupts , only tasks. */
1363
- configASSERT ( !( ( pxQueue -> uxQueueType == queueQUEUE_IS_MUTEX ) && ( pxQueue -> u .xSemaphore .xMutexHolder != NULL ) ) );
1359
+ * interrupt , only tasks. */
1360
+ configASSERT ( ( pxQueue != NULL ) && !( ( pxQueue -> uxQueueType == queueQUEUE_IS_MUTEX ) && ( pxQueue -> u .xSemaphore .xMutexHolder != NULL ) ) );
1364
1361
1365
1362
/* RTOS ports that support interrupt nesting have the concept of a maximum
1366
1363
* system call (or maximum API call) interrupt priority. Interrupts that are
@@ -1895,12 +1892,9 @@ BaseType_t xQueuePeek( QueueHandle_t xQueue,
1895
1892
1896
1893
traceENTER_xQueuePeek ( xQueue , pvBuffer , xTicksToWait );
1897
1894
1898
- /* Check the pointer is not NULL. */
1899
- configASSERT ( ( pxQueue ) );
1900
-
1901
1895
/* The buffer into which data is received can only be NULL if the data size
1902
1896
* is zero (so no data is copied into the buffer. */
1903
- configASSERT ( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )-> uxItemSize != ( UBaseType_t ) 0U ) ) );
1897
+ configASSERT ( ( pxQueue != NULL ) && !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )-> uxItemSize != ( UBaseType_t ) 0U ) ) );
1904
1898
1905
1899
/* Cannot block if the scheduler is suspended. */
1906
1900
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
@@ -2152,9 +2146,8 @@ BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue,
2152
2146
2153
2147
traceENTER_xQueuePeekFromISR ( xQueue , pvBuffer );
2154
2148
2155
- configASSERT ( pxQueue );
2156
- configASSERT ( !( ( pvBuffer == NULL ) && ( pxQueue -> uxItemSize != ( UBaseType_t ) 0U ) ) );
2157
- configASSERT ( pxQueue -> uxItemSize != 0 ); /* Can't peek a semaphore. */
2149
+ configASSERT ( ( pxQueue != NULL ) && !( ( pvBuffer == NULL ) && ( pxQueue -> uxItemSize != ( UBaseType_t ) 0U ) ) );
2150
+ configASSERT ( ( pxQueue != NULL ) && ( pxQueue -> uxItemSize != 0 ) ); /* Can't peek a semaphore. */
2158
2151
2159
2152
/* RTOS ports that support interrupt nesting have the concept of a maximum
2160
2153
* system call (or maximum API call) interrupt priority. Interrupts that are
0 commit comments