• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 Espressif Systems (Shanghai) PTE LTD
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef _SOC_TOUCH_CHANNEL_H
16 #define _SOC_TOUCH_CHANNEL_H
17 
18 //Touch channels
19 #define TOUCH_PAD_GPIO4_CHANNEL     TOUCH_PAD_NUM0
20 #define TOUCH_PAD_NUM0_GPIO_NUM     4
21 
22 #define TOUCH_PAD_GPIO0_CHANNEL     TOUCH_PAD_NUM1
23 #define TOUCH_PAD_NUM1_GPIO_NUM     0
24 
25 #define TOUCH_PAD_GPIO2_CHANNEL     TOUCH_PAD_NUM2
26 #define TOUCH_PAD_NUM2_GPIO_NUM     2
27 
28 #define TOUCH_PAD_GPIO15_CHANNEL    TOUCH_PAD_NUM3
29 #define TOUCH_PAD_NUM3_GPIO_NUM     15
30 
31 #define TOUCH_PAD_GPIO13_CHANNEL    TOUCH_PAD_NUM4
32 #define TOUCH_PAD_NUM4_GPIO_NUM     13
33 
34 #define TOUCH_PAD_GPIO12_CHANNEL    TOUCH_PAD_NUM5
35 #define TOUCH_PAD_NUM5_GPIO_NUM     12
36 
37 #define TOUCH_PAD_GPIO14_CHANNEL    TOUCH_PAD_NUM6
38 #define TOUCH_PAD_NUM6_GPIO_NUM     14
39 
40 #define TOUCH_PAD_GPIO27_CHANNEL    TOUCH_PAD_NUM7
41 #define TOUCH_PAD_NUM7_GPIO_NUM     27
42 
43 #define TOUCH_PAD_GPIO33_CHANNEL    TOUCH_PAD_NUM8
44 #define TOUCH_PAD_NUM8_GPIO_NUM     33
45 
46 #define TOUCH_PAD_GPIO32_CHANNEL    TOUCH_PAD_NUM9
47 #define TOUCH_PAD_NUM9_GPIO_NUM     32
48 
49 #endif
50