Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
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... | |
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().
void board_init2 | ( | void | ) |
Optional board init function called at the end of mcu_init().
Definition at line 91 of file board.c.
References mt9f002_t::gain_blue, mt9f002_t::gain_green1, mt9f002_t::gain_green2, mt9f002_t::gain_red, mt9v117_t::i2c_periph, mt9f002_t::interface, mt9f002_init(), MT9F002_INITIAL_OFFSET_X, MT9F002_INITIAL_OFFSET_Y, MT9F002_OUTPUT_HEIGHT, MT9F002_OUTPUT_SCALER, MT9F002_OUTPUT_WIDTH, MT9F002_PARALLEL, MT9F002_TARGET_EXPOSURE, MT9F002_TARGET_FPS, mt9v117_init(), mt9f002_t::offset_x, mt9f002_t::offset_y, mt9f002_t::op_pix_clk_div, mt9f002_t::op_sys_clk_div, mt9f002_t::output_height, mt9f002_t::output_scaler, mt9f002_t::output_width, mt9f002_t::pll_multiplier, mt9f002_t::pre_pll_clk_div, mt9f002_t::row_speed_10_8, mt9f002_t::rowSpeed_2_0, mt9f002_t::shift_vt_pix_clk_div, mt9f002_t::target_exposure, mt9f002_t::target_fps, mt9f002_t::vt_pix_clk_div, and mt9f002_t::vt_sys_clk_div.
Referenced by mcu_init().
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().
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().