dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ComUsbBridge.c File Reference

Bridges selected Com Port to the USB VCP emulated serial port. More...

#include "openpilot.h"
#include "modulesettings.h"
#include "pios_thread.h"
#include <pios_hal.h>
#include "pios_modules.h"
#include <stdbool.h>

Go to the source code of this file.

Macros

#define STACK_SIZE_BYTES   480
 
#define TASK_PRIORITY   PIOS_THREAD_PRIO_LOW
 
#define BRIDGE_BUF_LEN   10
 

Functions

static void com2UsbBridgeTask (void *parameters)
 
static void usb2ComBridgeTask (void *parameters)
 
static void updateSettings ()
 
static int32_t comUsbBridgeStart (void)
 
static int32_t comUsbBridgeInitialize (void)
 

Variables

static struct pios_thread * com2UsbBridgeTaskHandle
 
static struct pios_thread * usb2ComBridgeTaskHandle
 
static uint32_t usart_port
 
static uint32_t vcp_port
 
static bool module_enabled = false
 

Detailed Description

Bridges selected Com Port to the USB VCP emulated serial port.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2011.
Tau Labs, http://taulabs.org, Copyright (C) 2013-2014
dRonin, http://dRonin.org/, Copyright (C) 2016
See Also
The GNU Public License (GPL) Version 3

Definition in file ComUsbBridge.c.