From bd1e1fab1a9491fdb2aca677cdbb0c241e90e160 Mon Sep 17 00:00:00 2001 From: Mateusz Date: Sat, 30 Mar 2024 17:04:34 +0100 Subject: [PATCH] C3: Fix the number of GPIO pins (#1361) * C3: Fix the number of GPIO pins * update changelog --- esp-hal/CHANGELOG.md | 1 + esp-hal/src/soc/esp32c3/gpio.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/esp-hal/CHANGELOG.md b/esp-hal/CHANGELOG.md index 1e84ebcdd..c24e56de1 100644 --- a/esp-hal/CHANGELOG.md +++ b/esp-hal/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed `LCD_CAM I8080` driver potentially sending garbage to display (#1301) - The TWAI driver can now be used without requiring the `embedded-hal` traits (#1355) - USB pullup/pulldown now gets properly cleared and does not interfere anymore on esp32c3 and esp32s3 (#1244) +- Fixed number of GPIO pins in C3 (#1361) ### Changed diff --git a/esp-hal/src/soc/esp32c3/gpio.rs b/esp-hal/src/soc/esp32c3/gpio.rs index 401e0aba6..7a107fbcc 100644 --- a/esp-hal/src/soc/esp32c3/gpio.rs +++ b/esp-hal/src/soc/esp32c3/gpio.rs @@ -51,7 +51,7 @@ use crate::{ peripherals::GPIO, }; -pub const NUM_PINS: usize = 21; +pub const NUM_PINS: usize = 22; pub(crate) const FUNC_IN_SEL_OFFSET: usize = 0;