| //#define USBHOST_PRINT_DEBUG | //#define USBHOST_PRINT_DEBUG | ||||
| // When developing a new driver, please edit ehci.cpp to set | |||||
| // USBHS_USBCMD_ITC to zero. Today we set USBHS_USBCMD_ITC(1) | |||||
| // because some drivers have race conditions exposed by | |||||
| // non-delayed interrupts. Eventually USBHS_USBCMD_ITC will | |||||
| // be changed to 0. Please test any new driver code with | |||||
| // USBHS_USBCMD_ITC(0) so it won't break in the future when | |||||
| // this change is made! | |||||
| // This can let you control where to send the debugging messages | // This can let you control where to send the debugging messages | ||||
| //#define USBHDBGSerial Serial1 | //#define USBHDBGSerial Serial1 | ||||
| #ifndef USBHDBGSerial | #ifndef USBHDBGSerial | ||||
| bool mscTransferComplete = false; | bool mscTransferComplete = false; | ||||
| uint8_t mscInit(void); | uint8_t mscInit(void); | ||||
| void msReset(); | |||||
| uint8_t msGetMaxLun(); | |||||
| void msReset(uint32_t interfaceNumber); | |||||
| uint8_t msGetMaxLun(uint32_t interfaceNumber); | |||||
| void msCurrentLun(uint8_t lun) {currentLUN = lun;} | void msCurrentLun(uint8_t lun) {currentLUN = lun;} | ||||
| uint8_t msCurrentLun() {return currentLUN;} | uint8_t msCurrentLun() {return currentLUN;} | ||||
| bool available() { delay(0); return deviceAvailable; } | bool available() { delay(0); return deviceAvailable; } |