[bootloader] Use custom USB descriptor

This commit is contained in:
M4x1m3
2022-02-27 00:28:46 +01:00
parent 5a7b076ebe
commit dee783065b
7 changed files with 34 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ bootloader_src += $(addprefix bootloader/,\
interface.cpp \
jump_to_firmware.s \
trampoline.cpp \
usb_desc.cpp \
)
bootloader_images = $(addprefix bootloader/, \
@@ -15,6 +16,6 @@ bootloader_images = $(addprefix bootloader/, \
computer.png \
)
bootloader_src += $(ion_src) $(kandinsky_src) $(liba_src) $(libaxx_src) $(bootloader_images)
bootloader_src += $(filter-out ion/src/device/shared/drivers/usb_desc.cpp,$(ion_src)) $(kandinsky_src) $(liba_src) $(libaxx_src) $(bootloader_images)
$(eval $(call depends_on_image,bootloader/interface.cpp,$(bootloader_images)))

12
bootloader/usb_desc.cpp Normal file
View File

@@ -0,0 +1,12 @@
namespace Ion {
namespace Device {
namespace USB {
const char* stringDescriptor() {
return "@Flash/0x90000000/08*004Kg,01*032Kg,63*064Kg,64*064Kg";
}
}
}
}