// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef DRIVER_TOUCH_PAD_H #define DRIVER_TOUCH_PAD_H #ifdef __cplusplus extern "C" { #endif #include "esp_intr.h" #include "esp_err.h" #include "esp_intr_alloc.h" #include "soc/touch_channel.h" typedef enum { TOUCH_PAD_NUM0 = 0, /*!< Touch pad channel 0 is GPIO4 */ TOUCH_PAD_NUM1, /*!< Touch pad channel 1 is GPIO0 */ TOUCH_PAD_NUM2, /*!< Touch pad channel 2 is GPIO2 */ TOUCH_PAD_NUM3, /*!< Touch pad channel 3 is GPIO15*/ TOUCH_PAD_NUM4, /*!< Touch pad channel 4 is GPIO13*/ TOUCH_PAD_NUM5, /*!< Touch pad channel 5 is GPIO12*/ TOUCH_PAD_NUM6, /*!< Touch pad channel 6 is GPIO14*/ TOUCH_PAD_NUM7, /*!< Touch pad channel 7 is GPIO27*/ TOUCH_PAD_NUM8, /*!< Touch pad channel 8 is GPIO33*/ TOUCH_PAD_NUM9, /*!< Touch pad channel 9 is GPIO32*/ TOUCH_PAD_MAX, } touch_pad_t; typedef enum { TOUCH_HVOLT_KEEP = -1, /*!