mirror of https://github.com/ARMmbed/mbed-os.git
Only build in USBPhy_STM32 for supported devices
Define USBSTM_HAL_UNSUPPORTED if DEVICE_USBDEVICE is undefined or defined to 0.feature-hal-spec-usb-device
parent
4ce82d714a
commit
c31dfbc174
|
@ -14,6 +14,11 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* This target doesn't support USB */
|
||||
#if !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
|
||||
#define USBSTM_HAL_UNSUPPORTED
|
||||
#endif
|
||||
|
||||
/* TARGET NOT STM does not support this HAL */
|
||||
#ifndef TARGET_STM
|
||||
#define USBSTM_HAL_UNSUPPORTED
|
||||
|
|
Loading…
Reference in New Issue