Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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 "modules/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
 Flag provided to control calls to dl_parse_msg. More...
 
uint8_t dl_buffer [MSG_SIZE]
 

Macro Definition Documentation

◆ IdOfMsg

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

Definition at line 67 of file main_demo5.c.

◆ MSG_SIZE

#define MSG_SIZE   256

Definition at line 62 of file main_demo5.c.

Function Documentation

◆ main()

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:

◆ main_dl_parse_msg()

static void main_dl_parse_msg ( void  )
inlinestatic

Definition at line 69 of file main_demo5.c.

References dl_buffer, and IdOfMsg.

Referenced by main_event_task().

+ Here is the caller graph for this function:

◆ main_event_task()

static void main_event_task ( void  )
inlinestatic

Definition at line 42 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:

◆ main_init()

static void main_init ( void  )
inlinestatic

Definition at line 28 of file main_demo5.c.

References mcu_init(), and sys_time_register_timer().

Referenced by main().

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

◆ main_periodic_task()

static void main_periodic_task ( void  )
inlinestatic

Definition at line 35 of file main_demo5.c.

References sys_time::nb_sec.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation

◆ dl_buffer

◆ dl_msg_available

bool dl_msg_available

Flag provided to control calls to dl_parse_msg.

NOT used in this module

Definition at line 60 of file main_demo5.c.

Referenced by bluegiga_dl_event(), gec_dl_event(), main_event_task(), pprz_dl_event(), superbitrf_dl_event(), superbitrf_receive_packet_cb(), and xbee_dl_event().

◆ foo