Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
usb_tunnel.c File Reference
#include "std.h"
#include "mcu.h"
#include "mcu_periph/sys_time.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "mcu_periph/usb_serial.h"
+ Include dependency graph for usb_tunnel.c:

Go to the source code of this file.

Macros

#define BLINK_MIN   100
 minimum LED blink on time in ms More...
 

Functions

static void tunnel_event (void)
 
int main (void)
 

Detailed Description

USB tunnel application.

This creates a USB serial port that connects to one of the UARTs. This enables you to e.g. configure the gps receiver or the modem without removing it.

Definition in file usb_tunnel.c.

Macro Definition Documentation

◆ BLINK_MIN

#define BLINK_MIN   100

minimum LED blink on time in ms

Definition at line 50 of file usb_tunnel.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 88 of file usb_tunnel.c.

References led_init(), mcu_init(), mcu_int_enable, sys_time_init(), tunnel_event(), VCOM_allow_linecoding(), VCOM_event(), and VCOM_init().

+ Here is the call graph for this function:

◆ tunnel_event()

static void tunnel_event ( void  )
inlinestatic

Definition at line 52 of file usb_tunnel.c.

References BLINK_MIN, fd, get_sys_time_msec(), LED_OFF, LED_ON, uart_char_available(), uart_check_free_space(), uart_getch(), uart_put_byte(), VCOM_check_available(), VCOM_check_free_space(), VCOM_getchar(), and VCOM_putchar().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: