How does TOUCH_PAD_SELX Map into the GPIO_SEL_X in esp-adf?

mkseven32
Posts: 32
Joined: Mon Apr 23, 2018 1:21 am

How does TOUCH_PAD_SELX Map into the GPIO_SEL_X in esp-adf?

Postby mkseven32 » Tue May 15, 2018 6:37 am

Hi all
As esp-adf using a new framwork to develop, and Touch Peripheral init is like below :

Code: Select all

    periph_touch_cfg_t touch_cfg = {
        .touch_mask = TOUCH_PAD_SEL4 | TOUCH_PAD_SEL7 | TOUCH_PAD_SEL8 | TOUCH_PAD_SEL9,
        .tap_threshold_percent = 70,
    };
    esp_periph_handle_t touch_periph = periph_touch_init(&touch_cfg);

refer to the esp32_lyrat broad HDK,those touch pad are connect to GPIO33,GPIO32,GPIO13,GPIO27

Why does it mapping like below?
TOUCH_PAD_SEL4 ========>GPIO33 ???????
TOUCH_PAD_SEL7 ========>GPIO32 ???????
TOUCH_PAD_SEL8 ========>GPIO13 ???????
TOUCH_PAD_SEL9 ========>GPIO27 ???????

and this make me confused how does TOUCH_PAD_SELX Map into the GPIO_SEL_X ?
if we using different Hardware design, how to config touch pad about TOUCH_PAD_SELX mapping?

BR!!
Attachments
1.png
1.png (23.37 KiB) Viewed 5758 times

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: How does TOUCH_PAD_SELX Map into the GPIO_SEL_X in esp-adf?

Postby WiFive » Tue May 15, 2018 7:05 am

Image

mkseven32
Posts: 32
Joined: Mon Apr 23, 2018 1:21 am

Re: How does TOUCH_PAD_SELX Map into the GPIO_SEL_X in esp-adf?

Postby mkseven32 » Tue May 15, 2018 7:21 am

thanks !

Who is online

Users browsing this forum: No registered users and 27 guests