Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
main_demo5.c File Reference
#include "std.h"
#include "mcu.h"
#include "mcu_periph/sys_time.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
#include "generated/settings.h"
+ Include dependency graph for main_demo5.c:

Go to the source code of this file.

Macros

#define MSG_SIZE   256
 
#define IdOfMsg(x)   (x[1])
 

Functions

static void main_init (void)
 
static void main_periodic_task (void)
 
static void main_event_task (void)
 
static void main_dl_parse_msg (void)
 
int main (void)
 

Variables

uint16_t foo
 
bool dl_msg_available
 
uint8_t dl_buffer [MSG_SIZE]
 

Macro Definition Documentation

#define IdOfMsg (   x)    (x[1])

Definition at line 68 of file main_demo5.c.

Referenced by main_dl_parse_msg().

#define MSG_SIZE   256

Definition at line 63 of file main_demo5.c.

Referenced by set_datalink_message().

Function Documentation

int main ( void  )

Definition at line 16 of file main_demo5.c.

References main_event_task(), main_init(), main_periodic_task(), and sys_time_check_and_ack_timer().

+ Here is the call graph for this function:

static void main_dl_parse_msg ( void  )
inlinestatic

Definition at line 70 of file main_demo5.c.

References dl_buffer, and IdOfMsg.

Referenced by main_event_task().

+ Here is the caller graph for this function:

static void main_event_task ( void  )
inlinestatic

Definition at line 43 of file main_demo5.c.

References dl_msg_available, LED_TOGGLE, and main_dl_parse_msg().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void main_init ( void  )
inlinestatic

Definition at line 28 of file main_demo5.c.

References mcu_init(), mcu_int_enable, and sys_time_register_timer().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void main_periodic_task ( void  )
inlinestatic

Definition at line 36 of file main_demo5.c.

References sys_time::nb_sec.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation