Skip to content

Commit 67d4b0a

Browse files
mertekrenEricB-ADI
authored andcommitted
fix(PeriphDrivers): Add GPIO Drive Strength Configuration for ME14 (#1223)
Signed-off-by: Mert Ekren <[email protected]>
1 parent be12504 commit 67d4b0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Libraries/PeriphDrivers/Source/GPIO/gpio_me14.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ int MXC_GPIO_Config(const mxc_gpio_cfg_t *cfg)
133133
return E_BAD_PARAM;
134134
}
135135

136-
return E_NO_ERROR;
136+
// Configure the drive strength
137+
if (cfg->func == MXC_GPIO_FUNC_IN) {
138+
return E_NO_ERROR;
139+
} else {
140+
return MXC_GPIO_SetDriveStrength(gpio, cfg->drvstr, cfg->mask);
141+
}
137142
}
138143

139144
/* ************************************************************************** */

0 commit comments

Comments
 (0)