USB: Add support for the 3rd DFU interface (RAM)

This commit is contained in:
Harald Welte 2011-08-15 21:40:09 +02:00
parent 48029c2bf3
commit 7d31d475b6
1 changed files with 6 additions and 0 deletions

View File

@ -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;