maybe vusb

This commit is contained in:
zvecr 2022-03-18 21:37:23 +00:00
parent c27edf4e64
commit a5204887a8
3 changed files with 197 additions and 2 deletions

View file

@ -39,6 +39,10 @@ void console_task(void);
void raw_hid_task(void);
#endif
#ifdef XAP_ENABLE
void xap_task(void);
#endif
/* This is from main.c of USBaspLoader */
static void initForUsbConnectivity(void) {
uint8_t i = 0;
@ -158,11 +162,19 @@ void protocol_task(void) {
#ifdef RAW_ENABLE
usbPoll();
if (usbConfiguration && usbInterruptIsReady3()) {
if (usbConfiguration && usbInterruptIsReady4()) {
raw_hid_task();
}
#endif
#ifdef XAP_ENABLE
usbPoll();
if (usbConfiguration && usbInterruptIsReady4()) {
xap_task();
}
#endif
#ifdef CONSOLE_ENABLE
usbPoll();