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 18
18
#ifndef USBHAL_IP_OTGFSHS_H
19
19
#define USBHAL_IP_OTGFSHS_H
20
20
21
- //==================================================================
22
- // This board has both USB OTG FS and HS connectors.
23
- // Select one line only.
24
- //==================================================================
25
21
#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
27
23
#define TARGET_DISCO_F746NG_OTG_HS
24
+ #else
25
+ #define TARGET_DISCO_F746NG_OTG_FS
26
+ #endif
28
27
#endif
29
28
30
29
#if defined(TARGET_DISCO_F429ZI ) || \
Original file line number Diff line number Diff line change 1595
1595
"help" : " Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL | USE_PLL_HSI" ,
1596
1596
"value" : " USE_PLL_HSE_XTAL|USE_PLL_HSI" ,
1597
1597
"macro_name" : " CLOCK_SOURCE"
1598
+ },
1599
+ "usb_speed" : {
1600
+ "help" : " Select the USB speed/connector (0=FullSpeed, 1=HighSpeed)" ,
1601
+ "value" : " 1"
1598
1602
}
1599
1603
},
1600
1604
"detect_code" : [" 0815" ],
You can’t perform that action at this time.
0 commit comments