File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
features/unsupported/USBDevice/targets/TARGET_STM Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1818#ifndef USBHAL_IP_OTGFSHS_H
1919#define USBHAL_IP_OTGFSHS_H
2020
21- //==================================================================
22- // This board has both USB OTG FS and HS connectors.
23- // Select one line only.
24- //==================================================================
2521#if defined(TARGET_DISCO_F746NG )
26- //#define TARGET_DISCO_F746NG_OTG_FS
22+ #if ( MBED_CONF_TARGET_USB_SPEED == 1 ) // Defined in json configuration file
2723#define TARGET_DISCO_F746NG_OTG_HS
24+ #else
25+ #define TARGET_DISCO_F746NG_OTG_FS
26+ #endif
2827#endif
2928
3029#if defined(TARGET_DISCO_F429ZI ) || \
Original file line number Diff line number Diff line change 15951595 "help" : " Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL | USE_PLL_HSI" ,
15961596 "value" : " USE_PLL_HSE_XTAL|USE_PLL_HSI" ,
15971597 "macro_name" : " CLOCK_SOURCE"
1598+ },
1599+ "usb_speed" : {
1600+ "help" : " Select the USB connector (0=FullSpeed, 1=HighSpeed))" ,
1601+ "value" : " 1"
15981602 }
15991603 },
16001604 "detect_code" : [" 0815" ],
You can’t perform that action at this time.
0 commit comments