Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
main_chibios.c File Reference
#include "mcu_periph/sys_time.h"
#include "mcu.h"
#include <ch.h>
+ Include dependency graph for main_chibios.c:

Go to the source code of this file.

Macros

#define Fbw(f)
 
#define Ap(f)
 
#define AP_THREAD_STACK_SIZE   8192
 
#define FBW_THREAD_STACK_SIZE   1024
 

Functions

static void thd_ap (void *arg)
 
static THD_WORKING_AREA (wa_thd_ap, AP_THREAD_STACK_SIZE)
 
static void thd_fbw (void *arg)
 
static THD_WORKING_AREA (wa_thd_fbw, FBW_THREAD_STACK_SIZE)
 
int main (void)
 Main function. More...
 
void pprz_terminate_autopilot_threads (void)
 Terminate all autopilot threads Wait until proper stop. More...
 

Variables

static thread_t * apThdPtr = NULL
 
static thread_t * fbwThdPtr = NULL
 

Macro Definition Documentation

◆ Ap

#define Ap (   f)

Definition at line 49 of file main_chibios.c.

◆ AP_THREAD_STACK_SIZE

#define AP_THREAD_STACK_SIZE   8192

Definition at line 60 of file main_chibios.c.

◆ Fbw

#define Fbw (   f)

Definition at line 42 of file main_chibios.c.

◆ FBW_THREAD_STACK_SIZE

#define FBW_THREAD_STACK_SIZE   1024

Definition at line 74 of file main_chibios.c.

Function Documentation

◆ main()

int main ( void  )

Main function.

Definition at line 87 of file main_chibios.c.

References Ap, apThdPtr, downlink_init(), Fbw, fbwThdPtr, init, thd_ap(), and thd_fbw().

+ Here is the call graph for this function:

◆ pprz_terminate_autopilot_threads()

void pprz_terminate_autopilot_threads ( void  )

Terminate all autopilot threads Wait until proper stop.

Definition at line 178 of file main_chibios.c.

Referenced by thdUsbStorage().

+ Here is the caller graph for this function:

◆ thd_ap()

static void thd_ap ( void *  arg)
static

Definition at line 127 of file main_chibios.c.

References Ap, CH_CFG_ST_FREQUENCY, and handle_periodic_tasks().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ thd_fbw()

static void thd_fbw ( void *  arg)
static

Definition at line 153 of file main_chibios.c.

References CH_CFG_ST_FREQUENCY, Fbw, and handle_periodic_tasks().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ THD_WORKING_AREA() [1/2]

static THD_WORKING_AREA ( wa_thd_ap  ,
AP_THREAD_STACK_SIZE   
)
static

◆ THD_WORKING_AREA() [2/2]

static THD_WORKING_AREA ( wa_thd_fbw  ,
FBW_THREAD_STACK_SIZE   
)
static

Variable Documentation

◆ apThdPtr

thread_t* apThdPtr = NULL
static

Definition at line 68 of file main_chibios.c.

Referenced by main(), and pprz_terminate_autopilot_threads().

◆ fbwThdPtr

thread_t* fbwThdPtr = NULL
static

Definition at line 82 of file main_chibios.c.

Referenced by main(), and pprz_terminate_autopilot_threads().