Mercurial > louis > kiibohd-controller
diff Output/pjrcUSB/arm/usb_keyboard.c @ 334:9ac304aa1ab5
Adding initial dfu-upload code and debugging for Bootloader.
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Mon, 27 Apr 2015 00:57:34 -0700 |
parents | 05a09eda53fb |
children | 1beec5f17e64 |
line wrap: on
line diff
--- a/Output/pjrcUSB/arm/usb_keyboard.c Mon Apr 20 00:55:58 2015 -0700 +++ b/Output/pjrcUSB/arm/usb_keyboard.c Mon Apr 27 00:57:34 2015 -0700 @@ -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