|
GPS Device
|
STM32F401RE GPIO driver public API. More...


Go to the source code of this file.
Classes | |
| struct | GPIO_CFG_ts |
| Configuration structure for initializing a GPIO pin. More... | |
Macros | |
| #define | GPIO_NAME_LEN 5 |
| Length of the null-terminated GPIO port name string (e.g. "GPIOA"). | |
Functions | |
| void | gpio_init (GPIO_CFG_ts *gpio_cfg) |
| Initializes a GPIO pin according to the given configuration. | |
| void | gpio_deinit (GPIO_REGDEF_ts const *gpio_port) |
| Deinitializes a GPIO port by resetting its registers to reset values. | |
| void | gpio_write (GPIO_REGDEF_ts *gpio_port, uint8_t gpio_pin, PIN_STATUS_te pin_status) |
| Drives a GPIO output pin high or low. | |
| PIN_STATUS_te | gpio_read (GPIO_REGDEF_ts const *gpio_port, uint8_t gpio_pin) |
| Reads the current logic level of a GPIO input pin. | |
| void | gpio_clear_interrupt (EXTI_LINES_te exti_line) |
| Clears the EXTI pending flag for the given interrupt line. | |
| void | gpio_get_name (GPIO_REGDEF_ts const *gpio_port, char *name) |
| Returns the name string of a GPIO port (e.g. "GPIOA"). | |
STM32F401RE GPIO driver public API.
This module provides a software interface to the STM32F401RE GPIO peripheral, supporting the following pin modes:
The peripheral clock is enabled automatically during gpio_init and disabled during gpio_deinit.
Definition in file stm32f401re_gpio.h.