firmware/ice40-riscv: Update no2usb core and fixup for API changes
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: Ia6bda410e2529858cb86827e186bb099b9b87799
diff --git a/firmware/ice40-riscv/e1-tracer/usb_desc_app.c b/firmware/ice40-riscv/e1-tracer/usb_desc_app.c
index 176ec12..fb0e50d 100644
--- a/firmware/ice40-riscv/e1-tracer/usb_desc_app.c
+++ b/firmware/ice40-riscv/e1-tracer/usb_desc_app.c
@@ -6,6 +6,7 @@
*/
#include <no2usb/usb_proto.h>
+#include <no2usb/usb_dfu_proto.h>
#include <no2usb/usb.h>
#define NULL ((void*)0)
@@ -48,7 +49,7 @@
/* DFU Runtime */
struct {
struct usb_intf_desc intf;
- struct usb_dfu_desc func;
+ struct usb_dfu_func_desc func;
} __attribute__ ((packed)) dfu;
} __attribute__ ((packed)) _app_conf_desc = {
.conf = {
@@ -211,8 +212,8 @@
.iInterface = 8,
},
.func = {
- .bLength = sizeof(struct usb_dfu_desc),
- .bDescriptorType = USB_DT_DFU,
+ .bLength = sizeof(struct usb_dfu_func_desc),
+ .bDescriptorType = USB_DFU_DT_FUNC,
.bmAttributes = 0x0d,
.wDetachTimeOut = 1000,
.wTransferSize = 4096,