Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
main.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 "subsystems/datalink/datalink.h"
#include "generated/settings.h"
#include "dl_protocol.h"
#include "mcu_periph/spi.h"
#include "sd_card.h"
+ Include dependency graph for main.c:

Go to the source code of this file.

Macros

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

Functions

static void main_init (void)
 
static void main_periodic_task (void)
 
static void main_event_task (void)
 
uint8_t dl_buffer[MSG_SIZE__attribute__ ((aligned))
 
int main (void)
 
void dl_parse_msg (void)
 

Variables

bool_t dl_msg_available
 
uint16_t datalink_time
 

Macro Definition Documentation

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

Definition at line 66 of file main.c.

Referenced by dl_parse_msg().

Function Documentation

uint8_t dl_buffer [MSG_SIZE] __attribute__ ( (aligned)  )
int main ( void  )
static void main_event_task ( void  )
inlinestatic

Definition at line 53 of file main.c.

References DatalinkEvent, FALSE, sd_card_event(), and spi_message_received.

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 36 of file main.c.

References led_init(), mcu_init(), mcu_int_enable, PERIODIC_FREQUENCY, sd_card_init(), spi_init(), and sys_time_register_timer().

+ Here is the call graph for this function:

static void main_periodic_task ( void  )
inlinestatic

Definition at line 48 of file main.c.

References LED_TOGGLE.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation

uint16_t datalink_time

Definition at line 24 of file main.c.

Referenced by main_periodic().

bool_t dl_msg_available

Definition at line 23 of file main.c.