Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
switch_uart.h File Reference
#include "std.h"
+ Include dependency graph for switch_uart.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define switch_uart_SwitchUartChannel(X)   ({switch_uart_channel=X;drop_ball(switch_uart_channel); false;})
 

Functions

void drop_ball (uint8_t number)
 
void periodic_switch_uart (void)
 

Variables

uint8_t switch_uart_channel
 
uint8_t switch_uart_status
 

Detailed Description

Author
Freek van Tienen Module for dropping balls using UART

Definition in file switch_uart.h.

Macro Definition Documentation

◆ switch_uart_SwitchUartChannel

#define switch_uart_SwitchUartChannel (   X)    ({switch_uart_channel=X;drop_ball(switch_uart_channel); false;})

Definition at line 31 of file switch_uart.h.

Function Documentation

◆ drop_ball()

void drop_ball ( uint8_t  number)

Definition at line 44 of file switch_uart.c.

References drop_string, DROP_STRINGLEN, last, and uart_put_byte().

+ Here is the call graph for this function:

◆ periodic_switch_uart()

void periodic_switch_uart ( void  )

Definition at line 36 of file switch_uart.c.

References switch_uart_status, uart_char_available(), and uart_getch().

+ Here is the call graph for this function:

Variable Documentation

◆ switch_uart_channel

uint8_t switch_uart_channel

Definition at line 29 of file switch_uart.c.

◆ switch_uart_status

uint8_t switch_uart_status

Definition at line 30 of file switch_uart.c.

Referenced by periodic_switch_uart().