aboutsummaryrefslogtreecommitdiffstats
path: root/usbdrv/usbconfig-prototype.h
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2010-05-30 17:57:07 +0000
committerChristian Starkjohann <cs+github@obdev.at>2010-05-30 17:57:07 +0000
commit52b4b9131636c6c45678f266acaa04f6f3a5015d (patch)
treeb29076f053f47cf256bba63c1c512ac1f7282cbb /usbdrv/usbconfig-prototype.h
parentfd4af416f2d68f270d36cf02515c755f66955bd7 (diff)
downloadv-usb-52b4b9131636c6c45678f266acaa04f6f3a5015d.tar.gz
v-usb-52b4b9131636c6c45678f266acaa04f6f3a5015d.tar.bz2
v-usb-52b4b9131636c6c45678f266acaa04f6f3a5015d.zip
- introduced USB_CFG_DRIVER_FLASH_PAGE config option
Diffstat (limited to 'usbdrv/usbconfig-prototype.h')
-rw-r--r--usbdrv/usbconfig-prototype.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/usbdrv/usbconfig-prototype.h b/usbdrv/usbconfig-prototype.h
index 8adc728..826f026 100644
--- a/usbdrv/usbconfig-prototype.h
+++ b/usbdrv/usbconfig-prototype.h
@@ -45,9 +45,12 @@ section at the end of this file).
*/
#define USB_CFG_CLOCK_KHZ (F_CPU/1000)
/* Clock rate of the AVR in kHz. Legal values are 12000, 12800, 15000, 16000,
- * 16500 and 20000. The 12.8 MHz and 16.5 MHz versions of the code require no
- * crystal, they tolerate +/- 1% deviation from the nominal frequency. All
- * other rates require a precision of 2000 ppm and thus a crystal!
+ * 16500, 18000 and 20000. The 12.8 MHz and 16.5 MHz versions of the code
+ * require no crystal, they tolerate +/- 1% deviation from the nominal
+ * frequency. All other rates require a precision of 2000 ppm and thus a
+ * crystal!
+ * Since F_CPU should be defined to your actual clock rate anyway, you should
+ * not need to modify this setting.
*/
#define USB_CFG_CHECK_CRC 0
/* Define this to 1 if you want that the driver checks integrity of incoming
@@ -143,6 +146,11 @@ section at the end of this file).
* of the macros usbDisableAllRequests() and usbEnableAllRequests() in
* usbdrv.h.
*/
+#define USB_CFG_DRIVER_FLASH_PAGE 0
+/* If the device has more than 64 kBytes of flash, define this to the 64 k page
+ * where the driver's constants (descriptors) are located. Or in other words:
+ * Define this to 1 for boot loaders on the ATMega128.
+ */
#define USB_CFG_LONG_TRANSFERS 0
/* Define this to 1 if you want to send/receive blocks of more than 254 bytes
* in a single control-in or control-out transfer. Note that the capability