Use pause() rather than using tsleep() on a dummy variable.
This commit is contained in:
parent
cedb987542
commit
ba5df1ca42
@ -134,7 +134,6 @@ static void slhci_abort_xfer(usbd_xfer_handle, usbd_status);
|
||||
static void slhci_device_clear_toggle(usbd_pipe_handle);
|
||||
|
||||
extern int usbdebug;
|
||||
int slhci_dummy;
|
||||
|
||||
/* For root hub */
|
||||
#define SLHCI_INTR_ENDPT (1)
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
#define MS_TO_TICKS(ms) ((ms) * hz / 1000)
|
||||
#define delay_ms(X) \
|
||||
tsleep(&slhci_dummy, PRIBIO, "slhci", MS_TO_TICKS(X))
|
||||
pause("slhci", MS_TO_TICKS(X))
|
||||
|
||||
#define SL11_PID_OUT (0x1)
|
||||
#define SL11_PID_IN (0x9)
|
||||
|
Loading…
Reference in New Issue
Block a user