mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-21 14:58:51 -05:00
Add a function to test if USB interrupt send would block
This commit is contained in:
parent
54196a0d76
commit
39e7ba9d49
5
usb.c
5
usb.c
@ -604,6 +604,11 @@ ISR(USB_COM_vect)
|
||||
#endif
|
||||
}
|
||||
|
||||
char usb_interruptReady(void)
|
||||
{
|
||||
return interrupt_data_len == -1;
|
||||
}
|
||||
|
||||
void usb_interruptSend(void *data, int len)
|
||||
{
|
||||
uint8_t sreg = SREG;
|
||||
|
Loading…
Reference in New Issue
Block a user