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
test_csc_servo.c File Reference
#include "mcu.h"
#include "mcu_periph/sys_time.h"
#include "csc_msg_def.h"
#include "csc_protocol.h"
#include "stm32/can.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for test_csc_servo.c:

Go to the source code of this file.

Functions

static void main_init (void)
 
static void main_periodic_task (void)
 
static void main_event_task (void)
 
void main_on_vane_msg (void *data)
 
int main (void)
 

Variables

uint16_t servos [4]
 
FlagStatus can_error_warning = RESET
 
FlagStatus can_error_passive = RESET
 
FlagStatus can_bus_off = RESET
 
struct CscVaneMsg csc_vane_msg
 

Function Documentation

int main ( void  )

Definition at line 44 of file test_csc_servo.c.

References main_event_task(), main_init(), main_periodic_task(), servos, 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 98 of file test_csc_servo.c.

References LED_OFF.

Referenced by main().

+ Here is the caller graph for this function:

static void main_init ( void  )
inlinestatic

Definition at line 61 of file test_csc_servo.c.

References csc_vane_msg, hw_init(), main_on_vane_msg(), 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:

void main_on_vane_msg ( void *  data)

Definition at line 109 of file test_csc_servo.c.

References csc_vane_msg, DefaultChannel, and DefaultDevice.

Referenced by main_init().

+ Here is the caller graph for this function:

static void main_periodic_task ( void  )
inlinestatic

Definition at line 68 of file test_csc_servo.c.

References CAN1, can_bus_off, can_error_passive, can_error_warning, DefaultChannel, DefaultDevice, LED_OFF, LED_ON, LED_PERIODIC, and servos.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation

FlagStatus can_bus_off = RESET

Definition at line 38 of file test_csc_servo.c.

Referenced by main_periodic_task().

FlagStatus can_error_passive = RESET

Definition at line 37 of file test_csc_servo.c.

Referenced by main_periodic_task().

FlagStatus can_error_warning = RESET

Definition at line 36 of file test_csc_servo.c.

Referenced by main_periodic_task().

struct CscVaneMsg csc_vane_msg

Definition at line 40 of file test_csc_servo.c.

Referenced by main_init(), and main_on_vane_msg().

uint16_t servos[4]

Definition at line 34 of file test_csc_servo.c.

Referenced by main(), and main_periodic_task().