usb: FREE_STANDING should come with USE_SYS.

This commit is contained in:
NIIBE Yutaka
2019-05-10 10:17:48 +09:00
parent fee2cae8c4
commit c1ea549995
2 changed files with 8 additions and 0 deletions

View File

@@ -7,3 +7,7 @@ powered system, we need to define the hardware interface detecting
VBUS voltage. Only after detecting VBUS power, we can enable USB VBUS voltage. Only after detecting VBUS power, we can enable USB
driver (D+/D- lines). For self powered system, driving D+/D- lines driver (D+/D- lines). For self powered system, driving D+/D- lines
(by fixed pull-up resistor) violates the USB specification. (by fixed pull-up resistor) violates the USB specification.
This driver can be used without Chopstx. Please supply
-DFREE_STANDING when used without Chopstx. An example can be find
in gnuk/regnual.

View File

@@ -31,6 +31,10 @@
#ifdef USE_SYS #ifdef USE_SYS
#include "sys-stm32f103.h" #include "sys-stm32f103.h"
#else
# ifdef FREE_STANDING
# error "Please compile with -DUSE_SYS"
# endif
#endif #endif
#include "stm32f103.h" #include "stm32f103.h"