Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
MCU Peripherals
+ Collaboration diagram for MCU Peripherals:

Modules

 I2C Interface
 
 SPI Interface
 

Functions

void mcu_init (void)
 Microcontroller peripherals initialization. More...
 
void mcu_event (void)
 MCU event functions. More...
 
void board_init (void)
 Optional board init function called at the start of mcu_init(). More...
 
void board_init2 (void)
 Optional board init function called at the end of mcu_init(). More...
 

Detailed Description

Function Documentation

void board_init ( void  )

Optional board init function called at the start of mcu_init().

Definition at line 130 of file board.c.

References kill_gracefull(), and KillGracefully().

Referenced by mcu_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mcu_event ( void  )

MCU event functions.

Calls the event functions of used peripherals like i2c, uart, etc.

Definition at line 217 of file mcu.c.

References i2c_event(), and VCOM_event().

Referenced by event_task_ap(), event_task_fbw(), main_event(), and main_event_task().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mcu_init ( void  )

Microcontroller peripherals initialization.

This function is responisble for setting up the microcontroller after Reset.

Definition at line 76 of file mcu.c.

References adc_init(), board_init(), board_init2(), BTN_ON, BTN_ON_PIN, dac_init(), gpio_get(), gpio_setup_output(), led_init(), mcu_arch_init(), MCU_PWR, MCU_PWR_ON, MCU_PWR_PIN, RADIO_CONTROL_POWER, RADIO_CONTROL_POWER_ON, RADIO_CONTROL_POWER_PIN, spi0_init(), spi1_init(), spi2_init(), spi_init_slaves(), spi_slave_hs_init(), sys_time_init(), uart_arch_init(), udp_arch_init(), and VCOM_init().

Referenced by init_fbw(), main(), and main_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: