RTEMS 6.3
Loading...
Searching...
No Matches

IO Support. More...

Topics

 GPIO Support
 GPIO Support.

Files

file  bsps/arm/stm32f4/include/bsp/io.h
 IO support.

Macros

#define STM32F4_GPIO_PIN(port, index)
#define STM32F4_GPIO_PORT_OF_PIN(pin)
#define STM32F4_GPIO_INDEX_OF_PIN(pin)

Functions

void stm32f4_gpio_set_clock (int pin, bool set)
void stm32f4_gpio_set_config (const stm32f4_gpio_config *config)
void stm32f4_gpio_set_config_array (const stm32f4_gpio_config *configs)
 Sets the GPIO configuration of an array terminated by STM32F4_GPIO_CONFIG_TERMINAL.
void stm32f4_gpio_set_output (int pin, bool set)
bool stm32f4_gpio_get_input (int pin)

Variables

const stm32f4_gpio_config stm32f4_start_config_gpio []

Detailed Description

IO Support.

Macro Definition Documentation

◆ STM32F4_GPIO_INDEX_OF_PIN

#define STM32F4_GPIO_INDEX_OF_PIN ( pin)
Value:
((pin) & 0xf)

◆ STM32F4_GPIO_PIN

#define STM32F4_GPIO_PIN ( port,
index )
Value:
((((port) << 4) | (index)) & 0xff)

◆ STM32F4_GPIO_PORT_OF_PIN

#define STM32F4_GPIO_PORT_OF_PIN ( pin)
Value:
(((pin) >> 4) & 0xf)