Merge branch 'bugfix/touchpad_interrupt' into 'release/v4.0'

Change critical section API for touch pad interrupt

See merge request espressif/esp-idf!7100
This commit is contained in:
Mahavir Jain 2019-12-24 19:51:49 +08:00
commit 65cfbbda52

View File

@ -774,9 +774,9 @@ uint32_t IRAM_ATTR touch_pad_get_status()
esp_err_t IRAM_ATTR touch_pad_clear_status()
{
portENTER_CRITICAL(&rtc_spinlock);
portENTER_CRITICAL_SAFE(&rtc_spinlock);
SENS.sar_touch_ctrl2.touch_meas_en_clr = 1;
portEXIT_CRITICAL(&rtc_spinlock);
portEXIT_CRITICAL_SAFE(&rtc_spinlock);
return ESP_OK;
}