Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
Microcontroller initialization function for ChibiOS. More...
#include "std.h"
#include <ch.h>
Go to the source code of this file.
Macros | |
#define | mcu_int_enable() {} |
#define | mcu_int_disable() {} |
Functions | |
void | mcu_arch_init (void) |
static void | mcu_deep_sleep (void) |
Put MCU into deep sleep mode. More... | |
static void | mcu_reset (void) |
Request a software reset of the MCU. More... | |
Microcontroller initialization function for ChibiOS.
Definition in file mcu_arch.h.
#define mcu_int_disable | ( | ) | {} |
Definition at line 37 of file mcu_arch.h.
Referenced by sys_time_update_timer().
#define mcu_int_enable | ( | ) | {} |
Definition at line 36 of file mcu_arch.h.
Referenced by init_ap(), init_fbw(), main(), main_init(), and sys_time_update_timer().
void mcu_arch_init | ( | void | ) |
Definition at line 109 of file mcu_arch.c.
|
inlinestatic |
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 55 of file mcu_arch.h.
References __disable_irq(), __enable_irq(), and SCB.
Referenced by thd_bat_survey().
|
inlinestatic |
Request a software reset of the MCU.
Definition at line 86 of file mcu_arch.h.
Referenced by thdUsbStorage().