Lines Matching full:if

52 #if ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )
61 * If the actual handle is stored at index i, ( i + INDEX_OFFSET )
122 * @brief Check if multiplying a and b will result in overflow.
129 * If a free slot is found, this function marks the slot as
132 * @return Index of a free slot is returned, if a free slot is
150 * @return Index at which the kernel object is stored if it is a valid
183 #if ( configUSE_TIMERS == 1 )
195 #endif /* #if ( configUSE_TIMERS == 1 ) */
203 #if ( configUSE_QUEUE_SETS == 1 )
232 #if ( configUSE_TIMERS == 1 )
241 #endif /* #if ( configUSE_TIMERS == 1 ) */
263 if( xKernelObjectPool[ i ].xInternalObjectHandle == NULL ) in MPU_GetFreeIndexInKernelObjectPool()
301 if( ( xKernelObjectPool[ i ].xInternalObjectHandle == xHandle ) && in MPU_GetIndexForHandle()
332 if( xKernelObjectPool[ lIndex ].ulKernelObjectType == ulKernelObjectType ) in MPU_GetHandleAtIndex()
341 #if ( configENABLE_ACCESS_CONTROL_LIST == 1 )
349 if( IS_EXTERNAL_INDEX_VALID( lExternalKernelObjectHandle ) != pdFALSE ) in vGrantAccessToKernelObject()
351 if( xExternalTaskHandle == NULL ) in vGrantAccessToKernelObject()
359 if( IS_EXTERNAL_INDEX_VALID( lExternalTaskIndex ) != pdFALSE ) in vGrantAccessToKernelObject()
363 if( xInternalTaskHandle != NULL ) in vGrantAccessToKernelObject()
373 #endif /* #if ( configENABLE_ACCESS_CONTROL_LIST == 1 ) */
376 #if ( configENABLE_ACCESS_CONTROL_LIST == 1 )
384 if( IS_EXTERNAL_INDEX_VALID( lExternalKernelObjectHandle ) != pdFALSE ) in vRevokeAccessToKernelObject()
386 if( xExternalTaskHandle == NULL ) in vRevokeAccessToKernelObject()
394 if( IS_EXTERNAL_INDEX_VALID( lExternalTaskIndex ) != pdFALSE ) in vRevokeAccessToKernelObject()
398 if( xInternalTaskHandle != NULL ) in vRevokeAccessToKernelObject()
408 #endif /* #if ( configENABLE_ACCESS_CONTROL_LIST == 1 ) */
411 #if ( configUSE_TIMERS == 1 )
424if( ( ( TimerHandle_t ) xKernelObjectPool[ i ].xInternalObjectHandle == xInternalHandle ) && in MPU_TimerCallback()
439 #endif /* #if ( configUSE_TIMERS == 1 ) */
446 #if ( INCLUDE_xTaskDelayUntil == 1 )
457 if( ( pxPreviousWakeTime != NULL ) && ( xTimeIncrement > 0U ) ) in MPU_xTaskDelayUntilImpl()
463 if( xIsPreviousWakeTimeAccessible == pdTRUE ) in MPU_xTaskDelayUntilImpl()
472 #endif /* if ( INCLUDE_xTaskDelayUntil == 1 ) */
475 #if ( INCLUDE_xTaskAbortDelay == 1 )
488 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskAbortDelayImpl()
492 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_xTaskAbortDelayImpl()
496 if( xInternalTaskHandle != NULL ) in MPU_xTaskAbortDelayImpl()
506 #endif /* if ( INCLUDE_xTaskAbortDelay == 1 ) */
509 #if ( INCLUDE_vTaskDelay == 1 )
518 #endif /* if ( INCLUDE_vTaskDelay == 1 ) */
521 #if ( INCLUDE_uxTaskPriorityGet == 1 )
532 if( pxTask == NULL ) in MPU_uxTaskPriorityGetImpl()
540 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskPriorityGetImpl()
544 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_uxTaskPriorityGetImpl()
548 if( xInternalTaskHandle != NULL ) in MPU_uxTaskPriorityGetImpl()
559 #endif /* if ( INCLUDE_uxTaskPriorityGet == 1 ) */
562 #if ( INCLUDE_eTaskGetState == 1 )
575 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_eTaskGetStateImpl()
579 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_eTaskGetStateImpl()
583 if( xInternalTaskHandle != NULL ) in MPU_eTaskGetStateImpl()
593 #endif /* if ( INCLUDE_eTaskGetState == 1 ) */
596 #if ( configUSE_TRACE_FACILITY == 1 )
617 if( xIsTaskStatusWriteable == pdTRUE ) in MPU_vTaskGetInfoImpl()
619 if( xTask == NULL ) in MPU_vTaskGetInfoImpl()
627 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskGetInfoImpl()
631 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_vTaskGetInfoImpl()
635 if( xInternalTaskHandle != NULL ) in MPU_vTaskGetInfoImpl()
645 #endif /* if ( configUSE_TRACE_FACILITY == 1 ) */
648 #if ( INCLUDE_xTaskGetIdleTaskHandle == 1 )
661 #endif /* if ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) */
664 #if ( INCLUDE_vTaskSuspend == 1 )
674 if( pxTaskToSuspend == NULL ) in MPU_vTaskSuspendImpl()
682 #if ( INCLUDE_xTaskGetSchedulerState == 1 ) in MPU_vTaskSuspendImpl()
683if( ( xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED ) || ( portIS_TASK_PRIVILEGED() == pdT… in MPU_vTaskSuspendImpl()
685 if( portIS_TASK_PRIVILEGED() == pdTRUE ) in MPU_vTaskSuspendImpl()
690 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskSuspendImpl()
694 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_vTaskSuspendImpl()
698 if( xInternalTaskHandle != NULL ) in MPU_vTaskSuspendImpl()
708 #endif /* if ( INCLUDE_vTaskSuspend == 1 ) */
711 #if ( INCLUDE_vTaskSuspend == 1 )
723 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskResumeImpl()
727 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_vTaskResumeImpl()
731 if( xInternalTaskHandle != NULL ) in MPU_vTaskResumeImpl()
739 #endif /* if ( INCLUDE_vTaskSuspend == 1 ) */
766 #if ( configGENERATE_RUN_TIME_STATS == 1 )
777 if( xTask == NULL ) in MPU_ulTaskGetRunTimeCounterImpl()
785 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_ulTaskGetRunTimeCounterImpl()
789 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_ulTaskGetRunTimeCounterImpl()
793 if( xInternalTaskHandle != NULL ) in MPU_ulTaskGetRunTimeCounterImpl()
804 #endif /* if ( ( configGENERATE_RUN_TIME_STATS == 1 ) */
807 #if ( configGENERATE_RUN_TIME_STATS == 1 )
818 if( xTask == NULL ) in MPU_ulTaskGetRunTimePercentImpl()
826 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_ulTaskGetRunTimePercentImpl()
830 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_ulTaskGetRunTimePercentImpl()
834 if( xInternalTaskHandle != NULL ) in MPU_ulTaskGetRunTimePercentImpl()
845 #endif /* if ( ( configGENERATE_RUN_TIME_STATS == 1 ) */
848 #if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) )
861 …#endif /* if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) )…
864 #if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) )
877 …#endif /* if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) )…
880 #if ( configUSE_APPLICATION_TASK_TAG == 1 )
892 if( xTask == NULL ) in MPU_vTaskSetApplicationTaskTagImpl()
900 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskSetApplicationTaskTagImpl()
904 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_vTaskSetApplicationTaskTagImpl()
908 if( xInternalTaskHandle != NULL ) in MPU_vTaskSetApplicationTaskTagImpl()
917 #endif /* if ( configUSE_APPLICATION_TASK_TAG == 1 ) */
920 #if ( configUSE_APPLICATION_TASK_TAG == 1 )
931 if( xTask == NULL ) in MPU_xTaskGetApplicationTaskTagImpl()
939 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGetApplicationTaskTagImpl()
943 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_xTaskGetApplicationTaskTagImpl()
947 if( xInternalTaskHandle != NULL ) in MPU_xTaskGetApplicationTaskTagImpl()
958 #endif /* if ( configUSE_APPLICATION_TASK_TAG == 1 ) */
961 #if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 )
975 if( xTaskToSet == NULL ) in MPU_vTaskSetThreadLocalStoragePointerImpl()
983 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskSetThreadLocalStoragePointerImpl()
987 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_vTaskSetThreadLocalStoragePointerImpl()
991 if( xInternalTaskHandle != NULL ) in MPU_vTaskSetThreadLocalStoragePointerImpl()
1000 #endif /* if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 ) */
1003 #if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 )
1016 if( xTaskToQuery == NULL ) in MPU_pvTaskGetThreadLocalStoragePointerImpl()
1024 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pvTaskGetThreadLocalStoragePointerImpl()
1028 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_pvTaskGetThreadLocalStoragePointerImpl()
1032 if( xInternalTaskHandle != NULL ) in MPU_pvTaskGetThreadLocalStoragePointerImpl()
1043 #endif /* if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 ) */
1046 #if ( configUSE_TRACE_FACILITY == 1 )
1062 if( mpuMULTIPLY_UINT32_WILL_OVERFLOW( ulTaskStatusSize, ulArraySize ) == 0 ) in MPU_uxTaskGetSystemStateImpl()
1068 if( pulTotalRunTime != NULL ) in MPU_uxTaskGetSystemStateImpl()
1075 if( ( xIsTaskStatusArrayWriteable == pdTRUE ) && in MPU_uxTaskGetSystemStateImpl()
1085 #endif /* if ( configUSE_TRACE_FACILITY == 1 ) */
1088 #if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 )
1099 if( xTask == NULL ) in MPU_uxTaskGetStackHighWaterMarkImpl()
1107 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskGetStackHighWaterMarkImpl()
1111 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_uxTaskGetStackHighWaterMarkImpl()
1115 if( xInternalTaskHandle != NULL ) in MPU_uxTaskGetStackHighWaterMarkImpl()
1126 #endif /* if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) */
1129 #if ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 )
1140 if( xTask == NULL ) in MPU_uxTaskGetStackHighWaterMark2Impl()
1148 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskGetStackHighWaterMark2Impl()
1152 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_uxTaskGetStackHighWaterMark2Impl()
1156 if( xInternalTaskHandle != NULL ) in MPU_uxTaskGetStackHighWaterMark2Impl()
1167 #endif /* if ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) */
1170 #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
1182 if( xInternalTaskHandle != NULL ) in MPU_xTaskGetCurrentTaskHandleImpl()
1186 if( lIndex != -1 ) in MPU_xTaskGetCurrentTaskHandleImpl()
1195 #endif /* if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) ) */
1198 #if ( INCLUDE_xTaskGetSchedulerState == 1 )
1211 #endif /* if ( INCLUDE_xTaskGetSchedulerState == 1 ) */
1220 if( pxTimeOut != NULL ) in MPU_vTaskSetTimeOutStateImpl()
1226 if( xIsTimeOutWriteable == pdTRUE ) in MPU_vTaskSetTimeOutStateImpl()
1244 if( ( pxTimeOut != NULL ) && ( pxTicksToWait != NULL ) ) in MPU_xTaskCheckForTimeOutImpl()
1253 if( ( xIsTimeOutWriteable == pdTRUE ) && ( xIsTicksToWaitWriteable == pdTRUE ) ) in MPU_xTaskCheckForTimeOutImpl()
1263 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
1296 if( pxParams != NULL ) in MPU_xTaskGenericNotifyImpl()
1303 if( xAreParamsReadable == pdTRUE ) in MPU_xTaskGenericNotifyImpl()
1305 if( ( pxParams->uxIndexToNotify < configTASK_NOTIFICATION_ARRAY_ENTRIES ) && in MPU_xTaskGenericNotifyImpl()
1312 if( pxParams->pulPreviousNotificationValue != NULL ) in MPU_xTaskGenericNotifyImpl()
1319 if( ( pxParams->pulPreviousNotificationValue == NULL ) || in MPU_xTaskGenericNotifyImpl()
1324 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGenericNotifyImpl()
1328 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_xTaskGenericNotifyImpl()
1332 if( xInternalTaskHandle != NULL ) in MPU_xTaskGenericNotifyImpl()
1349 #endif /* if ( configUSE_TASK_NOTIFICATIONS == 1 ) */
1352 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
1382 if( pxParams != NULL ) in MPU_xTaskGenericNotifyWaitImpl()
1389 if( xAreParamsReadable == pdTRUE ) in MPU_xTaskGenericNotifyWaitImpl()
1391 if( pxParams->uxIndexToWaitOn < configTASK_NOTIFICATION_ARRAY_ENTRIES ) in MPU_xTaskGenericNotifyWaitImpl()
1393 if( pxParams->pulNotificationValue != NULL ) in MPU_xTaskGenericNotifyWaitImpl()
1400 if( ( pxParams->pulNotificationValue == NULL ) || in MPU_xTaskGenericNotifyWaitImpl()
1415 #endif /* if ( configUSE_TASK_NOTIFICATIONS == 1 ) */
1418 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
1430 if( uxIndexToWaitOn < configTASK_NOTIFICATION_ARRAY_ENTRIES ) in MPU_ulTaskGenericNotifyTakeImpl()
1438 #endif /* if ( configUSE_TASK_NOTIFICATIONS == 1 ) */
1441 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
1454 if( uxIndexToClear < configTASK_NOTIFICATION_ARRAY_ENTRIES ) in MPU_xTaskGenericNotifyStateClearImpl()
1456 if( xTask == NULL ) in MPU_xTaskGenericNotifyStateClearImpl()
1464 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGenericNotifyStateClearImpl()
1468 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_xTaskGenericNotifyStateClearImpl()
1472 if( xInternalTaskHandle != NULL ) in MPU_xTaskGenericNotifyStateClearImpl()
1484 #endif /* if ( configUSE_TASK_NOTIFICATIONS == 1 ) */
1487 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
1502 if( uxIndexToClear < configTASK_NOTIFICATION_ARRAY_ENTRIES ) in MPU_ulTaskGenericNotifyValueClearImpl()
1504 if( xTask == NULL ) in MPU_ulTaskGenericNotifyValueClearImpl()
1512 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_ulTaskGenericNotifyValueClearImpl()
1516 if( xCallingTaskIsAuthorizedToAccessTask == pdTRUE ) in MPU_ulTaskGenericNotifyValueClearImpl()
1520 if( xInternalTaskHandle != NULL ) in MPU_ulTaskGenericNotifyValueClearImpl()
1532 #endif /* if ( configUSE_TASK_NOTIFICATIONS == 1 ) */
1540 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
1555 if( lIndex != -1 ) in MPU_xTaskCreate()
1558 if( ( uxPriority & portPRIVILEGE_BIT ) != 0 ) in MPU_xTaskCreate()
1562 if( ( xReturn == pdPASS ) && ( xInternalTaskHandle != NULL ) ) in MPU_xTaskCreate()
1566 if( pxCreatedTask != NULL ) in MPU_xTaskCreate()
1584 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
1600 if( lIndex != -1 ) in MPU_xTaskCreateStatic()
1604 if( xInternalTaskHandle != NULL ) in MPU_xTaskCreateStatic()
1608 #if ( configENABLE_ACCESS_CONTROL_LIST == 1 ) in MPU_xTaskCreateStatic()
1611 if( ( uxPriority & portPRIVILEGE_BIT ) == 0 ) in MPU_xTaskCreateStatic()
1632 #if ( INCLUDE_vTaskDelete == 1 )
1639 if( pxTaskToDelete == NULL ) in MPU_vTaskDelete()
1644 if( lIndex != -1 ) in MPU_vTaskDelete()
1655 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskDelete()
1659 if( xInternalTaskHandle != NULL ) in MPU_vTaskDelete()
1668 #endif /* #if ( INCLUDE_vTaskDelete == 1 ) */
1672 #if ( INCLUDE_vTaskPrioritySet == 1 )
1680 if( pxTask == NULL ) in MPU_vTaskPrioritySet()
1688 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskPrioritySet()
1692 if( xInternalTaskHandle != NULL ) in MPU_vTaskPrioritySet()
1700 #endif /* if ( INCLUDE_vTaskPrioritySet == 1 ) */
1703 #if ( INCLUDE_xTaskGetHandle == 1 )
1713 if( xInternalTaskHandle != NULL ) in MPU_xTaskGetHandle()
1717 if( lIndex != -1 ) in MPU_xTaskGetHandle()
1726 #endif /* if ( INCLUDE_xTaskGetHandle == 1 ) */
1730 #if ( configUSE_APPLICATION_TASK_TAG == 1 )
1739 if( xTask == NULL ) in MPU_xTaskCallApplicationTaskHook()
1747 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskCallApplicationTaskHook()
1751 if( xInternalTaskHandle != NULL ) in MPU_xTaskCallApplicationTaskHook()
1761 #endif /* if ( configUSE_APPLICATION_TASK_TAG == 1 ) */
1764 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
1775 if( lIndex != -1 ) in MPU_xTaskCreateRestricted()
1779 if( ( xReturn == pdPASS ) && ( xInternalTaskHandle != NULL ) ) in MPU_xTaskCreateRestricted()
1783 #if ( configENABLE_ACCESS_CONTROL_LIST == 1 ) in MPU_xTaskCreateRestricted()
1786 if( ( pxTaskDefinition->uxPriority & portPRIVILEGE_BIT ) == 0 ) in MPU_xTaskCreateRestricted()
1793 if( pxCreatedTask != NULL ) in MPU_xTaskCreateRestricted()
1810 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
1821 if( lIndex != -1 ) in MPU_xTaskCreateRestrictedStatic()
1825 if( ( xReturn == pdPASS ) && ( xInternalTaskHandle != NULL ) ) in MPU_xTaskCreateRestrictedStatic()
1829 #if ( configENABLE_ACCESS_CONTROL_LIST == 1 ) in MPU_xTaskCreateRestrictedStatic()
1832 if( ( pxTaskDefinition->uxPriority & portPRIVILEGE_BIT ) == 0 ) in MPU_xTaskCreateRestrictedStatic()
1839 if( pxCreatedTask != NULL ) in MPU_xTaskCreateRestrictedStatic()
1862 if( xTaskToModify == NULL ) in MPU_vTaskAllocateMPURegions()
1870 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskAllocateMPURegions()
1874 if( xInternalTaskHandle != NULL ) in MPU_vTaskAllocateMPURegions()
1883 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
1893 if( xTask == NULL ) in MPU_xTaskGetStaticBuffers()
1902 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGetStaticBuffers()
1906 if( xInternalTaskHandle != NULL ) in MPU_xTaskGetStaticBuffers()
1916 #endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */
1925 if( xTaskToQuery == NULL ) in MPU_pcTaskGetName()
1933 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pcTaskGetName()
1937 if( xInternalTaskHandle != NULL ) in MPU_pcTaskGetName()
1948 #if ( INCLUDE_uxTaskPriorityGet == 1 )
1956 if( xTask == NULL ) in MPU_uxTaskPriorityGetFromISR()
1964 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskPriorityGetFromISR()
1968 if( xInternalTaskHandle != NULL ) in MPU_uxTaskPriorityGetFromISR()
1978 #endif /* #if ( INCLUDE_uxTaskPriorityGet == 1 ) */
1981 #if ( ( INCLUDE_uxTaskPriorityGet == 1 ) && ( configUSE_MUTEXES == 1 ) )
1989 if( xTask == NULL ) in MPU_uxTaskBasePriorityGet()
1997 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskBasePriorityGet()
2001 if( xInternalTaskHandle != NULL ) in MPU_uxTaskBasePriorityGet()
2011 #endif /* #if ( ( INCLUDE_uxTaskPriorityGet == 1 ) && ( configUSE_MUTEXES == 1 ) ) */
2014 #if ( ( INCLUDE_uxTaskPriorityGet == 1 ) && ( configUSE_MUTEXES == 1 ) )
2022 if( xTask == NULL ) in MPU_uxTaskBasePriorityGetFromISR()
2030 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskBasePriorityGetFromISR()
2034 if( xInternalTaskHandle != NULL ) in MPU_uxTaskBasePriorityGetFromISR()
2044 #endif /* #if ( ( INCLUDE_uxTaskPriorityGet == 1 ) && ( configUSE_MUTEXES == 1 ) ) */
2047 #if ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) )
2057 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskResumeFromISR()
2061 if( xInternalTaskHandle != NULL ) in MPU_xTaskResumeFromISR()
2070 #endif /* #if ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) )*/
2073 #if ( configUSE_APPLICATION_TASK_TAG == 1 )
2081 if( xTask == NULL ) in MPU_xTaskGetApplicationTaskTagFromISR()
2089 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGetApplicationTaskTagFromISR()
2093 if( xInternalTaskHandle != NULL ) in MPU_xTaskGetApplicationTaskTagFromISR()
2103 #endif /* #if ( configUSE_APPLICATION_TASK_TAG == 1 ) */
2106 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
2121 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGenericNotifyFromISR()
2125 if( xInternalTaskHandle != NULL ) in MPU_xTaskGenericNotifyFromISR()
2134 #endif /* #if ( configUSE_TASK_NOTIFICATIONS == 1 ) */
2137 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
2148 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskGenericNotifyGiveFromISR()
2152 if( xInternalTaskHandle != NULL ) in MPU_vTaskGenericNotifyGiveFromISR()
2158 #endif /*#if ( configUSE_TASK_NOTIFICATIONS == 1 )*/
2184 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericSendImpl()
2188 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_xQueueGenericSendImpl()
2192 if( xInternalQueueHandle != NULL ) in MPU_xQueueGenericSendImpl()
2197if( ( !( ( pvItemToQueue == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) ) && in MPU_xQueueGenericSendImpl()
2199 #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) in MPU_xQueueGenericSendImpl()
2204 if( pvItemToQueue != NULL ) in MPU_xQueueGenericSendImpl()
2211 if( ( pvItemToQueue == NULL ) || ( xIsItemToQueueReadable == pdTRUE ) ) in MPU_xQueueGenericSendImpl()
2235 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxQueueMessagesWaitingImpl()
2239 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_uxQueueMessagesWaitingImpl()
2243 if( xInternalQueueHandle != NULL ) in MPU_uxQueueMessagesWaitingImpl()
2265 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxQueueSpacesAvailableImpl()
2269 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_uxQueueSpacesAvailableImpl()
2273 if( xInternalQueueHandle != NULL ) in MPU_uxQueueSpacesAvailableImpl()
2301 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueReceiveImpl()
2305 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_xQueueReceiveImpl()
2309 if( xInternalQueueHandle != NULL ) in MPU_xQueueReceiveImpl()
2313if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) ) in MPU_xQueueReceiveImpl()
2314 #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) in MPU_xQueueReceiveImpl()
2323 if( xIsReceiveBufferWritable == pdTRUE ) in MPU_xQueueReceiveImpl()
2353 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueuePeekImpl()
2357 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_xQueuePeekImpl()
2361 if( xInternalQueueHandle != NULL ) in MPU_xQueuePeekImpl()
2365if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) ) in MPU_xQueuePeekImpl()
2366 #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) in MPU_xQueuePeekImpl()
2375 if( xIsReceiveBufferWritable == pdTRUE ) in MPU_xQueuePeekImpl()
2402 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueSemaphoreTakeImpl()
2406 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_xQueueSemaphoreTakeImpl()
2410 if( xInternalQueueHandle != NULL ) in MPU_xQueueSemaphoreTakeImpl()
2414 if( ( uxQueueItemSize == 0 ) in MPU_xQueueSemaphoreTakeImpl()
2415 #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) in MPU_xQueueSemaphoreTakeImpl()
2430 #if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
2445 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGetMutexHolderImpl()
2449 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_xQueueGetMutexHolderImpl()
2453 if( xInternalQueueHandle != NULL ) in MPU_xQueueGetMutexHolderImpl()
2457 if( xMutexHolderTaskInternalHandle != NULL ) in MPU_xQueueGetMutexHolderImpl()
2461 if( lMutexHolderTaskIndex != -1 ) in MPU_xQueueGetMutexHolderImpl()
2473 #endif /* if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) ) */
2476 #if ( configUSE_RECURSIVE_MUTEXES == 1 )
2492 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueTakeMutexRecursiveImpl()
2496 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_xQueueTakeMutexRecursiveImpl()
2500 if( xInternalQueueHandle != NULL ) in MPU_xQueueTakeMutexRecursiveImpl()
2504 if( uxQueueItemSize == 0 ) in MPU_xQueueTakeMutexRecursiveImpl()
2515 #endif /* if ( configUSE_RECURSIVE_MUTEXES == 1 ) */
2518 #if ( configUSE_RECURSIVE_MUTEXES == 1 )
2531 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGiveMutexRecursiveImpl()
2535 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_xQueueGiveMutexRecursiveImpl()
2539 if( xInternalQueueHandle != NULL ) in MPU_xQueueGiveMutexRecursiveImpl()
2549 #endif /* if ( configUSE_RECURSIVE_MUTEXES == 1 ) */
2552 #if ( configUSE_QUEUE_SETS == 1 )
2568 if( IS_EXTERNAL_INDEX_VALID( lIndexQueueSet ) != pdFALSE ) in MPU_xQueueSelectFromSetImpl()
2572 if( xCallingTaskIsAuthorizedToAccessQueueSet == pdTRUE ) in MPU_xQueueSelectFromSetImpl()
2576 if( xInternalQueueSetHandle != NULL ) in MPU_xQueueSelectFromSetImpl()
2580 if( xSelectedMemberInternal != NULL ) in MPU_xQueueSelectFromSetImpl()
2584 if( lIndexSelectedMember != -1 ) in MPU_xQueueSelectFromSetImpl()
2596 #endif /* if ( configUSE_QUEUE_SETS == 1 ) */
2599 #if ( configUSE_QUEUE_SETS == 1 )
2617 if( ( IS_EXTERNAL_INDEX_VALID( lIndexQueueSet ) != pdFALSE ) && in MPU_xQueueAddToSetImpl()
2623if( ( xCallingTaskIsAuthorizedToAccessQueueSet == pdTRUE ) && ( xCallingTaskIsAuthorizedToAccessQu… in MPU_xQueueAddToSetImpl()
2628if( ( xInternalQueueSetHandle != NULL ) && ( xInternalQueueSetMemberHandle != NULL ) ) in MPU_xQueueAddToSetImpl()
2638 #endif /* if ( configUSE_QUEUE_SETS == 1 ) */
2641 #if configQUEUE_REGISTRY_SIZE > 0
2655 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vQueueAddToRegistryImpl()
2659 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_vQueueAddToRegistryImpl()
2663 if( xInternalQueueHandle != NULL ) in MPU_vQueueAddToRegistryImpl()
2671 #endif /* if configQUEUE_REGISTRY_SIZE > 0 */
2674 #if configQUEUE_REGISTRY_SIZE > 0
2686 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vQueueUnregisterQueueImpl()
2690 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_vQueueUnregisterQueueImpl()
2694 if( xInternalQueueHandle != NULL ) in MPU_vQueueUnregisterQueueImpl()
2702 #endif /* if configQUEUE_REGISTRY_SIZE > 0 */
2705 #if configQUEUE_REGISTRY_SIZE > 0
2718 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pcQueueGetNameImpl()
2722 if( xCallingTaskIsAuthorizedToAccessQueue == pdTRUE ) in MPU_pcQueueGetNameImpl()
2726 if( xInternalQueueHandle != NULL ) in MPU_pcQueueGetNameImpl()
2736 #endif /* if configQUEUE_REGISTRY_SIZE > 0 */
2751 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vQueueDelete()
2755 if( xInternalQueueHandle != NULL ) in MPU_vQueueDelete()
2764 #if ( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
2774 if( lIndex != -1 ) in MPU_xQueueCreateMutex()
2778 if( xInternalQueueHandle != NULL ) in MPU_xQueueCreateMutex()
2792 #endif /* if ( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
2795 #if ( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
2806 if( lIndex != -1 ) in MPU_xQueueCreateMutexStatic()
2810 if( xInternalQueueHandle != NULL ) in MPU_xQueueCreateMutexStatic()
2824 #endif /* if ( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) */
2827 #if ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
2838 if( lIndex != -1 ) in MPU_xQueueCreateCountingSemaphore()
2842 if( xInternalQueueHandle != NULL ) in MPU_xQueueCreateCountingSemaphore()
2856 …#endif /* if ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )…
2859 #if ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
2871 if( lIndex != -1 ) in MPU_xQueueCreateCountingSemaphoreStatic()
2875 if( xInternalQueueHandle != NULL ) in MPU_xQueueCreateCountingSemaphoreStatic()
2889 …#endif /* if ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) …
2892 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
2904 if( lIndex != -1 ) in MPU_xQueueGenericCreate()
2908 if( xInternalQueueHandle != NULL ) in MPU_xQueueGenericCreate()
2922 #endif /* if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) */
2925 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
2939 if( lIndex != -1 ) in MPU_xQueueGenericCreateStatic()
2943 if( xInternalQueueHandle != NULL ) in MPU_xQueueGenericCreateStatic()
2957 #endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */
2969 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericReset()
2973 if( xInternalQueueHandle != NULL ) in MPU_xQueueGenericReset()
2983 #if ( ( configUSE_QUEUE_SETS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
2993 if( lIndex != -1 ) in MPU_xQueueCreateSet()
2997 if( xInternalQueueSetHandle != NULL ) in MPU_xQueueCreateSet()
3011 #endif /* if ( ( configUSE_QUEUE_SETS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
3014 #if ( configUSE_QUEUE_SETS == 1 )
3027 if( ( IS_EXTERNAL_INDEX_VALID( lIndexQueueSet ) != pdFALSE ) && in MPU_xQueueRemoveFromSet()
3033if( ( xInternalQueueSetHandle != NULL ) && ( xInternalQueueSetMemberHandle != NULL ) ) in MPU_xQueueRemoveFromSet()
3042 #endif /* if ( configUSE_QUEUE_SETS == 1 ) */
3045 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
3057 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericGetStaticBuffers()
3061 if( xInternalQueueHandle != NULL ) in MPU_xQueueGenericGetStaticBuffers()
3070 #endif /*if ( configSUPPORT_STATIC_ALLOCATION == 1 )*/
3084 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericSendFromISR()
3088 if( xInternalQueueHandle != NULL ) in MPU_xQueueGenericSendFromISR()
3108 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGiveFromISR()
3112 if( xInternalQueueHandle != NULL ) in MPU_xQueueGiveFromISR()
3132 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueuePeekFromISR()
3136 if( xInternalQueueHandle != NULL ) in MPU_xQueuePeekFromISR()
3157 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueReceiveFromISR()
3161 if( xInternalQueueHandle != NULL ) in MPU_xQueueReceiveFromISR()
3180 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueIsQueueEmptyFromISR()
3184 if( xInternalQueueHandle != NULL ) in MPU_xQueueIsQueueEmptyFromISR()
3202 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueIsQueueFullFromISR()
3206 if( xInternalQueueHandle != NULL ) in MPU_xQueueIsQueueFullFromISR()
3225 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxQueueMessagesWaitingFromISR()
3229 if( xInternalQueueHandle != NULL ) in MPU_uxQueueMessagesWaitingFromISR()
3240 #if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
3251 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGetMutexHolderFromISR()
3255 if( xInternalSemaphoreHandle != NULL ) in MPU_xQueueGetMutexHolderFromISR()
3259 if( xMutexHolderTaskInternalHandle != NULL ) in MPU_xQueueGetMutexHolderFromISR()
3263 if( lMutexHolderTaskIndex != -1 ) in MPU_xQueueGetMutexHolderFromISR()
3274 #endif /* #if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) ) */
3277 #if ( configUSE_QUEUE_SETS == 1 )
3288 if( IS_EXTERNAL_INDEX_VALID( lIndexQueueSet ) != pdFALSE ) in MPU_xQueueSelectFromSetFromISR()
3292 if( xInternalQueueSetHandle != NULL ) in MPU_xQueueSelectFromSetFromISR()
3296 if( xSelectedMemberInternal != NULL ) in MPU_xQueueSelectFromSetFromISR()
3300 if( lIndexSelectedMember != -1 ) in MPU_xQueueSelectFromSetFromISR()
3311 #endif /* if ( configUSE_QUEUE_SETS == 1 ) */
3318 #if ( configUSE_TIMERS == 1 )
3331 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pvTimerGetTimerIDImpl()
3335 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_pvTimerGetTimerIDImpl()
3339 if( xInternalTimerHandle != NULL ) in MPU_pvTimerGetTimerIDImpl()
3349 #endif /* if ( configUSE_TIMERS == 1 ) */
3352 #if ( configUSE_TIMERS == 1 )
3366 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTimerSetTimerIDImpl()
3370 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_vTimerSetTimerIDImpl()
3374 if( xInternalTimerHandle != NULL ) in MPU_vTimerSetTimerIDImpl()
3382 #endif /* if ( configUSE_TIMERS == 1 ) */
3385 #if ( configUSE_TIMERS == 1 )
3398 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerIsTimerActiveImpl()
3402 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_xTimerIsTimerActiveImpl()
3406 if( xInternalTimerHandle != NULL ) in MPU_xTimerIsTimerActiveImpl()
3416 #endif /* if ( configUSE_TIMERS == 1 ) */
3419 #if ( configUSE_TIMERS == 1 )
3432 #endif /* if ( configUSE_TIMERS == 1 ) */
3435 #if ( configUSE_TIMERS == 1 )
3468 if( pxParams != NULL ) in MPU_xTimerGenericCommandFromTaskImpl()
3475 if( xAreParamsReadable == pdTRUE ) in MPU_xTimerGenericCommandFromTaskImpl()
3477 if( pxParams->xCommandID < tmrFIRST_FROM_ISR_COMMAND ) in MPU_xTimerGenericCommandFromTaskImpl()
3479 if( pxParams->pxHigherPriorityTaskWoken != NULL ) in MPU_xTimerGenericCommandFromTaskImpl()
3486 if( ( pxParams->pxHigherPriorityTaskWoken == NULL ) || in MPU_xTimerGenericCommandFromTaskImpl()
3491 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGenericCommandFromTaskImpl()
3495 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_xTimerGenericCommandFromTaskImpl()
3499 if( xInternalTimerHandle != NULL ) in MPU_xTimerGenericCommandFromTaskImpl()
3516 #endif /* if ( configUSE_TIMERS == 1 ) */
3519 #if ( configUSE_TIMERS == 1 )
3532 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pcTimerGetNameImpl()
3536 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_pcTimerGetNameImpl()
3540 if( xInternalTimerHandle != NULL ) in MPU_pcTimerGetNameImpl()
3550 #endif /* if ( configUSE_TIMERS == 1 ) */
3553 #if ( configUSE_TIMERS == 1 )
3567 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTimerSetReloadModeImpl()
3571 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_vTimerSetReloadModeImpl()
3575 if( xInternalTimerHandle != NULL ) in MPU_vTimerSetReloadModeImpl()
3583 #endif /* if ( configUSE_TIMERS == 1 ) */
3586 #if ( configUSE_TIMERS == 1 )
3599 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetReloadModeImpl()
3603 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_xTimerGetReloadModeImpl()
3607 if( xInternalTimerHandle != NULL ) in MPU_xTimerGetReloadModeImpl()
3617 #endif /* if ( configUSE_TIMERS == 1 ) */
3620 #if ( configUSE_TIMERS == 1 )
3633 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTimerGetReloadModeImpl()
3637 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_uxTimerGetReloadModeImpl()
3641 if( xInternalTimerHandle != NULL ) in MPU_uxTimerGetReloadModeImpl()
3651 #endif /* if ( configUSE_TIMERS == 1 ) */
3654 #if ( configUSE_TIMERS == 1 )
3667 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetPeriodImpl()
3671 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_xTimerGetPeriodImpl()
3675 if( xInternalTimerHandle != NULL ) in MPU_xTimerGetPeriodImpl()
3685 #endif /* if ( configUSE_TIMERS == 1 ) */
3688 #if ( configUSE_TIMERS == 1 )
3701 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetExpiryTimeImpl()
3705 if( xCallingTaskIsAuthorizedToAccessTimer == pdTRUE ) in MPU_xTimerGetExpiryTimeImpl()
3709 if( xInternalTimerHandle != NULL ) in MPU_xTimerGetExpiryTimeImpl()
3719 #endif /* if ( configUSE_TIMERS == 1 ) */
3727 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 )
3741 if( lIndex != -1 ) in MPU_xTimerCreate()
3745 if( xInternalTimerHandle != NULL ) in MPU_xTimerCreate()
3759 #endif /* if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 ) */
3762 #if ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 )
3777 if( lIndex != -1 ) in MPU_xTimerCreateStatic()
3781 if( xInternalTimerHandle != NULL ) in MPU_xTimerCreateStatic()
3795 #endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 ) */
3798 #if ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 )
3809 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetStaticBuffer()
3813 if( xInternalTimerHandle != NULL ) in MPU_xTimerGetStaticBuffer()
3822 #endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 ) */
3825 #if ( configUSE_TIMERS == 1 )
3838 if( pxHigherPriorityTaskWoken != NULL ) in MPU_xTimerGenericCommandFromISR()
3845if( ( pxHigherPriorityTaskWoken == NULL ) || ( xIsHigherPriorityTaskWokenWriteable == pdTRUE ) ) in MPU_xTimerGenericCommandFromISR()
3849 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGenericCommandFromISR()
3853 if( xInternalTimerHandle != NULL ) in MPU_xTimerGenericCommandFromISR()
3863 #endif /* if ( configUSE_TIMERS == 1 ) */
3900 if( pxParams != NULL ) in MPU_xEventGroupWaitBitsImpl()
3907 if( xAreParamsReadable == pdTRUE ) in MPU_xEventGroupWaitBitsImpl()
3909 if( ( ( pxParams->uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) && in MPU_xEventGroupWaitBitsImpl()
3911 #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) in MPU_xEventGroupWaitBitsImpl()
3918 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupWaitBitsImpl()
3922 if( xCallingTaskIsAuthorizedToAccessEventGroup == pdTRUE ) in MPU_xEventGroupWaitBitsImpl()
3926 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupWaitBitsImpl()
3954 if( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) in MPU_xEventGroupClearBitsImpl()
3958 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupClearBitsImpl()
3962 if( xCallingTaskIsAuthorizedToAccessEventGroup == pdTRUE ) in MPU_xEventGroupClearBitsImpl()
3966 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupClearBitsImpl()
3989 if( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) in MPU_xEventGroupSetBitsImpl()
3993 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupSetBitsImpl()
3997 if( xCallingTaskIsAuthorizedToAccessEventGroup == pdTRUE ) in MPU_xEventGroupSetBitsImpl()
4001 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupSetBitsImpl()
4028 if( ( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) && in MPU_xEventGroupSyncImpl()
4030 #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) in MPU_xEventGroupSyncImpl()
4037 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupSyncImpl()
4041 if( xCallingTaskIsAuthorizedToAccessEventGroup == pdTRUE ) in MPU_xEventGroupSyncImpl()
4045 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupSyncImpl()
4057 #if ( configUSE_TRACE_FACILITY == 1 )
4070 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxEventGroupGetNumberImpl()
4074 if( xCallingTaskIsAuthorizedToAccessEventGroup == pdTRUE ) in MPU_uxEventGroupGetNumberImpl()
4078 if( xInternalEventGroupHandle != NULL ) in MPU_uxEventGroupGetNumberImpl()
4091 #if ( configUSE_TRACE_FACILITY == 1 )
4105 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vEventGroupSetNumberImpl()
4109 if( xCallingTaskIsAuthorizedToAccessEventGroup == pdTRUE ) in MPU_vEventGroupSetNumberImpl()
4113 if( xInternalEventGroupHandle != NULL ) in MPU_vEventGroupSetNumberImpl()
4129 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
4139 if( lIndex != -1 ) in MPU_xEventGroupCreate()
4143 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupCreate()
4157 #endif /* if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) */
4160 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
4170 if( lIndex != -1 ) in MPU_xEventGroupCreateStatic()
4174 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupCreateStatic()
4188 #endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */
4198 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vEventGroupDelete()
4202 if( xInternalEventGroupHandle != NULL ) in MPU_vEventGroupDelete()
4211 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
4222 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupGetStaticBuffer()
4226 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupGetStaticBuffer()
4235 #endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */
4238 …#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_…
4249 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupClearBitsFromISR()
4253 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupClearBitsFromISR()
4262 …#endif /* #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( …
4265 …#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_…
4277 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupSetBitsFromISR()
4281 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupSetBitsFromISR()
4290 …#endif /* #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( …
4301 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupGetBitsFromISR()
4305 if( xInternalEventGroupHandle != NULL ) in MPU_xEventGroupGetBitsFromISR()
4335 if( pvTxData != NULL ) in MPU_xStreamBufferSendImpl()
4341 if( xIsTxDataBufferReadable == pdTRUE ) in MPU_xStreamBufferSendImpl()
4345 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSendImpl()
4349 if( xCallingTaskIsAuthorizedToAccessStreamBuffer == pdTRUE ) in MPU_xStreamBufferSendImpl()
4353 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferSendImpl()
4382 if( pvRxData != NULL ) in MPU_xStreamBufferReceiveImpl()
4388 if( xIsRxDataBufferWriteable == pdTRUE ) in MPU_xStreamBufferReceiveImpl()
4392 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReceiveImpl()
4396 if( xCallingTaskIsAuthorizedToAccessStreamBuffer == pdTRUE ) in MPU_xStreamBufferReceiveImpl()
4400 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferReceiveImpl()
4424 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferIsFullImpl()
4428 if( xCallingTaskIsAuthorizedToAccessStreamBuffer == pdTRUE ) in MPU_xStreamBufferIsFullImpl()
4432 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferIsFullImpl()
4454 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferIsEmptyImpl()
4458 if( xCallingTaskIsAuthorizedToAccessStreamBuffer == pdTRUE ) in MPU_xStreamBufferIsEmptyImpl()
4462 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferIsEmptyImpl()
4484 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSpacesAvailableImpl()
4488 if( xCallingTaskIsAuthorizedToAccessStreamBuffer == pdTRUE ) in MPU_xStreamBufferSpacesAvailableImpl()
4492 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferSpacesAvailableImpl()
4514 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferBytesAvailableImpl()
4518 if( xCallingTaskIsAuthorizedToAccessStreamBuffer == pdTRUE ) in MPU_xStreamBufferBytesAvailableImpl()
4522 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferBytesAvailableImpl()
4546 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSetTriggerLevelImpl()
4550 if( xCallingTaskIsAuthorizedToAccessStreamBuffer == pdTRUE ) in MPU_xStreamBufferSetTriggerLevelImpl()
4554 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferSetTriggerLevelImpl()
4576 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferNextMessageLengthBytesImpl()
4580 if( xCallingTaskIsAuthorizedToAccessStreamBuffer == pdTRUE ) in MPU_xStreamBufferNextMessageLengthBytesImpl()
4584 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferNextMessageLengthBytesImpl()
4600 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
4619 if( ( pxSendCompletedCallback == NULL ) && in MPU_xStreamBufferGenericCreate()
4624 if( lIndex != -1 ) in MPU_xStreamBufferGenericCreate()
4632 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferGenericCreate()
4655 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
4676 if( ( pxSendCompletedCallback == NULL ) && in MPU_xStreamBufferGenericCreateStatic()
4681 if( lIndex != -1 ) in MPU_xStreamBufferGenericCreateStatic()
4691 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferGenericCreateStatic()
4721 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vStreamBufferDelete()
4725 if( xInternalStreamBufferHandle != NULL ) in MPU_vStreamBufferDelete()
4743 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReset()
4747 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferReset()
4757 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
4769 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferGetStaticBuffers()
4773 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferGetStaticBuffers()
4782 #endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */
4796 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSendFromISR()
4800 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferSendFromISR()
4821 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReceiveFromISR()
4825 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferReceiveFromISR()
4844 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSendCompletedFromISR()
4848 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferSendCompletedFromISR()
4867 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReceiveCompletedFromISR()
4871 if( xInternalStreamBufferHandle != NULL ) in MPU_xStreamBufferReceiveCompletedFromISR()
4885 #if configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS == 1
4898 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
4906 #if ( configUSE_TIMERS == 1 )
4916 #if ( INCLUDE_xTaskDelayUntil == 1 )
4922 #if ( INCLUDE_xTaskAbortDelay == 1 )
4928 #if ( INCLUDE_vTaskDelay == 1 )
4934 #if ( INCLUDE_uxTaskPriorityGet == 1 )
4940 #if ( INCLUDE_eTaskGetState == 1 )
4946 #if ( configUSE_TRACE_FACILITY == 1 )
4952 #if ( INCLUDE_xTaskGetIdleTaskHandle == 1 )
4958 #if ( INCLUDE_vTaskSuspend == 1 )
4969 #if ( configGENERATE_RUN_TIME_STATS == 1 )
4977 #if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) )
4985 #if ( configUSE_APPLICATION_TASK_TAG == 1 )
4993 #if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 )
5001 #if ( configUSE_TRACE_FACILITY == 1 )
5007 #if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 )
5013 #if ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 )
5019 #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
5025 #if ( INCLUDE_xTaskGetSchedulerState == 1 )
5034 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
5051 #if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
5057 #if ( configUSE_RECURSIVE_MUTEXES == 1 )
5065 #if ( configUSE_QUEUE_SETS == 1 )
5073 #if configQUEUE_REGISTRY_SIZE > 0
5083 #if ( configUSE_TIMERS == 1 )
5111 #if ( configUSE_TRACE_FACILITY == 1 )
5130 #endif /* #if ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) ) */