diff options
Diffstat (limited to 'ports/esp32/machine_touchpad.c')
| -rw-r--r-- | ports/esp32/machine_touchpad.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ports/esp32/machine_touchpad.c b/ports/esp32/machine_touchpad.c index 44efac375..335157b15 100644 --- a/ports/esp32/machine_touchpad.c +++ b/ports/esp32/machine_touchpad.c @@ -24,18 +24,15 @@ * THE SOFTWARE. */ +#include "py/runtime.h" +#include "py/mphal.h" +#include "modmachine.h" -#include <stdio.h> - -#include "esp_log.h" +#if CONFIG_IDF_TARGET_ESP32 #include "driver/gpio.h" #include "driver/touch_pad.h" -#include "py/runtime.h" -#include "py/mphal.h" -#include "modmachine.h" - typedef struct _mtp_obj_t { mp_obj_base_t base; gpio_num_t gpio_id; @@ -120,3 +117,5 @@ const mp_obj_type_t machine_touchpad_type = { .make_new = mtp_make_new, .locals_dict = (mp_obj_t)&mtp_locals_dict, }; + +#endif // CONFIG_IDF_TARGET_ESP32 |
