Mercurial > louis > kiibohd-controller
comparison 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 |
comparison
equal
deleted
inserted
replaced
333:772f9bea482b | 334:9ac304aa1ab5 |
---|---|
51 | 51 |
52 // When the PC isn't listening, how long do we wait before discarding data? | 52 // When the PC isn't listening, how long do we wait before discarding data? |
53 #define TX_TIMEOUT_MSEC 50 | 53 #define TX_TIMEOUT_MSEC 50 |
54 | 54 |
55 #if F_CPU == 96000000 | 55 #if F_CPU == 96000000 |
56 #define TX_TIMEOUT (TX_TIMEOUT_MSEC * 596) | 56 #define TX_TIMEOUT (TX_TIMEOUT_MSEC * 596) |
57 #elif F_CPU == 72000000 | |
58 #define TX_TIMEOUT (TX_TIMEOUT_MSEC * 512) // XXX Correct? | |
57 #elif F_CPU == 48000000 | 59 #elif F_CPU == 48000000 |
58 #define TX_TIMEOUT (TX_TIMEOUT_MSEC * 428) | 60 #define TX_TIMEOUT (TX_TIMEOUT_MSEC * 428) |
59 #elif F_CPU == 24000000 | 61 #elif F_CPU == 24000000 |
60 #define TX_TIMEOUT (TX_TIMEOUT_MSEC * 262) | 62 #define TX_TIMEOUT (TX_TIMEOUT_MSEC * 262) |
61 #endif | 63 #endif |
62 | 64 |
63 | 65 |
64 | 66 |
65 // ----- Variables ----- | 67 // ----- Variables ----- |