|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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;
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);
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) {
269 palSetLineMode(
LINE_LED1, PAL_MODE_INPUT);
270 palSetLineMode(
LINE_LED2, PAL_MODE_INPUT);
271 palSetLineMode(
LINE_LED3, PAL_MODE_INPUT);
272 palSetLineMode(
LINE_LED4, PAL_MODE_INPUT);
274 palSetLineMode(
LINE_AUX0, PAL_MODE_INPUT);
275 palSetLineMode(
LINE_AUX1, PAL_MODE_INPUT);
276 palSetLineMode(
LINE_AUX2, PAL_MODE_INPUT);
277 palSetLineMode(
LINE_AUX3, PAL_MODE_INPUT);
278 palSetLineMode(
LINE_AUX4, PAL_MODE_INPUT);
279 palSetLineMode(
LINE_AUX5, PAL_MODE_INPUT);
280 palSetLineMode(
LINE_AUX6, PAL_MODE_INPUT);
281 palSetLineMode(
LINE_AUX7, PAL_MODE_INPUT);
#define VAL_GPIOA_OSPEEDR
void boardInit(void)
Board-specific initialization code.
static void gpio_init(stm32_gpio_t *gpiop, const gpio_setup_t *config)
#define VAL_GPIOD_OSPEEDR
Type of STM32 GPIO initialization data.
#define VAL_GPIOE_OSPEEDR
#define VAL_GPIOK_OSPEEDR
#define VAL_GPIOI_OSPEEDR
#define VAL_GPIOJ_OSPEEDR
#define VAL_GPIOC_OSPEEDR
static const struct usb_config_descriptor config
#define VAL_GPIOG_OSPEEDR
#define VAL_GPIOH_OSPEEDR
#define VAL_GPIOB_OSPEEDR
static void stm32_gpio_init(void)
Type of STM32 GPIO port setup.
void mcu_periph_energy_save(void)
Energy saving procedure for SD log closing.
#define VAL_GPIOF_OSPEEDR
void __early_init(void)
Early initialization code.
static const gpio_config_t gpio_default_config
STM32 GPIO static initialization data.