2021-01-31 18:26:40 +00:00
|
|
|
#ifndef USB_H
|
|
|
|
#define USB_H
|
2021-02-13 19:39:00 +00:00
|
|
|
#include <libopencm3/usb/usbd.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
extern usbd_device *g_usbd_dev;
|
|
|
|
|
2021-01-31 18:26:40 +00:00
|
|
|
void usb_setup(void);
|
2021-07-16 19:22:13 +00:00
|
|
|
void usb_reinit(void);
|
2021-02-13 21:16:17 +00:00
|
|
|
int usb_write_cdcacm(uint8_t acm, void *data, size_t len, int tries);
|
2021-08-15 00:01:04 +00:00
|
|
|
bool usb_got_reset(void);
|
2021-02-13 19:39:00 +00:00
|
|
|
|
|
|
|
#define ACM_NFC 1
|
|
|
|
#define ACM_COMM 0
|
|
|
|
|
2021-01-31 18:26:40 +00:00
|
|
|
#endif
|