gpio: stm32: introduce alternative function config
STM32F4 requires the alternative function config to be set, so just initialize that as part of the gpio configure call. Change-Id: I33a4a8efec59c5ebe7dc3f3580f0dd2bf7ded7f4 Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
This commit is contained in:
parent
3bdc77ee09
commit
a9f2061dfb
4 changed files with 8 additions and 6 deletions
|
@ -107,7 +107,7 @@ int stm32_gpio_flags_to_conf(int flags, int *pincfg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int stm32_gpio_configure(uint32_t *base_addr, int pin, int conf)
|
||||
int stm32_gpio_configure(uint32_t *base_addr, int pin, int conf, int altf)
|
||||
{
|
||||
volatile struct stm32f10x_gpio *gpio =
|
||||
(struct stm32f10x_gpio *)(base_addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue