summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-08-15 21:40:09 +0200
committerHarald Welte <laforge@gnumonks.org>2011-08-15 21:40:09 +0200
commit7d31d475b63e058dad4e1d0b9b5b21fdd1193af9 (patch)
treecd3819c47ab1a0a92a226689e3e60511f86e8831 /firmware
parent48029c2bf3e274fee10010c1cae38b4564f12764 (diff)
USB: Add support for the 3rd DFU interface (RAM)
Diffstat (limited to 'firmware')
-rw-r--r--firmware/src/os/pcd_enumerate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/src/os/pcd_enumerate.c b/firmware/src/os/pcd_enumerate.c
index a195267..c360d37 100644
--- a/firmware/src/os/pcd_enumerate.c
+++ b/firmware/src/os/pcd_enumerate.c
@@ -594,6 +594,12 @@ static void udp_ep0_handler(void)
MIN(sizeof(cfg_descriptor.uif_dfu[1]),
wLength));
break;
+ case 3:
+ udp_ep0_send_data((const char *)
+ &cfg_descriptor.uif_dfu[2],
+ MIN(sizeof(cfg_descriptor.uif_dfu[2]),
+ wLength));
+ break;
#endif
default:
goto out_stall;
personal git repositories of Harald Welte. Your mileage may vary