Skip to content

Commit

Permalink
fix(PeriphDrivers): Add Strength Configuration for ME14
Browse files Browse the repository at this point in the history
This commit add strength selection for output mode

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
  • Loading branch information
mertekren committed Oct 10, 2024
1 parent 8ece572 commit 3646511
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 3646511

Please sign in to comment.