gpio_stm32.c File Reference
STM32 GPIO control interface. More...
#include "gpio_stm32.h"#include <io/stm32.h>#include <cfg/compiler.h>#include <cfg/debug.h>Go to the source code of this file.
Functions | |
| int | stm32_gpioPinConfig (struct stm32_gpio *base, uint16_t pins, uint8_t mode, uint8_t speed) |
| Configure a GPIO pin. | |
Detailed Description
STM32 GPIO control interface.
Definition in file gpio_stm32.c.
Function Documentation
| int stm32_gpioPinConfig | ( | struct stm32_gpio * | base, | |
| uint16_t | pins, | |||
| uint8_t | mode, | |||
| uint8_t | speed | |||
| ) |
Configure a GPIO pin.
Initialize a GPIO peripheral configuration.
- Parameters:
-
base Base address of the GPIO port pins Bit-packed representation of the pin(s) mode Pin(s) configuration mode speed Output drive speed
Return 0 on success, otherwise a negative value.
Definition at line 56 of file gpio_stm32.c.
