Paparazzi UAS  v5.15_devel-79-g48e7b20
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mcu_arch.h File Reference

Microcontroller initialization function for ChibiOS. More...

#include "std.h"
#include <ch.h>
+ Include dependency graph for mcu_arch.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...
 

Detailed Description

Microcontroller initialization function for ChibiOS.

Definition in file mcu_arch.h.

Macro Definition Documentation

#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().

Function Documentation

void mcu_arch_init ( void  )

Definition at line 109 of file mcu_arch.c.

static void mcu_deep_sleep ( void  )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void mcu_reset ( void  )
inlinestatic

Request a software reset of the MCU.

Definition at line 86 of file mcu_arch.h.

Referenced by thdUsbStorage().

+ Here is the caller graph for this function: