Adding initial dfu-upload code and debugging for Bootloader.
This commit is contained in:
parent
26b0a7e10d
commit
1acbc97e98
9 changed files with 125 additions and 96 deletions
|
@ -53,11 +53,13 @@
|
|||
#define TX_TIMEOUT_MSEC 50
|
||||
|
||||
#if F_CPU == 96000000
|
||||
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 596)
|
||||
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 596)
|
||||
#elif F_CPU == 72000000
|
||||
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 512) // XXX Correct?
|
||||
#elif F_CPU == 48000000
|
||||
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 428)
|
||||
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 428)
|
||||
#elif F_CPU == 24000000
|
||||
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 262)
|
||||
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 262)
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue