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
Russ Butler 2018-05-03 18:10:34 -05:00
parent 4ce82d714a
commit c31dfbc174
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