|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Microcontroller initialization function for ChibiOS. More...
#include <string.h>#include "ch.h"#include "hal.h"#include "mcu.h"#include "mcu_periph/ram_arch.h"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. | |
| void | mcu_arch_init (void) |
| Initialize the specific archittecture functions. | |
| void | mcu_reboot (enum reboot_state_t reboot_state) |
| Reboot the MCU. | |
| void | mcu_energy_save (void) |
| Save energy for performing operations on shutdown Used for example to shutdown SD-card logging. | |
| uint8_t | mcu_get_uid (uint8_t *uid, uint8_t max_len) |
| Get the 96-bit unique device ID of the STM32. | |
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 140 of file mcu_arch.c.
| void mcu_arch_init | ( | void | ) |
Initialize the specific archittecture functions.
Definition at line 157 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 273 of file mcu_arch.c.
Referenced by mcu_reboot().