diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2010-05-30 17:57:07 +0000 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2010-05-30 17:57:07 +0000 |
commit | 52b4b9131636c6c45678f266acaa04f6f3a5015d (patch) | |
tree | b29076f053f47cf256bba63c1c512ac1f7282cbb /usbdrv/usbdrvasm.S | |
parent | fd4af416f2d68f270d36cf02515c755f66955bd7 (diff) | |
download | v-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/usbdrvasm.S')
-rw-r--r-- | usbdrv/usbdrvasm.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usbdrv/usbdrvasm.S b/usbdrv/usbdrvasm.S index c9a65b7..4e6158c 100644 --- a/usbdrv/usbdrvasm.S +++ b/usbdrv/usbdrvasm.S @@ -361,7 +361,11 @@ usbMFTimeout: ;---------------------------------------------------------------------------- #ifndef USB_CFG_CLOCK_KHZ -# error "USB_CFG_CLOCK_KHZ not defined in usbconfig.h!" +# ifdef F_CPU +# define USB_CFG_CLOCK_KHZ (F_CPU/1000) +# else +# error "USB_CFG_CLOCK_KHZ not defined in usbconfig.h and no F_CPU set!" +# endif #endif #if USB_CFG_CHECK_CRC /* separate dispatcher for CRC type modules */ |