|
@ -159,18 +159,18 @@ void DiskIODriver_USBFlash::idle() { |
|
|
static uint8_t laststate = 232; |
|
|
static uint8_t laststate = 232; |
|
|
if (task_state != laststate) { |
|
|
if (task_state != laststate) { |
|
|
laststate = task_state; |
|
|
laststate = task_state; |
|
|
#define UHS_USB_DEBUG(x) case UHS_STATE(x): SERIAL_ECHOLNPGM(#x); break |
|
|
#define UHS_USB_DEBUG(x,y) case UHS_STATE(x): SERIAL_ECHOLNPGM(y); break |
|
|
switch (task_state) { |
|
|
switch (task_state) { |
|
|
UHS_USB_DEBUG(IDLE); |
|
|
UHS_USB_DEBUG(IDLE, "IDLE"); |
|
|
UHS_USB_DEBUG(RESET_DEVICE); |
|
|
UHS_USB_DEBUG(RESET_DEVICE, "RESET_DEVICE"); |
|
|
UHS_USB_DEBUG(RESET_NOT_COMPLETE); |
|
|
UHS_USB_DEBUG(RESET_NOT_COMPLETE, "RESET_NOT_COMPLETE"); |
|
|
UHS_USB_DEBUG(DEBOUNCE); |
|
|
UHS_USB_DEBUG(DEBOUNCE, "DEBOUNCE"); |
|
|
UHS_USB_DEBUG(DEBOUNCE_NOT_COMPLETE); |
|
|
UHS_USB_DEBUG(DEBOUNCE_NOT_COMPLETE, "DEBOUNCE_NOT_COMPLETE"); |
|
|
UHS_USB_DEBUG(WAIT_SOF); |
|
|
UHS_USB_DEBUG(WAIT_SOF, "WAIT_SOF"); |
|
|
UHS_USB_DEBUG(ERROR); |
|
|
UHS_USB_DEBUG(ERROR, "ERROR"); |
|
|
UHS_USB_DEBUG(CONFIGURING); |
|
|
UHS_USB_DEBUG(CONFIGURING, "CONFIGURING"); |
|
|
UHS_USB_DEBUG(CONFIGURING_DONE); |
|
|
UHS_USB_DEBUG(CONFIGURING_DONE, "CONFIGURING_DONE"); |
|
|
UHS_USB_DEBUG(RUNNING); |
|
|
UHS_USB_DEBUG(RUNNING, "RUNNING"); |
|
|
default: |
|
|
default: |
|
|
SERIAL_ECHOLNPGM("UHS_USB_HOST_STATE: ", task_state); |
|
|
SERIAL_ECHOLNPGM("UHS_USB_HOST_STATE: ", task_state); |
|
|
break; |
|
|
break; |
|
|