File tree 2 files changed +10
-7
lines changed 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
#include "soc/soc_caps.h"
16
-
17
- #if !defined(SOC_TOUCH_VERSION_1 ) && !defined(SOC_TOUCH_VERSION_2 )
18
- #warning CONFIG_IDF_TARGET is not supported for Touch IDF driver!
19
- #endif
20
-
21
16
#if SOC_TOUCH_SENSOR_NUM > 0
17
+
22
18
#include "driver/touch_sensor.h"
23
19
#include "esp32-hal-touch.h"
24
20
21
+ #if !defined(SOC_TOUCH_VERSION_1 ) && !defined(SOC_TOUCH_VERSION_2 )
22
+ #error Touch IDF driver Not supported!
23
+ #endif
24
+
25
25
/*
26
26
Internal Private Touch Data Structure and Functions
27
27
*/
Original file line number Diff line number Diff line change @@ -25,9 +25,13 @@ extern "C" {
25
25
#endif
26
26
27
27
#include "soc/soc_caps.h"
28
+ #include "esp32-hal.h"
28
29
29
30
#if SOC_TOUCH_SENSOR_NUM > 0
30
- #include "esp32-hal.h"
31
+
32
+ #if !defined(CONFIG_IDF_TARGET_ESP32 ) && !defined(CONFIG_IDF_TARGET_ESP32S2 ) && !defined(CONFIG_IDF_TARGET_ESP32S3 )
33
+ #warning This SoC may not support the current Touch Sensor implementation!
34
+ #endif
31
35
32
36
#if SOC_TOUCH_VERSION_1 // ESP32
33
37
typedef uint16_t touch_value_t ;
@@ -84,7 +88,6 @@ void touchInterruptSetThresholdDirection(bool mustbeLower);
84
88
bool touchInterruptGetLastStatus (uint8_t pin );
85
89
#endif
86
90
87
-
88
91
#endif // SOC_TOUCH_SENSOR_NUM > 0
89
92
90
93
#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments