Only build in USBPhy_STM32 for supported devices

Define USBSTM_HAL_UNSUPPORTED if DEVICE_USBDEVICE is undefined or
defined to 0.
pull/9768/head
Russ Butler 2018-05-03 18:10:34 -05:00
parent 3f45a81a81
commit 7ba6314157
1 changed files with 5 additions and 0 deletions

View File

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