40 #include "modulesettings.h"
57 #if defined(PIOS_COMUSBBRIDGE_STACK_SIZE)
58 #define STACK_SIZE_BYTES PIOS_COMUSBBRIDGE_STACK_SIZE
60 #define STACK_SIZE_BYTES 480
63 #define TASK_PRIORITY PIOS_THREAD_PRIO_LOW
65 #define BRIDGE_BUF_LEN 10
114 #ifdef MODULE_ComUsbBridge_BUILTIN
131 volatile uint32_t tx_errors = 0;
153 volatile uint32_t tx_errors = 0;
176 ModuleSettingsComUsbBridgeSpeedGet(&speed);
static int32_t comUsbBridgeStart(void)
static void updateSettings()
bool PIOS_Modules_IsEnabled(enum pios_modules module)
static struct pios_thread * com2UsbBridgeTaskHandle
static int32_t comUsbBridgeInitialize(void)
static bool module_enabled
void PIOS_HAL_ConfigureSerialSpeed(uintptr_t com_id, HwSharedSpeedBpsOptions speed)
static struct pios_thread * usb2ComBridgeTaskHandle
#define MODULE_INITCALL(ifn, sfn)
uint16_t PIOS_COM_ReceiveBuffer(uintptr_t com_id, uint8_t *buf, uint16_t buf_len, uint32_t timeout_ms)
static void com2UsbBridgeTask(void *parameters)
struct pios_thread * PIOS_Thread_Create(void(*fp)(void *), const char *namep, size_t stack_bytes, void *argp, enum pios_thread_prio_e prio)
int32_t TaskMonitorAdd(TaskInfoRunningElem task, struct pios_thread *threadp)
PIOS_COM_SendBuffer(shub_global->frsky_port, shub_global->serial_buf, msg_length)
static void usb2ComBridgeTask(void *parameters)
Includes PiOS and core architecture components.
static uint32_t usart_port