Skip to content

Commit

Permalink
fix(PeriphDrivers): Add GPIO Drive Strength Configuration for ME14 (#…
Browse files Browse the repository at this point in the history
…1223)

Signed-off-by: Mert Ekren <[email protected]>
  • Loading branch information
mertekren authored Oct 17, 2024
1 parent b0219d3 commit 3bdf514
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Libraries/PeriphDrivers/Source/GPIO/gpio_me14.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

/* ************************************************************************** */
Expand Down

0 comments on commit 3bdf514

Please sign in to comment.