/* For ESP32 FreeRTOS, vTaskExitCritical implements both portEXIT_CRITICAL and portEXIT_CRITICAL_ISR.  */
TickType_t uxTaskResetEventItemValue(void)
/* For ESP32 FreeRTOS, vTaskExitCritical implements both portEXIT_CRITICAL and portEXIT_CRITICAL_ISR.  */
TickType_t uxTaskResetEventItemValue(void)
{
TickType_t uxReturn;
	taskENTER_CRITICAL(&xTaskQueueMutex);
	uxReturn = listGET_LIST_ITEM_VALUE( &( pxCurrentTCB[ xPortGetCoreID() ]->xEventListItem ) );
	listSET_LIST_ITEM_VALUE( &( pxCurrentTCB[ xPortGetCoreID() ]->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB[ xPortGetCoreID() ]->uxPriority ) );
	taskEXIT_CRITICAL(&xTaskQueueMutex);
	return uxReturn;
}