From f6e69b06d032c17433a77ccf5fa27be16650c7bc Mon Sep 17 00:00:00 2001 From: Fan Jiang Date: Fri, 16 Aug 2024 08:39:20 -0400 Subject: [PATCH] Fix GPIO Touch pin I/O (#1956) --- esp-hal/CHANGELOG.md | 2 +- esp-hal/src/gpio/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esp-hal/CHANGELOG.md b/esp-hal/CHANGELOG.md index b6e4213e8cb..101599b10cd 100644 --- a/esp-hal/CHANGELOG.md +++ b/esp-hal/CHANGELOG.md @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added new `Io::new_no_bind_interrupt` constructor (#1861) -- Added touch pad support for esp32 (#1873) +- Added touch pad support for esp32 (#1873, #1956) - Allow configuration of period updating method for MCPWM timers (#1898) - Add self-testing mode for TWAI peripheral. (#1929) - Added a `PeripheralClockControl::reset` to the driver constructors where missing (#1893) diff --git a/esp-hal/src/gpio/mod.rs b/esp-hal/src/gpio/mod.rs index 01861176bf0..14465ea4a93 100644 --- a/esp-hal/src/gpio/mod.rs +++ b/esp-hal/src/gpio/mod.rs @@ -1423,7 +1423,7 @@ macro_rules! gpio { procmacros::make_gpio_enum_dispatch_macro!( handle_gpio_output - { InputOutputAnalog, InputOutput, } + { InputOutputAnalogTouch, InputOutputAnalog, InputOutput, } { $( $type,$gpionum @@ -1433,7 +1433,7 @@ macro_rules! gpio { procmacros::make_gpio_enum_dispatch_macro!( handle_gpio_input - { InputOutputAnalog, InputOutput, InputOnlyAnalog } + { InputOutputAnalogTouch, InputOutputAnalog, InputOutput, InputOnlyAnalog } { $( $type,$gpionum