![]() |
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Modules | |
I2C Interface | |
SPI Interface | |
Enumerations | |
enum | reboot_state_t { MCU_REBOOT_NORMAL , MCU_REBOOT_POWEROFF , MCU_REBOOT_FAST , MCU_REBOOT_BOOTLOADER } |
The requested reboot states. More... | |
Functions | |
void | mcu_init (void) |
Microcontroller peripherals initialization. | |
void | mcu_event (void) |
MCU event functions. | |
void | mcu_reboot (enum reboot_state_t reboot_state) |
Reboot the MCU Should not be called during flight or ciritcal operations. | |
void | mcu_energy_save (void) |
Puts the MCU in energy save mode This disables features of the MCU to save energy. | |
void | board_init (void) |
Optional board init function called at the start of mcu_init(). | |
void | board_init2 (void) |
Optional board init function called at the end of mcu_init(). | |
Optional board init function called at the start of mcu_init().
Definition at line 130 of file board.c.
References foo, kill_gracefull(), and KillGracefully().
Referenced by mcu_init().
Optional board init function called at the end of mcu_init().
Definition at line 92 of file board.c.
Referenced by mcu_init().
Puts the MCU in energy save mode This disables features of the MCU to save energy.
This is used for example to quickly write to the SD card while powering off.
Puts the MCU in energy save mode This disables features of the MCU to save energy.
Definition at line 230 of file mcu_arch.c.
References BOARD_GROUP_DECLFOREACH, ENERGY_SAVE_INPUTS, ENERGY_SAVE_LOWS, and foo.
MCU event functions.
Calls the event functions of used peripherals like i2c, uart, etc.
Definition at line 276 of file mcu.c.
References i2c_event(), softi2c_event(), and VCOM_event().
Referenced by main_event(), and main_event_task().
Microcontroller peripherals initialization.
This function is responisble for setting up the microcontroller after Reset.
Definition at line 101 of file mcu.c.
References adc_init(), board_init(), board_init2(), BTN_ON, BTN_ON_PIN, can_init(), dac_init(), foo, gpio_get(), gpio_setup_input(), gpio_setup_output(), led_init(), mcu_arch_init(), MCU_PWR, MCU_PWR_OFF, MCU_PWR_ON, MCU_PWR_PIN, PERIPHERAL3V3_ENABLE_ON, PERIPHERAL3V3_ENABLE_PIN, PERIPHERAL3V3_ENABLE_PORT, RADIO_CONTROL_POWER_ON, RADIO_CONTROL_POWER_PIN, RADIO_CONTROL_POWER_PORT, rng_init(), spi0_init(), spi1_init(), spi2_init(), spi_init_slaves(), sys_time_init(), uart_arch_init(), udp_arch_init(), and VCOM_init().
Referenced by main(), main_init(), main_init(), main_init(), main_init(), main_init(), main_init(), and main_init().
|
extern |
Reboot the MCU Should not be called during flight or ciritcal operations.
state | The state to reboot towards |
Reboot the MCU Should not be called during flight or ciritcal operations.
reboot_state | The sate to reboot to |
Definition at line 206 of file mcu_arch.c.
References foo, mcu_deep_sleep(), MCU_REBOOT_BOOTLOADER, MCU_REBOOT_FAST, MCU_REBOOT_POWEROFF, RTC_BOOT_FAST, and RTC_BOOT_HOLD.
Referenced by px4flash_event(), and thdUsbStorage().