Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
06396a69cThis 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 4096
void cdc_init(void);
int cdcacm_tx(void* data, uint32_t len);
int cdcacm_getline(char *ptr, int len);
int cdcacm_is_connected();
void cdc_poll();
usbd_device *usbd_dev;
int usb_connected;
extern struct ringbuf rx_buf;
extern struct ringbuf tx_buf;