From 52b4b9131636c6c45678f266acaa04f6f3a5015d Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Sun, 30 May 2010 17:57:07 +0000 Subject: - introduced USB_CFG_DRIVER_FLASH_PAGE config option --- usbdrv/usbdrvasm.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usbdrv/usbdrvasm.S') 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 */ -- cgit v1.2.3