mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #5580 from bcostm/dev_usb_speed_disco-f746ng
DISCO_F746NG: add usp_speed configurationpull/5586/merge
commit
221b8a84b1
|
@ -18,13 +18,12 @@
|
||||||
#ifndef USBHAL_IP_OTGFSHS_H
|
#ifndef USBHAL_IP_OTGFSHS_H
|
||||||
#define USBHAL_IP_OTGFSHS_H
|
#define USBHAL_IP_OTGFSHS_H
|
||||||
|
|
||||||
//==================================================================
|
|
||||||
// This board has both USB OTG FS and HS connectors.
|
|
||||||
// Select one line only.
|
|
||||||
//==================================================================
|
|
||||||
#if defined(TARGET_DISCO_F746NG)
|
#if defined(TARGET_DISCO_F746NG)
|
||||||
//#define TARGET_DISCO_F746NG_OTG_FS
|
#if (MBED_CONF_TARGET_USB_SPEED == 1) // Defined in json configuration file
|
||||||
#define TARGET_DISCO_F746NG_OTG_HS
|
#define TARGET_DISCO_F746NG_OTG_HS
|
||||||
|
#else
|
||||||
|
#define TARGET_DISCO_F746NG_OTG_FS
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(TARGET_DISCO_F429ZI) || \
|
#if defined(TARGET_DISCO_F429ZI) || \
|
||||||
|
|
|
@ -1595,6 +1595,10 @@
|
||||||
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL | USE_PLL_HSI",
|
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL | USE_PLL_HSI",
|
||||||
"value": "USE_PLL_HSE_XTAL|USE_PLL_HSI",
|
"value": "USE_PLL_HSE_XTAL|USE_PLL_HSI",
|
||||||
"macro_name": "CLOCK_SOURCE"
|
"macro_name": "CLOCK_SOURCE"
|
||||||
|
},
|
||||||
|
"usb_speed": {
|
||||||
|
"help": "Select the USB speed/connector (0=FullSpeed, 1=HighSpeed)",
|
||||||
|
"value": "1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"detect_code": ["0815"],
|
"detect_code": ["0815"],
|
||||||
|
|
Loading…
Reference in New Issue