twinkle_stick/source/usbcfg.h

17 lines
512 B
C

#ifndef USBCFG_H
#define USBCFG_H
extern const USBConfig usbcfg;
extern const SerialUSBConfig serusbcfg;
extern SerialUSBDriver SDU1;
extern volatile bool cdc_dtr;
/* Called from ISR context to fill a GET_REPORT response.
Returns false to stall the request (unknown report id). */
bool isr_hid_get_report(uint8_t id, uint8_t *buf, size_t *len);
/* Called from ISR context when a SET_REPORT payload has arrived. */
void isr_hid_set_report(uint8_t id, const uint8_t *buf, size_t len);
#endif /* USBCFG_H */