Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gpio_arch.h File Reference

GPIO helper functions for STM32F1 and STM32F4. More...

#include <libopencm3/stm32/gpio.h>
+ Include dependency graph for gpio_arch.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void gpio_output_high (uint32_t port, uint16_t pin)
 Set a gpio output to high level. More...
 
static void gpio_output_low (uint32_t port, uint16_t pin)
 Clear a gpio output to low level. More...
 
void gpio_setup_pin_af (uint32_t port, uint16_t pin, uint8_t af, bool_t is_output)
 Setup a gpio for input or output with alternate function. More...
 
void gpio_enable_clock (uint32_t port)
 

Detailed Description

GPIO helper functions for STM32F1 and STM32F4.

Definition in file gpio_arch.h.

Function Documentation

void gpio_enable_clock ( uint32_t  port)

Referenced by ppm_arch_init(), radio_control_spektrum_try_bind(), and SpektrumUartInit().

+ Here is the caller graph for this function:

static void gpio_output_high ( uint32_t  port,
uint16_t  pin 
)
inlinestatic

Set a gpio output to high level.

Definition at line 37 of file gpio_arch.h.

References gpio_set().

+ Here is the call graph for this function:

static void gpio_output_low ( uint32_t  port,
uint16_t  pin 
)
inlinestatic

Clear a gpio output to low level.

Definition at line 44 of file gpio_arch.h.

void gpio_setup_pin_af ( uint32_t  port,
uint16_t  pin,
uint8_t  af,
bool_t  is_output 
)

Setup a gpio for input or output with alternate function.

Referenced by ppm_arch_init(), and SpektrumUartInit().

+ Here is the caller graph for this function: