IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2011-06-11 19:26:52 (12 years 9 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | b42577bb72fb82ac5429034329652189ca94bf4c |
Message: | atusb/fw/boot.c: adjusted the delay loop and don't race with dfu-util - boot.c (MS_TO_LOOPS): increased loop count now that we no longer have to poll - boot.c (main): increased delay from 2.0 s to 2.5 s, because we were racing with a sleep(2) in dfu-util |
Files: |
atusb/fw/boot.c (2 diffs) |
Change Details
atusb/fw/boot.c | ||
---|---|---|
28 | 28 | #include "atusb/ep0.h" |
29 | 29 | |
30 | 30 | |
31 | #define MS_TO_LOOPS(ms) ((uint32_t) (ms)*81) | |
31 | #define MS_TO_LOOPS(ms) ((uint32_t) (ms)*335) | |
32 | 32 | |
33 | 33 | |
34 | 34 | static void (*run_payload)(void) = 0; |
... | ... | |
59 | 59 | |
60 | 60 | led(1); |
61 | 61 | |
62 | while (loop != MS_TO_LOOPS(2000)) { | |
62 | while (loop != MS_TO_LOOPS(2500)) { | |
63 | 63 | if (dfu.state == dfuIDLE && pgm_read_byte(zero) != 0xff) |
64 | 64 | loop++; |
65 | 65 | else |