Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
chibios_init.c File Reference
#include <ch.h>
#include <hal.h>
#include "subsystems/chibios-libopencm3/chibios_sdlog.h"
#include "sdLog.h"
#include "usbStorage.h"
#include "pprz_stub.h"
#include "rtcAccess.h"
#include "generated/airframe.h"
#include "chibios_init.h"
+ Include dependency graph for chibios_init.c:

Go to the source code of this file.

Macros

#define SDLOG_START_DELAY   30
 
#define MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define ARRAY_LEN(a)   (sizeof(a)/sizeof(a[0]))
 

Functions

static msg_t thd_heartbeat (void *arg)
 
static WORKING_AREA (wa_thd_heartbeat, 2048)
 
void chibios_launch_heartbeat (void)
 
bool_t chibios_init (void)
 
static WORKING_AREA (pprzThd, 4096)
 
void launch_pprz_thd (int32_t(*thd)(void *arg))
 

Variables

Thread * pprzThdPtr = NULL
 
bool_t sdOk = FALSE
 

Macro Definition Documentation

#define ARRAY_LEN (   a)    (sizeof(a)/sizeof(a[0]))

Definition at line 53 of file chibios_init.c.

#define MAX (   x,
 
)    (((x) > (y)) ? (x) : (y))

Definition at line 52 of file chibios_init.c.

#define SDLOG_START_DELAY   30

Definition at line 39 of file chibios_init.c.

Referenced by thd_heartbeat().

Function Documentation

bool_t chibios_init ( void  )

Definition at line 66 of file chibios_init.c.

References thd_heartbeat().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void chibios_launch_heartbeat ( void  )
void launch_pprz_thd ( int32_t(*)(void *arg)  thd)

Definition at line 81 of file chibios_init.c.

Referenced by main().

+ Here is the caller graph for this function:

static msg_t thd_heartbeat ( void *  arg)
static

Definition at line 90 of file chibios_init.c.

References GPIOC, SDLOG_START_DELAY, and TRUE.

Referenced by chibios_init().

+ Here is the caller graph for this function:

static WORKING_AREA ( wa_thd_heartbeat  ,
2048   
)
static
static WORKING_AREA ( pprzThd  ,
4096   
)
static

Variable Documentation

Thread* pprzThdPtr = NULL

Definition at line 55 of file chibios_init.c.

bool_t sdOk = FALSE

Definition at line 59 of file chibios_init.c.