Home
last modified time | relevance | path

Searched refs:rtc_tsens_mux (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-2.7.6/components/driver/esp32s2/
Drtc_tempsensor.c63 static SemaphoreHandle_t rtc_tsens_mux = NULL; variable
107 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()