From a9e140097194a4298e052fa37fe662c1e34b7a0c Mon Sep 17 00:00:00 2001 From: Mert Ekren Date: Thu, 10 Oct 2024 21:19:09 +0300 Subject: [PATCH] fix(PeriphDrivers): Add Strength Configuration for ME14 This commit add strength selection for output mode Signed-off-by: Mert Ekren --- Libraries/PeriphDrivers/Source/GPIO/gpio_me14.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Libraries/PeriphDrivers/Source/GPIO/gpio_me14.c b/Libraries/PeriphDrivers/Source/GPIO/gpio_me14.c index 8caa986ae4d..38e489f1c1f 100644 --- a/Libraries/PeriphDrivers/Source/GPIO/gpio_me14.c +++ b/Libraries/PeriphDrivers/Source/GPIO/gpio_me14.c @@ -133,7 +133,12 @@ int MXC_GPIO_Config(const mxc_gpio_cfg_t *cfg) return E_BAD_PARAM; } - return E_NO_ERROR; + // Configure the drive strength + if (cfg->func == MXC_GPIO_FUNC_IN) { + return E_NO_ERROR; + } else { + return MXC_GPIO_SetDriveStrength(gpio, cfg->drvstr, cfg->mask); + } } /* ************************************************************************** */