Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures 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 "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   128
 
#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_t dl_msg_available
 
uint8_t dl_buffer [MSG_SIZE]
 

Macro Definition Documentation

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

Definition at line 63 of file main_demo5.c.

Referenced by main_dl_parse_msg().

#define MSG_SIZE   128

Definition at line 58 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 65 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 39 of file main_demo5.c.

References dl_msg_available, FALSE, LED_TOGGLE, main_dl_parse_msg(), pprz_parse_payload(), PprzBuffer, and ReadPprzBuffer.

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 26 of file main_demo5.c.

References mcu_init(), mcu_int_enable, PERIODIC_FREQUENCY, 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 33 of file main_demo5.c.

References sys_time::nb_sec.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation