Skip to content

Commit 3e35854

Browse files
committed
Add USB options to GenL0
1 parent ef866e9 commit 3e35854

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

boards.txt

+11-3
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ GenF1.menu.upload_method.hidMethod=HID Bootloader 2.2
837837
GenF1.menu.upload_method.hidMethod.upload.protocol=hid22
838838
GenF1.menu.upload_method.hidMethod.upload.tool=hid_upload
839839
GenF1.menu.upload_method.hidMethod.build.flash_offset=0x800
840-
GenF1.menu.upload_method.hidMethod.build.bootloader_flags=-DBL_HID -DVECT_TAB_OFFSET={build.flash_offset}
840+
GenF1.menu.upload_method.hidMethod.build.bootloader_flags=-DBL_HID -DVECT_TAB_OFFSET={build.flash_offset}
841841

842842
GenF1.menu.upload_method.dfu2Method=Maple DFU Bootloader 2.0
843843
GenF1.menu.upload_method.dfu2Method.upload.protocol=maple
@@ -1007,7 +1007,7 @@ GenF4.menu.upload_method.hidMethod=HID Bootloader 2.2
10071007
GenF4.menu.upload_method.hidMethod.upload.protocol=hid22
10081008
GenF4.menu.upload_method.hidMethod.upload.tool=hid_upload
10091009
GenF4.menu.upload_method.hidMethod.build.flash_offset=0x4000
1010-
GenF4.menu.upload_method.hidMethod.build.bootloader_flags=-DBL_HID -DVECT_TAB_OFFSET={build.flash_offset}
1010+
GenF4.menu.upload_method.hidMethod.build.bootloader_flags=-DBL_HID -DVECT_TAB_OFFSET={build.flash_offset}
10111011

10121012
################################################################################
10131013
# Generic L0
@@ -1297,7 +1297,7 @@ Genericflight.build.series=STM32F1xx
12971297
Genericflight.build.cmsis_lib_gcc=arm_cortexM3l_math
12981298
Genericflight.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} {build.bootloader_flags}
12991299

1300-
# AfroFlight Rev5
1300+
# AfroFlight Rev5
13011301
Genericflight.menu.pnum.AFROFLIGHT_F103CB=Afro Flight Rev5 (8MHz)
13021302
Genericflight.menu.pnum.AFROFLIGHT_F103CB.upload.maximum_size=131072
13031303
Genericflight.menu.pnum.AFROFLIGHT_F103CB.upload.maximum_data_size=20480
@@ -1594,6 +1594,14 @@ GenF4.menu.xusb.HS.build.usb_speed=-DUSE_USB_HS
15941594
GenF4.menu.xusb.HSFS=High Speed in Full Speed mode
15951595
GenF4.menu.xusb.HSFS.build.usb_speed=-DUSE_USB_HS -DUSE_USB_HS_IN_FS
15961596

1597+
GenL0.menu.usb.none=None
1598+
GenL0.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
1599+
GenL0.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC
1600+
GenL0.menu.usb.CDC=CDC (no generic 'Serial')
1601+
GenL0.menu.usb.CDC.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB
1602+
GenL0.menu.usb.HID=HID (keyboard and mouse)
1603+
GenL0.menu.usb.HID.build.enable_usb={build.usb_flags} -DUSBD_USE_HID_COMPOSITE
1604+
15971605
Sparky.menu.usb.none=None
15981606
Sparky.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
15991607
Sparky.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC

0 commit comments

Comments
 (0)