This is an automated email from the ASF dual-hosted git repository. sjanc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 8137aa126f5a927c78b54261dfcf841548a9fba5 Author: Wiktor Kwiatkowski <[email protected]> AuthorDate: Wed Apr 29 15:34:42 2026 +0200 hw/mcu/apollo2: Add hal_gpio_deinit Add missing GPIO deinit function --- hw/mcu/ambiq/apollo2/src/hal_gpio.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/mcu/ambiq/apollo2/src/hal_gpio.c b/hw/mcu/ambiq/apollo2/src/hal_gpio.c index 2e450827c..8f95c9887 100644 --- a/hw/mcu/ambiq/apollo2/src/hal_gpio.c +++ b/hw/mcu/ambiq/apollo2/src/hal_gpio.c @@ -95,6 +95,14 @@ hal_gpio_toggle(int pin) return (0); } +int +hal_gpio_deinit(int pin) +{ + am_hal_gpio_pin_config(pin, AM_HAL_PIN_DISABLE); + + return 0; +} + /* * GPIO irq handler *
