Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
6e29299f3This 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);
void setup_usb(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;