diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2008-09-16 09:59:30 +0000 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2008-09-16 09:59:30 +0000 |
commit | 15313b44ba8f8e4d185c9953c81d40307e202836 (patch) | |
tree | c9f6d074e0fae27e686ad161064c58cc2aa6dfa1 /usbdrv | |
parent | 3be7d0f6d85b8e4adb868f2076d7bf855f1da229 (diff) | |
download | v-usb-15313b44ba8f8e4d185c9953c81d40307e202836.tar.gz v-usb-15313b44ba8f8e4d185c9953c81d40307e202836.tar.bz2 v-usb-15313b44ba8f8e4d185c9953c81d40307e202836.zip |
- longer delay for RESET detection accounts for higher clock rates
Diffstat (limited to 'usbdrv')
-rw-r--r-- | usbdrv/Changelog.txt | 4 | ||||
-rw-r--r-- | usbdrv/usbdrv.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usbdrv/Changelog.txt b/usbdrv/Changelog.txt index 8b657bb..7674ebc 100644 --- a/usbdrv/Changelog.txt +++ b/usbdrv/Changelog.txt @@ -243,4 +243,6 @@ Scroll down to the bottom to see the most recent changes. used to supply the data. Fixed this bug. [Thanks to Alexander Neumann!] - In hiddata.c (example code for sending/receiving data over HID), use USB_RECIP_DEVICE instead of USB_RECIP_INTERFACE for control transfers so - that we need not claim the interface. + that we need not claim the interface. + - in usbPoll() loop 20 times polling for RESET state instead of 10 times. + This accounts for the higher clock rates we now support. diff --git a/usbdrv/usbdrv.c b/usbdrv/usbdrv.c index e6c8c19..5cbfbe8 100644 --- a/usbdrv/usbdrv.c +++ b/usbdrv/usbdrv.c @@ -586,7 +586,7 @@ uchar i; usbBuildTxBlock(); } } - for(i = 10; i > 0; i--){ + for(i = 20; i > 0; i--){ uchar usbLineStatus = USBIN & USBMASK; if(usbLineStatus != 0) /* SE0 has ended */ break; |