Support Isochronous transfer additionally
Dependents: USBHostC270_example_GR-PEACH USBHostDac_example USBHostDac_Audio_in_out
Fork of USBHost_custom by
Diff: USBHost/USBHALHost_LPC17.cpp
- Revision:
- 41:5c3ebf7372ee
- Parent:
- 31:220cd93c9a5f
--- a/USBHost/USBHALHost_LPC17.cpp Fri Mar 17 01:29:52 2017 +0000 +++ b/USBHost/USBHALHost_LPC17.cpp Fri Apr 21 07:23:33 2017 +0000 @@ -234,6 +234,14 @@ return NULL; //Could not alloc TD } +#if(1) /* Isochronous */ +bool USBHALHost::isTD(volatile uint8_t* td) { + if (td >= usb_tdBuf && td < (usb_tdBuf+TD_SIZE*MAX_TD)) { + return true; + } + return false; +} +#endif void USBHALHost::freeED(volatile uint8_t * ed) { int i;