stm32/usb: Use USB HS as main USB device regardless of USB_HS_IN_FS.

This commit is contained in:
Damien George 2019-02-07 16:09:08 +11:00
parent 03a8b1cc50
commit 9f9c5c19b0

View File

@ -48,7 +48,7 @@
#if !defined(MICROPY_HW_USB_MAIN_DEV) #if !defined(MICROPY_HW_USB_MAIN_DEV)
#if defined(MICROPY_HW_USB_FS) #if defined(MICROPY_HW_USB_FS)
#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_FS_ID) #define MICROPY_HW_USB_MAIN_DEV (USB_PHY_FS_ID)
#elif defined(MICROPY_HW_USB_HS) && defined(MICROPY_HW_USB_HS_IN_FS) #elif defined(MICROPY_HW_USB_HS)
#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_HS_ID) #define MICROPY_HW_USB_MAIN_DEV (USB_PHY_HS_ID)
#else #else
#error Unable to determine proper MICROPY_HW_USB_MAIN_DEV to use #error Unable to determine proper MICROPY_HW_USB_MAIN_DEV to use