Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Microcontroller initialization function for ChibiOS. More...
Go to the source code of this file.
Enumerations | |
enum | rtc_boot_magic { RTC_BOOT_OFF = 0 , RTC_BOOT_HOLD = 0xb0070001 , RTC_BOOT_FAST = 0xb0070002 , RTC_BOOT_CANBL = 0xb0080000 , RTC_BOOT_FWOK = 0xb0093a26 } |
RTC backup register values. More... | |
Functions | |
static void | mcu_deep_sleep (void) |
Put MCU into deep sleep mode. More... | |
void | mcu_arch_init (void) |
Initialize the specific archittecture functions. More... | |
void | mcu_reboot (enum reboot_state_t reboot_state) |
Reboot the MCU. More... | |
void | mcu_energy_save (void) |
Save energy for performing operations on shutdown Used for example to shutdown SD-card logging. More... | |
Microcontroller initialization function for ChibiOS.
ChibiOS initialized peripherals by itself, only interrupt vector has to be relocated for Luftboot
Definition in file mcu_arch.c.
enum rtc_boot_magic |
RTC backup register values.
Definition at line 138 of file mcu_arch.c.
void mcu_arch_init | ( | void | ) |
Initialize the specific archittecture functions.
Definition at line 155 of file mcu_arch.c.
Referenced by mcu_init().
|
static |
Put MCU into deep sleep mode.
This can be used when closing the SD log files right after a power down to save the remaining energy for the SD card internal MCU
Never call this during flight!
Definition at line 252 of file mcu_arch.c.
References __disable_irq(), and __enable_irq().
Referenced by mcu_reboot().