Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules 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)
 
int main (void)
 
void dl_parse_msg (void)
 

Variables

uint8_t dl_buffer [MSG_SIZE]
 
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

int main ( void  )

Definition at line 26 of file main.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_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().

uint8_t dl_buffer[MSG_SIZE]

Definition at line 22 of file main.c.

Referenced by dl_parse_msg().

bool_t dl_msg_available

Definition at line 23 of file main.c.