Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
b55c7d94eThis file is pinned to the selected release. Download the original to open it in your design tool.
#pragma once
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/cdc.h>
#include "ringbuf.h"
#define RX_QUEUE_SIZE 1024
#define TX_QUEUE_SIZE 8096
void cdc_init(void);
int cdcacm_tx(void* data, uint32_t len);
int cdcacm_getline(char *ptr, int len);
int cdcacm_is_connected();
usbd_device *usbd_dev;
int usb_connected;
extern struct ringbuf rx_buf;
extern struct ringbuf tx_buf;