Paparazzi UAS  v5.15_devel-99-g2ff7410
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
board.c File Reference
#include "hal.h"
#include "stm32_gpio.h"
+ Include dependency graph for board.c:

Go to the source code of this file.

Data Structures

struct  gpio_setup_t
 Type of STM32 GPIO port setup. More...
 
struct  gpio_config_t
 Type of STM32 GPIO initialization data. More...
 

Functions

static void gpio_init (stm32_gpio_t *gpiop, const gpio_setup_t *config)
 
static void stm32_gpio_init (void)
 
void __early_init (void)
 Early initialization code. More...
 
void boardInit (void)
 Board-specific initialization code. More...
 

Variables

static const gpio_config_t gpio_default_config
 STM32 GPIO static initialization data. More...
 

Data Structure Documentation

struct gpio_setup_t

Type of STM32 GPIO port setup.

Definition at line 40 of file board.c.

Data Fields
uint32_t afrh
uint32_t afrl
uint32_t moder
uint32_t odr
uint32_t ospeedr
uint32_t otyper
uint32_t pupdr
struct gpio_config_t

Type of STM32 GPIO initialization data.

Definition at line 53 of file board.c.

Function Documentation

void __early_init ( void  )

Early initialization code.

GPIO ports and system clocks are initialized before everything else.

Definition at line 210 of file board.c.

References stm32_gpio_init().

+ Here is the call graph for this function:

void boardInit ( void  )

Board-specific initialization code.

SDIO.

Todo:
Add your board-specific code, if any.

Definition at line 263 of file board.c.

static void gpio_init ( stm32_gpio_t *  gpiop,
const gpio_setup_t config 
)
static

Definition at line 143 of file board.c.

References gpio_setup_t::afrh, gpio_setup_t::afrl, gpio_setup_t::moder, gpio_setup_t::odr, gpio_setup_t::ospeedr, gpio_setup_t::otyper, and gpio_setup_t::pupdr.

Referenced by stm32_gpio_init().

+ Here is the caller graph for this function:

static void stm32_gpio_init ( void  )
static

Definition at line 154 of file board.c.

References gpio_init(), GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, and GPIOH.

Referenced by __early_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const gpio_config_t gpio_default_config
static

STM32 GPIO static initialization data.

Definition at line 92 of file board.c.