Date:2011-05-10 13:32:12 (8 years 7 months ago)
Author:Werner Almesberger
Commit:fc1a334bf6ca78526663302818eb0a558c458a93
Message:atusb/fw/usb/dfu.c (dfu): lowered bwPollTimeout from 1 s to 100 ms and explained why

Files: atusb/fw/usb/dfu.c (1 diff)

Change Details

atusb/fw/usb/dfu.c
9494};
9595
9696
97/*
98 * The worst-case activity would be flashing a one page and erasing another
99 * one, would should take less than 10 ms. A 100 ms timeout ought to be plenty.
100 */
101
97102struct dfu dfu = {
98    OK,
99    LE(1000), 0,
100    dfuIDLE,
101    0,
103    OK, /* bStatus */
104    LE(100), 0, /* bwPollTimeout, 100 ms */
105    dfuIDLE, /* bState */
106    0, /* iString */
102107};
103108
104109

Archive Download the corresponding diff file



interactive