Add a function to test if USB interrupt send would block
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