touch_sensor_periph.c 786 B

123456789101112131415161718192021222324252627
  1. /*
  2. * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include "soc/touch_sensor_periph.h"
  7. /* Store IO number corresponding to the Touch Sensor channel number. */
  8. /* Note: T0 is an internal channel that does not have a corresponding external GPIO. */
  9. const int touch_sensor_channel_io_map[] = {
  10. -1,
  11. TOUCH_PAD_NUM1_GPIO_NUM,
  12. TOUCH_PAD_NUM2_GPIO_NUM,
  13. TOUCH_PAD_NUM3_GPIO_NUM,
  14. TOUCH_PAD_NUM4_GPIO_NUM,
  15. TOUCH_PAD_NUM5_GPIO_NUM,
  16. TOUCH_PAD_NUM6_GPIO_NUM,
  17. TOUCH_PAD_NUM7_GPIO_NUM,
  18. TOUCH_PAD_NUM8_GPIO_NUM,
  19. TOUCH_PAD_NUM9_GPIO_NUM,
  20. TOUCH_PAD_NUM10_GPIO_NUM,
  21. TOUCH_PAD_NUM11_GPIO_NUM,
  22. TOUCH_PAD_NUM12_GPIO_NUM,
  23. TOUCH_PAD_NUM13_GPIO_NUM,
  24. TOUCH_PAD_NUM14_GPIO_NUM
  25. };