23 #include "stm32_gpio.h"
54 #if STM32_HAS_GPIOA || defined(__DOXYGEN__)
57 #if STM32_HAS_GPIOB || defined(__DOXYGEN__)
60 #if STM32_HAS_GPIOC || defined(__DOXYGEN__)
63 #if STM32_HAS_GPIOD || defined(__DOXYGEN__)
66 #if STM32_HAS_GPIOE || defined(__DOXYGEN__)
69 #if STM32_HAS_GPIOF || defined(__DOXYGEN__)
72 #if STM32_HAS_GPIOG || defined(__DOXYGEN__)
75 #if STM32_HAS_GPIOH || defined(__DOXYGEN__)
78 #if STM32_HAS_GPIOI || defined(__DOXYGEN__)
81 #if STM32_HAS_GPIOJ || defined(__DOXYGEN__)
84 #if STM32_HAS_GPIOK || defined(__DOXYGEN__)
145 gpiop->OTYPER = config->
otyper;
146 gpiop->OSPEEDR = config->
ospeedr;
147 gpiop->PUPDR = config->
pupdr;
148 gpiop->ODR = config->
odr;
149 gpiop->AFRL = config->
afrl;
150 gpiop->AFRH = config->
afrh;
151 gpiop->MODER = config->
moder;
158 rccResetAHB1(STM32_GPIO_EN_MASK);
159 rccEnableAHB1(STM32_GPIO_EN_MASK,
true);
187 gpio_init(GPIOI, &gpio_default_config.PIData);
190 gpio_init(GPIOJ, &gpio_default_config.PJData);
193 gpio_init(GPIOK, &gpio_default_config.PKData);
216 #if HAL_USE_SDC || defined(__DOXYGEN__)
220 bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
228 bool sdc_lld_is_write_protected(SDCDriver *sdcp) {
235 #if HAL_USE_MMC_SPI || defined(__DOXYGEN__)
239 bool mmc_lld_is_card_inserted(MMCDriver *mmcp) {
249 bool mmc_lld_is_write_protected(MMCDriver *mmcp) {
void __early_init(void)
Early initialization code.
#define VAL_GPIOA_OSPEEDR
#define VAL_GPIOJ_OSPEEDR
#define VAL_GPIOC_OSPEEDR
#define VAL_GPIOG_OSPEEDR
Type of STM32 GPIO port setup.
#define VAL_GPIOB_OSPEEDR
#define VAL_GPIOE_OSPEEDR
#define VAL_GPIOK_OSPEEDR
#define VAL_GPIOI_OSPEEDR
#define VAL_GPIOD_OSPEEDR
static const gpio_config_t gpio_default_config
STM32 GPIO static initialization data.
static const struct usb_config_descriptor config
void boardInit(void)
Board-specific initialization code.
#define VAL_GPIOH_OSPEEDR
Type of STM32 GPIO initialization data.
static void stm32_gpio_init(void)
static void gpio_init(stm32_gpio_t *gpiop, const gpio_setup_t *config)
#define VAL_GPIOF_OSPEEDR