diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-05-12 12:05:55 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-05-12 12:05:55 +0000 |
commit | 8498892265faa1c52c5475073da1c3916141311f (patch) | |
tree | 197a20e3b05ae23993f2c12c374ed58f4c1df376 | |
parent | 5666889d8b09fea72fe1aa51944c982acdacefef (diff) | |
download | ChibiOS-8498892265faa1c52c5475073da1c3916141311f.tar.gz ChibiOS-8498892265faa1c52c5475073da1c3916141311f.tar.bz2 ChibiOS-8498892265faa1c52c5475073da1c3916141311f.zip |
Small change on USB clock check.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12787 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
-rw-r--r-- | os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h index 19269617e..73ee37681 100644 --- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h +++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h @@ -241,7 +241,8 @@ #error "unsupported STM32 platform for OTG functionality"
#endif
-#if STM32_USBCLK != 48000000
+/* Allowing for a small tolerance.*/
+#if STM32_USBCLK < 47880000 || STM32_USBCLK > 48120000
#error "the USB OTG driver requires a 48MHz clock"
#endif
|