commit | 41c98b6b67461ab75acf05b83b5e149a58e8f25a | [log] [tgz] |
---|---|---|
author | Sylvain Munaut <tnt@246tNt.com> | Wed Jan 05 21:11:35 2022 +0100 |
committer | Sylvain Munaut <tnt@246tNt.com> | Sun Jan 09 19:18:08 2022 +0100 |
tree | 78e4d6c9863b66add11afc6843fb67d6259a2efb | |
parent | 1d98709ff150b941294fa5fe40a2a6126b31f429 [diff] [blame] |
icE1usb fw: Add multi-port support in USB code Signed-off-by: Sylvain Munaut <tnt@246tNt.com> Change-Id: I134410b542461c34339baa8d9120a5c86fc35d46
diff --git a/firmware/ice40-riscv/icE1usb/usb_desc_ids.h b/firmware/ice40-riscv/icE1usb/usb_desc_ids.h index 2247f84..00dbb34 100644 --- a/firmware/ice40-riscv/icE1usb/usb_desc_ids.h +++ b/firmware/ice40-riscv/icE1usb/usb_desc_ids.h
@@ -8,8 +8,8 @@ #pragma once #define USB_INTF_E1(p) (0 + (p)) -#define USB_INTF_DFU 1 -#define USB_INTF_NUM 2 +#define USB_INTF_DFU 2 +#define USB_INTF_NUM 3 #define USB_EP_E1_IN(p) (0x82 + (3 * (p))) #define USB_EP_E1_OUT(p) (0x01 + (3 * (p)))