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 1592
1592
"help" : " Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL | USE_PLL_HSI" ,
1593
1593
"value" : " USE_PLL_HSE_XTAL|USE_PLL_HSI" ,
1594
1594
"macro_name" : " CLOCK_SOURCE"
1595
+ },
1596
+ "usb_speed" : {
1597
+ "help" : " Select the USB connector (0=FullSpeed, 1=HighSpeed))" ,
1598
+ "value" : " 1"
1595
1599
}
1596
1600
},
1597
1601
"detect_code" : [" 0815" ],
You can’t perform that action at this time.
0 commit comments