mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-12 13:27:36 +00:00
Merge branch 'feature/touch_driver_ng_on_p4_v5.3' into 'release/v5.3'
feat(touch_sensor): touch driver ng on p4 (v5.3) See merge request espressif/esp-idf!31624
This commit is contained in:
@@ -275,6 +275,10 @@ config SOC_SPI_FLASH_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_TOUCH_SENSOR_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_RNG_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
@@ -1395,6 +1399,18 @@ config SOC_TOUCH_SENSOR_NUM
|
||||
int
|
||||
default 14
|
||||
|
||||
config SOC_TOUCH_SUPPORT_SLEEP_WAKEUP
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_TOUCH_SUPPORT_WATERPROOF
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_TOUCH_SUPPORT_PROX_SENSING
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_TOUCH_PROXIMITY_CHANNEL_NUM
|
||||
int
|
||||
default 3
|
||||
@@ -1403,7 +1419,11 @@ config SOC_TOUCH_PROXIMITY_MEAS_DONE_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_TOUCH_SAMPLER_NUM
|
||||
config SOC_TOUCH_SUPPORT_FREQ_HOP
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_TOUCH_SAMPLE_CFG_NUM
|
||||
int
|
||||
default 3
|
||||
|
||||
@@ -1567,6 +1587,10 @@ config SOC_PM_SUPPORT_WIFI_WAKEUP
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_PM_SUPPORT_TOUCH_SENSOR_WAKEUP
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_PM_SUPPORT_XTAL32K_PD
|
||||
bool
|
||||
default y
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -619,13 +619,13 @@ extern "C" {
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_FILTER1_REG (DR_REG_LP_ANALOG_PERI_BASE + 0x110)
|
||||
/** LP_ANALOG_PERI_TOUCH_NEG_NOISE_DISUPDATE_BASELINE_EN : R/W; bitpos: [0]; default: 0;
|
||||
/** LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN : R/W; bitpos: [0]; default: 0;
|
||||
* Reserved
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_DISUPDATE_BASELINE_EN (BIT(0))
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_DISUPDATE_BASELINE_EN_M (LP_ANALOG_PERI_TOUCH_NEG_NOISE_DISUPDATE_BASELINE_EN_V << LP_ANALOG_PERI_TOUCH_NEG_NOISE_DISUPDATE_BASELINE_EN_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_DISUPDATE_BASELINE_EN_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_DISUPDATE_BASELINE_EN_S 0
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN (BIT(0))
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_M (LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_V << LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_S 0
|
||||
/** LP_ANALOG_PERI_TOUCH_HYSTERESIS : R/W; bitpos: [2:1]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -633,13 +633,13 @@ extern "C" {
|
||||
#define LP_ANALOG_PERI_TOUCH_HYSTERESIS_M (LP_ANALOG_PERI_TOUCH_HYSTERESIS_V << LP_ANALOG_PERI_TOUCH_HYSTERESIS_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_HYSTERESIS_V 0x00000003U
|
||||
#define LP_ANALOG_PERI_TOUCH_HYSTERESIS_S 1
|
||||
/** LP_ANALOG_PERI_TOUCH_NEG_NOISE_THRES : R/W; bitpos: [4:3]; default: 0;
|
||||
/** LP_ANALOG_PERI_TOUCH_NN_THRES : R/W; bitpos: [4:3]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_THRES 0x00000003U
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_THRES_M (LP_ANALOG_PERI_TOUCH_NEG_NOISE_THRES_V << LP_ANALOG_PERI_TOUCH_NEG_NOISE_THRES_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_THRES_V 0x00000003U
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_THRES_S 3
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_THRES 0x00000003U
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_THRES_M (LP_ANALOG_PERI_TOUCH_NN_THRES_V << LP_ANALOG_PERI_TOUCH_NN_THRES_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_THRES_V 0x00000003U
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_THRES_S 3
|
||||
/** LP_ANALOG_PERI_TOUCH_NOISE_THRES : R/W; bitpos: [6:5]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -675,13 +675,13 @@ extern "C" {
|
||||
#define LP_ANALOG_PERI_TOUCH_FILTER_EN_M (LP_ANALOG_PERI_TOUCH_FILTER_EN_V << LP_ANALOG_PERI_TOUCH_FILTER_EN_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_FILTER_EN_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_FILTER_EN_S 16
|
||||
/** LP_ANALOG_PERI_TOUCH_NEG_NOISE_LIMIT : R/W; bitpos: [20:17]; default: 5;
|
||||
/** LP_ANALOG_PERI_TOUCH_NN_LIMIT : R/W; bitpos: [20:17]; default: 5;
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_LIMIT 0x0000000FU
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_LIMIT_M (LP_ANALOG_PERI_TOUCH_NEG_NOISE_LIMIT_V << LP_ANALOG_PERI_TOUCH_NEG_NOISE_LIMIT_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_LIMIT_V 0x0000000FU
|
||||
#define LP_ANALOG_PERI_TOUCH_NEG_NOISE_LIMIT_S 17
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_LIMIT 0x0000000FU
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_LIMIT_M (LP_ANALOG_PERI_TOUCH_NN_LIMIT_V << LP_ANALOG_PERI_TOUCH_NN_LIMIT_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_LIMIT_V 0x0000000FU
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_LIMIT_S 17
|
||||
/** LP_ANALOG_PERI_TOUCH_APPROACH_LIMIT : R/W; bitpos: [28:21]; default: 80;
|
||||
* need_des
|
||||
*/
|
||||
@@ -715,32 +715,32 @@ extern "C" {
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NOISE_THRES_M (LP_ANALOG_PERI_TOUCH_BYPASS_NOISE_THRES_V << LP_ANALOG_PERI_TOUCH_BYPASS_NOISE_THRES_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NOISE_THRES_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NOISE_THRES_S 30
|
||||
/** LP_ANALOG_PERI_TOUCH_BYPASS_NEG_NOISE_THRES : R/W; bitpos: [31]; default: 0;
|
||||
/** LP_ANALOG_PERI_TOUCH_BYPASS_NN_THRES : R/W; bitpos: [31]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NEG_NOISE_THRES (BIT(31))
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NEG_NOISE_THRES_M (LP_ANALOG_PERI_TOUCH_BYPASS_NEG_NOISE_THRES_V << LP_ANALOG_PERI_TOUCH_BYPASS_NEG_NOISE_THRES_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NEG_NOISE_THRES_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NEG_NOISE_THRES_S 31
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NN_THRES (BIT(31))
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NN_THRES_M (LP_ANALOG_PERI_TOUCH_BYPASS_NN_THRES_V << LP_ANALOG_PERI_TOUCH_BYPASS_NN_THRES_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NN_THRES_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_BYPASS_NN_THRES_S 31
|
||||
|
||||
/** LP_ANALOG_PERI_TOUCH_FILTER3_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_FILTER3_REG (DR_REG_LP_ANALOG_PERI_BASE + 0x118)
|
||||
/** LP_ANALOG_PERI_TOUCH_BASELINE_SW : R/W; bitpos: [15:0]; default: 0;
|
||||
/** LP_ANALOG_PERI_TOUCH_BENCHMARK_SW : R/W; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_BASELINE_SW 0x0000FFFFU
|
||||
#define LP_ANALOG_PERI_TOUCH_BASELINE_SW_M (LP_ANALOG_PERI_TOUCH_BASELINE_SW_V << LP_ANALOG_PERI_TOUCH_BASELINE_SW_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_BASELINE_SW_V 0x0000FFFFU
|
||||
#define LP_ANALOG_PERI_TOUCH_BASELINE_SW_S 0
|
||||
/** LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW : WT; bitpos: [16]; default: 0;
|
||||
#define LP_ANALOG_PERI_TOUCH_BENCHMARK_SW 0x0000FFFFU
|
||||
#define LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_M (LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_V << LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_V 0x0000FFFFU
|
||||
#define LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_S 0
|
||||
/** LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW : WT; bitpos: [16]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW (BIT(16))
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_M (LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_V << LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_S 16
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW (BIT(16))
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_M (LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_V << LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_S 16
|
||||
|
||||
/** LP_ANALOG_PERI_TOUCH_SLP0_REG register
|
||||
* need_des
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -510,18 +510,18 @@ typedef union {
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** touch_neg_noise_disupdate_baseline_en : R/W; bitpos: [0]; default: 0;
|
||||
/** touch_nn_disupdate_benchmark_en : R/W; bitpos: [0]; default: 0;
|
||||
* Reserved
|
||||
*/
|
||||
uint32_t touch_neg_noise_disupdate_baseline_en:1;
|
||||
uint32_t touch_nn_disupdate_benchmark_en:1;
|
||||
/** touch_hysteresis : R/W; bitpos: [2:1]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_hysteresis:2;
|
||||
/** touch_neg_noise_thres : R/W; bitpos: [4:3]; default: 0;
|
||||
/** touch_nn_thres : R/W; bitpos: [4:3]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_neg_noise_thres:2;
|
||||
uint32_t touch_nn_thres:2;
|
||||
/** touch_noise_thres : R/W; bitpos: [6:5]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -542,10 +542,10 @@ typedef union {
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_filter_en:1;
|
||||
/** touch_neg_noise_limit : R/W; bitpos: [20:17]; default: 5;
|
||||
/** touch_nn_limit : R/W; bitpos: [20:17]; default: 5;
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_neg_noise_limit:4;
|
||||
uint32_t touch_nn_limit:4;
|
||||
/** touch_approach_limit : R/W; bitpos: [28:21]; default: 80;
|
||||
* need_des
|
||||
*/
|
||||
@@ -572,10 +572,10 @@ typedef union {
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_bypass_noise_thres:1;
|
||||
/** touch_bypass_neg_noise_thres : R/W; bitpos: [31]; default: 0;
|
||||
/** touch_bypass_nn_thres : R/W; bitpos: [31]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_bypass_neg_noise_thres:1;
|
||||
uint32_t touch_bypass_nn_thres:1;
|
||||
};
|
||||
uint32_t val;
|
||||
} lp_analog_peri_touch_filter2_reg_t;
|
||||
@@ -585,14 +585,14 @@ typedef union {
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** touch_baseline_sw : R/W; bitpos: [15:0]; default: 0;
|
||||
/** touch_benchmark_sw : R/W; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_baseline_sw:16;
|
||||
/** touch_update_baseline_sw : WT; bitpos: [16]; default: 0;
|
||||
uint32_t touch_benchmark_sw:16;
|
||||
/** touch_update_benchmark_sw : WT; bitpos: [16]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_update_baseline_sw:1;
|
||||
uint32_t touch_update_benchmark_sw:1;
|
||||
uint32_t reserved_17:15;
|
||||
};
|
||||
uint32_t val;
|
||||
@@ -704,10 +704,14 @@ typedef union {
|
||||
* High speed touch driver
|
||||
*/
|
||||
uint32_t touch_freq_drv_hs:5;
|
||||
/** touch_freq_dbias : R/W; bitpos: [22:18]; default: 0;
|
||||
/** touch_bypass_shield : R/W; bitpos: [18]; default: 0;
|
||||
* bypass the shield channel output (only available since ECO1)
|
||||
*/
|
||||
uint32_t touch_bypass_shield:1;
|
||||
/** touch_freq_dbias : R/W; bitpos: [22:19]; default: 0;
|
||||
* Internal LDO voltage
|
||||
*/
|
||||
uint32_t touch_freq_dbias:5;
|
||||
uint32_t touch_freq_dbias:4;
|
||||
uint32_t reserved_23:9;
|
||||
};
|
||||
uint32_t val;
|
||||
@@ -746,7 +750,7 @@ typedef union {
|
||||
/** touch_data_sel : R/W; bitpos: [9:8]; default: 0;
|
||||
* The type of the output data for debugging
|
||||
* 0/1: raw data
|
||||
* 2: baseline
|
||||
* 2: benchmark
|
||||
* 3: smooth data
|
||||
*/
|
||||
uint32_t touch_data_sel:2;
|
||||
@@ -840,7 +844,7 @@ typedef union {
|
||||
|
||||
|
||||
typedef struct {
|
||||
volatile lp_analog_peri_touch_pad_thn_reg_t thn[3];
|
||||
volatile lp_analog_peri_touch_pad_thn_reg_t thresh[3];
|
||||
} lp_analog_peri_touch_padx_thn_reg_t;
|
||||
|
||||
typedef struct {
|
||||
|
@@ -87,7 +87,7 @@
|
||||
#define SOC_ASSIST_DEBUG_SUPPORTED 1
|
||||
#define SOC_WDT_SUPPORTED 1
|
||||
#define SOC_SPI_FLASH_SUPPORTED 1
|
||||
// #define SOC_TOUCH_SENSOR_SUPPORTED 1 //TODO: IDF-7477
|
||||
#define SOC_TOUCH_SENSOR_SUPPORTED 1
|
||||
#define SOC_RNG_SUPPORTED 1
|
||||
#define SOC_GP_LDO_SUPPORTED 1 // General purpose LDO
|
||||
#define SOC_PPA_SUPPORTED 1
|
||||
@@ -549,11 +549,17 @@
|
||||
#define SOC_MWDT_SUPPORT_XTAL (1)
|
||||
|
||||
/*-------------------------- TOUCH SENSOR CAPS -------------------------------*/
|
||||
#define SOC_TOUCH_SENSOR_VERSION (3) // Hardware version of touch sensor
|
||||
#define SOC_TOUCH_SENSOR_NUM (14) // Touch available channel number. Actually there are 15 Touch channels, but channel 14 is not pinned out, limit to 14 channels
|
||||
#define SOC_TOUCH_PROXIMITY_CHANNEL_NUM (3) // Support touch proximity channel number.
|
||||
#define SOC_TOUCH_PROXIMITY_MEAS_DONE_SUPPORTED (1) // Support touch proximity channel measure done interrupt type.
|
||||
#define SOC_TOUCH_SAMPLER_NUM (3) // The sampler number in total, each sampler can be used to sample on one frequency
|
||||
#define SOC_TOUCH_SENSOR_VERSION (3) /*!< Hardware version of touch sensor */
|
||||
#define SOC_TOUCH_SENSOR_NUM (14) /*!< Touch available channel number. Actually there are 15 Touch channels, but channel 14 is not pinned out, limit to 14 channels */
|
||||
|
||||
/* Touch Sensor Features */
|
||||
#define SOC_TOUCH_SUPPORT_SLEEP_WAKEUP (1) /*!< Touch sensor supports sleep awake */
|
||||
#define SOC_TOUCH_SUPPORT_WATERPROOF (1) /*!< Touch sensor supports waterproof */
|
||||
#define SOC_TOUCH_SUPPORT_PROX_SENSING (1) /*!< Touch sensor supports proximity sensing */
|
||||
#define SOC_TOUCH_PROXIMITY_CHANNEL_NUM (3) /*!< Support touch proximity channel number. */
|
||||
#define SOC_TOUCH_PROXIMITY_MEAS_DONE_SUPPORTED (1) /*!< Support touch proximity channel measure done interrupt type. */
|
||||
#define SOC_TOUCH_SUPPORT_FREQ_HOP (1) /*!< Touch sensor supports frequency hopping */
|
||||
#define SOC_TOUCH_SAMPLE_CFG_NUM (3) /*!< The sample configurations number in total, each sampler can be used to sample on one frequency */
|
||||
|
||||
/*-------------------------- TWAI CAPS ---------------------------------------*/
|
||||
#define SOC_TWAI_CONTROLLER_NUM 3
|
||||
@@ -621,6 +627,7 @@
|
||||
#define SOC_PM_SUPPORT_EXT1_WAKEUP_MODE_PER_PIN (1) /*!<Supports one bit per pin to configure the EXT1 trigger level */
|
||||
#define SOC_PM_EXT1_WAKEUP_BY_PMU (1)
|
||||
#define SOC_PM_SUPPORT_WIFI_WAKEUP (1)
|
||||
#define SOC_PM_SUPPORT_TOUCH_SENSOR_WAKEUP (1) /*!<Supports waking up from touch pad trigger */
|
||||
#define SOC_PM_SUPPORT_XTAL32K_PD (1)
|
||||
#define SOC_PM_SUPPORT_RC32K_PD (1)
|
||||
#define SOC_PM_SUPPORT_RC_FAST_PD (1)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_INT_RAW_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_INT_RAW_REG (DR_REG_RTC_TOUCH_BASE + 0x0)
|
||||
#define RTC_TOUCH_INT_RAW_REG (DR_REG_LP_TOUCH_BASE + 0x0)
|
||||
/** RTC_TOUCH_SCAN_DONE_INT_RAW : R/WTC/SS; bitpos: [0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -61,7 +61,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_INT_ST_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_INT_ST_REG (DR_REG_RTC_TOUCH_BASE + 0x4)
|
||||
#define RTC_TOUCH_INT_ST_REG (DR_REG_LP_TOUCH_BASE + 0x4)
|
||||
/** RTC_TOUCH_SCAN_DONE_INT_ST : RO; bitpos: [0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -108,7 +108,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_INT_ENA_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_INT_ENA_REG (DR_REG_RTC_TOUCH_BASE + 0x8)
|
||||
#define RTC_TOUCH_INT_ENA_REG (DR_REG_LP_TOUCH_BASE + 0x8)
|
||||
/** RTC_TOUCH_SCAN_DONE_INT_ENA : R/W; bitpos: [0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -155,7 +155,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_INT_CLR_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_INT_CLR_REG (DR_REG_RTC_TOUCH_BASE + 0xc)
|
||||
#define RTC_TOUCH_INT_CLR_REG (DR_REG_LP_TOUCH_BASE + 0xc)
|
||||
/** RTC_TOUCH_SCAN_DONE_INT_CLR : WT; bitpos: [0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -202,7 +202,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_CHN_STATUS_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_CHN_STATUS_REG (DR_REG_RTC_TOUCH_BASE + 0x10)
|
||||
#define RTC_TOUCH_CHN_STATUS_REG (DR_REG_LP_TOUCH_BASE + 0x10)
|
||||
/** RTC_TOUCH_PAD_ACTIVE : RO; bitpos: [14:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -228,7 +228,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_0_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_0_REG (DR_REG_RTC_TOUCH_BASE + 0x14)
|
||||
#define RTC_TOUCH_STATUS_0_REG (DR_REG_LP_TOUCH_BASE + 0x14)
|
||||
/** RTC_TOUCH_PAD0_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -254,7 +254,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_1_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_1_REG (DR_REG_RTC_TOUCH_BASE + 0x18)
|
||||
#define RTC_TOUCH_STATUS_1_REG (DR_REG_LP_TOUCH_BASE + 0x18)
|
||||
/** RTC_TOUCH_PAD1_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -280,7 +280,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_2_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_2_REG (DR_REG_RTC_TOUCH_BASE + 0x1c)
|
||||
#define RTC_TOUCH_STATUS_2_REG (DR_REG_LP_TOUCH_BASE + 0x1c)
|
||||
/** RTC_TOUCH_PAD2_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -306,7 +306,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_3_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_3_REG (DR_REG_RTC_TOUCH_BASE + 0x20)
|
||||
#define RTC_TOUCH_STATUS_3_REG (DR_REG_LP_TOUCH_BASE + 0x20)
|
||||
/** RTC_TOUCH_PAD3_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -332,7 +332,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_4_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_4_REG (DR_REG_RTC_TOUCH_BASE + 0x24)
|
||||
#define RTC_TOUCH_STATUS_4_REG (DR_REG_LP_TOUCH_BASE + 0x24)
|
||||
/** RTC_TOUCH_PAD4_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -358,7 +358,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_5_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_5_REG (DR_REG_RTC_TOUCH_BASE + 0x28)
|
||||
#define RTC_TOUCH_STATUS_5_REG (DR_REG_LP_TOUCH_BASE + 0x28)
|
||||
/** RTC_TOUCH_PAD5_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -384,7 +384,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_6_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_6_REG (DR_REG_RTC_TOUCH_BASE + 0x2c)
|
||||
#define RTC_TOUCH_STATUS_6_REG (DR_REG_LP_TOUCH_BASE + 0x2c)
|
||||
/** RTC_TOUCH_PAD6_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -410,7 +410,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_7_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_7_REG (DR_REG_RTC_TOUCH_BASE + 0x30)
|
||||
#define RTC_TOUCH_STATUS_7_REG (DR_REG_LP_TOUCH_BASE + 0x30)
|
||||
/** RTC_TOUCH_PAD7_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -436,7 +436,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_8_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_8_REG (DR_REG_RTC_TOUCH_BASE + 0x34)
|
||||
#define RTC_TOUCH_STATUS_8_REG (DR_REG_LP_TOUCH_BASE + 0x34)
|
||||
/** RTC_TOUCH_PAD8_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -462,7 +462,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_9_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_9_REG (DR_REG_RTC_TOUCH_BASE + 0x38)
|
||||
#define RTC_TOUCH_STATUS_9_REG (DR_REG_LP_TOUCH_BASE + 0x38)
|
||||
/** RTC_TOUCH_PAD9_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -488,7 +488,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_10_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_10_REG (DR_REG_RTC_TOUCH_BASE + 0x3c)
|
||||
#define RTC_TOUCH_STATUS_10_REG (DR_REG_LP_TOUCH_BASE + 0x3c)
|
||||
/** RTC_TOUCH_PAD10_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -514,7 +514,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_11_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_11_REG (DR_REG_RTC_TOUCH_BASE + 0x40)
|
||||
#define RTC_TOUCH_STATUS_11_REG (DR_REG_LP_TOUCH_BASE + 0x40)
|
||||
/** RTC_TOUCH_PAD11_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -540,7 +540,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_12_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_12_REG (DR_REG_RTC_TOUCH_BASE + 0x44)
|
||||
#define RTC_TOUCH_STATUS_12_REG (DR_REG_LP_TOUCH_BASE + 0x44)
|
||||
/** RTC_TOUCH_PAD12_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -566,7 +566,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_13_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_13_REG (DR_REG_RTC_TOUCH_BASE + 0x48)
|
||||
#define RTC_TOUCH_STATUS_13_REG (DR_REG_LP_TOUCH_BASE + 0x48)
|
||||
/** RTC_TOUCH_PAD13_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -592,7 +592,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_14_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_14_REG (DR_REG_RTC_TOUCH_BASE + 0x4c)
|
||||
#define RTC_TOUCH_STATUS_14_REG (DR_REG_LP_TOUCH_BASE + 0x4c)
|
||||
/** RTC_TOUCH_PAD14_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -618,7 +618,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_15_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_15_REG (DR_REG_RTC_TOUCH_BASE + 0x50)
|
||||
#define RTC_TOUCH_STATUS_15_REG (DR_REG_LP_TOUCH_BASE + 0x50)
|
||||
/** RTC_TOUCH_SLP_DATA : RO; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -644,7 +644,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_16_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_16_REG (DR_REG_RTC_TOUCH_BASE + 0x54)
|
||||
#define RTC_TOUCH_STATUS_16_REG (DR_REG_LP_TOUCH_BASE + 0x54)
|
||||
/** RTC_TOUCH_APPROACH_PAD2_CNT : RO; bitpos: [7:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -677,7 +677,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_STATUS_17_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_STATUS_17_REG (DR_REG_RTC_TOUCH_BASE + 0x58)
|
||||
#define RTC_TOUCH_STATUS_17_REG (DR_REG_LP_TOUCH_BASE + 0x58)
|
||||
/** RTC_TOUCH_DCAP_LPF : RO; bitpos: [6:0]; default: 0;
|
||||
* Reserved
|
||||
*/
|
||||
@@ -724,7 +724,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_CHN_TMP_STATUS_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_CHN_TMP_STATUS_REG (DR_REG_RTC_TOUCH_BASE + 0x5c)
|
||||
#define RTC_TOUCH_CHN_TMP_STATUS_REG (DR_REG_LP_TOUCH_BASE + 0x5c)
|
||||
/** RTC_TOUCH_PAD_INACTIVE_STATUS : RO; bitpos: [14:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -743,7 +743,7 @@ extern "C" {
|
||||
/** RTC_TOUCH_DATE_REG register
|
||||
* need_des
|
||||
*/
|
||||
#define RTC_TOUCH_DATE_REG (DR_REG_RTC_TOUCH_BASE + 0x100)
|
||||
#define RTC_TOUCH_DATE_REG (DR_REG_LP_TOUCH_BASE + 0x100)
|
||||
/** RTC_TOUCH_DATE : R/W; bitpos: [27:0]; default: 2294548;
|
||||
* need_des
|
||||
*/
|
||||
|
@@ -270,7 +270,7 @@ typedef union {
|
||||
uint32_t reserved_25:7;
|
||||
};
|
||||
uint32_t val;
|
||||
} rtc_touch_sampler_status_reg_t;
|
||||
} rtc_touch_sample_status_reg_t;
|
||||
|
||||
/** Type of chn_tmp_status register
|
||||
* Realtime channel status
|
||||
@@ -320,7 +320,7 @@ typedef struct {
|
||||
volatile rtc_touch_chn_data_reg_t chn_data[15];
|
||||
volatile rtc_touch_slp_ch_data_reg_t slp_ch_data;
|
||||
volatile rtc_touch_aprch_ch_data_reg_t aprch_ch_data;
|
||||
volatile rtc_touch_sampler_status_reg_t sampler_status;
|
||||
volatile rtc_touch_sample_status_reg_t sample_status;
|
||||
volatile rtc_touch_chn_tmp_status_reg_t chn_tmp_status;
|
||||
uint32_t reserved_060[40];
|
||||
volatile rtc_touch_date_reg_t date;
|
||||
|
@@ -4,7 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "soc/touch_sensor_periph.h"
|
||||
#include "soc/touch_sensor_channel.h"
|
||||
|
||||
/* Store IO number corresponding to the Touch Sensor channel number. */
|
||||
/* Note: T14 is an internal channel that does not have a corresponding external GPIO. */
|
||||
|
Reference in New Issue
Block a user