Searched refs:rtc_tsens_mux (Results 1 – 1 of 1) sorted by relevance
63 static SemaphoreHandle_t rtc_tsens_mux = NULL; variable107 if (rtc_tsens_mux == NULL) { in temp_sensor_start()108 rtc_tsens_mux = xSemaphoreCreateMutex(); in temp_sensor_start()110 TSENS_CHECK(rtc_tsens_mux != NULL, ESP_ERR_NO_MEM); in temp_sensor_start()121 if (rtc_tsens_mux != NULL) { in temp_sensor_stop()122 vSemaphoreDelete(rtc_tsens_mux); in temp_sensor_stop()123 rtc_tsens_mux = NULL; in temp_sensor_stop()131 TSENS_CHECK(rtc_tsens_mux != NULL, ESP_ERR_INVALID_STATE); in temp_sensor_read_raw()132 xSemaphoreTake(rtc_tsens_mux, portMAX_DELAY); in temp_sensor_read_raw()137 xSemaphoreGive(rtc_tsens_mux); in temp_sensor_read_raw()