mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 21:54:33 +02:00
Merge branch 'bugfix/touch_pr_on_github' into 'master'
fix(touch): fix unexpected touch start on RTC peripheral init Closes IDFGH-6021 and IDFGH-9371 See merge request espressif/esp-idf!36507
This commit is contained in:
@@ -512,7 +512,9 @@ esp_err_t touch_pad_filter_delete(void)
|
|||||||
esp_err_t ret = ESP_OK;
|
esp_err_t ret = ESP_OK;
|
||||||
xSemaphoreTake(rtc_touch_mux, portMAX_DELAY);
|
xSemaphoreTake(rtc_touch_mux, portMAX_DELAY);
|
||||||
if (s_touch_pad_filter->timer) {
|
if (s_touch_pad_filter->timer) {
|
||||||
ESP_GOTO_ON_ERROR(esp_timer_stop(s_touch_pad_filter->timer), err, TOUCH_TAG, "failed to stop the timer");
|
if (esp_timer_is_active(s_touch_pad_filter->timer)) {
|
||||||
|
ESP_GOTO_ON_ERROR(esp_timer_stop(s_touch_pad_filter->timer), err, TOUCH_TAG, "failed to stop the timer");
|
||||||
|
}
|
||||||
ESP_GOTO_ON_ERROR(esp_timer_delete(s_touch_pad_filter->timer), err, TOUCH_TAG, "failed to delete the timer");
|
ESP_GOTO_ON_ERROR(esp_timer_delete(s_touch_pad_filter->timer), err, TOUCH_TAG, "failed to delete the timer");
|
||||||
s_touch_pad_filter->timer = NULL;
|
s_touch_pad_filter->timer = NULL;
|
||||||
}
|
}
|
||||||
|
@@ -681,8 +681,8 @@ static inline void touch_ll_stop_fsm(void)
|
|||||||
*/
|
*/
|
||||||
static inline void touch_ll_start_sw_meas(void)
|
static inline void touch_ll_start_sw_meas(void)
|
||||||
{
|
{
|
||||||
SENS.sar_touch_ctrl2.touch_start_en = 0;
|
|
||||||
SENS.sar_touch_ctrl2.touch_start_en = 1;
|
SENS.sar_touch_ctrl2.touch_start_en = 1;
|
||||||
|
SENS.sar_touch_ctrl2.touch_start_en = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1061,8 +1061,8 @@ static inline bool touch_ll_get_fsm_state(void)
|
|||||||
*/
|
*/
|
||||||
static inline void touch_ll_start_sw_meas(void)
|
static inline void touch_ll_start_sw_meas(void)
|
||||||
{
|
{
|
||||||
RTCCNTL.touch_ctrl2.touch_start_en = 0;
|
|
||||||
RTCCNTL.touch_ctrl2.touch_start_en = 1;
|
RTCCNTL.touch_ctrl2.touch_start_en = 1;
|
||||||
|
RTCCNTL.touch_ctrl2.touch_start_en = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1086,8 +1086,8 @@ static inline bool touch_ll_get_fsm_state(void)
|
|||||||
*/
|
*/
|
||||||
static inline void touch_ll_start_sw_meas(void)
|
static inline void touch_ll_start_sw_meas(void)
|
||||||
{
|
{
|
||||||
RTCCNTL.touch_ctrl2.touch_start_en = 0;
|
|
||||||
RTCCNTL.touch_ctrl2.touch_start_en = 1;
|
RTCCNTL.touch_ctrl2.touch_start_en = 1;
|
||||||
|
RTCCNTL.touch_ctrl2.touch_start_en = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user