|
GPS Device
|
Functions | |
| static void | gpio_set_pclk (GPIO_REGDEF_ts const *gpio_port, EN_STATUS_te en_status) |
| Enables or disables the peripheral clock for a GPIO port. | |
| static PORT_CODES_ts | get_syscfg_code (GPIO_REGDEF_ts const *gpio_port) |
| Returns the SYSCFG port code for a GPIO port instance. | |
| static uint8_t | get_exti_position (GPIO_CFG_ts const *gpio_cfg) |
| Returns the IRQ number for the EXTI line corresponding to a GPIO pin. | |
|
static |
Enables or disables the peripheral clock for a GPIO port.
Calls the appropriate RCC AHB1 clock enable/disable function based on the port pointer. Called by gpio_init and gpio_deinit.
| [in] | gpio_port | Pointer to the GPIO port instance. |
| [in] | en_status | ENABLE to enable the clock, DISABLE to disable it. |
Definition at line 188 of file stm32f401re_gpio.c.


|
static |
Returns the SYSCFG port code for a GPIO port instance.
The SYSCFG_EXTICRx registers use a 4-bit code to select which port is routed to a given EXTI line. This function maps port pointers to their corresponding PORT_CODES_ts values.
| [in] | gpio_port | Pointer to the GPIO port instance. |
Definition at line 221 of file stm32f401re_gpio.c.

|
static |
Returns the IRQ number for the EXTI line corresponding to a GPIO pin.
Maps GPIO pin numbers to NVIC IRQ numbers as defined by the STM32F401RE vector table:
| [in] | gpio_cfg | Pointer to the GPIO configuration structure. |
Definition at line 244 of file stm32f401re_gpio.c.
