Small change on USB clock check.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12788 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2019-05-12 12:06:05 +00:00
parent 24fbf940cd
commit 48475e9f25
1 changed files with 2 additions and 1 deletions

View File

@ -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