Browse Source

isochronous does not use data toggle

main
PaulStoffregen 8 years ago
parent
commit
d277cbb65a
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      teensy3/usb_dev.c

+ 8
- 1
teensy3/usb_dev.c View File

@@ -857,7 +857,14 @@ void usb_isr(void)
default:
break;
}
b->desc = BDT_DESC(packet->len, ((uint32_t)b & 8) ? DATA1 : DATA0);
#ifdef AUDIO_INTERFACE
// isochronous does not use data toggle bit
if (endpoint == AUDIO_TX_ENDPOINT) {
b->desc = BDT_DESC(packet->len, DATA0);
} else
#endif
b->desc = BDT_DESC(packet->len,
((uint32_t)b & 8) ? DATA1 : DATA0);
} else {
//serial_print("tx no packet\n");
switch (tx_state[endpoint]) {

Loading…
Cancel
Save