[tuxdroid-svn] r1215 - in firmware/fuxusb/trunk: . src
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2008-06-04 10:08:57
|
Author: Paul_R Date: 2008-06-04 12:09:03 +0200 (Wed, 04 Jun 2008) New Revision: 1215 Modified: firmware/fuxusb/trunk/fuxusb.Opt firmware/fuxusb/trunk/src/usb_commands.c Log: * Changed the bootloader acknowledge to fill completely the USB EP fifo. The reports are defined with a size of 64 bytes. With linux, I can send a report smaller than defined, but not with windows. Modified: firmware/fuxusb/trunk/fuxusb.Opt =================================================================== (Binary files differ) Modified: firmware/fuxusb/trunk/src/usb_commands.c =================================================================== --- firmware/fuxusb/trunk/src/usb_commands.c 2008-06-04 09:37:42 UTC (rev 1214) +++ firmware/fuxusb/trunk/src/usb_commands.c 2008-06-04 10:09:03 UTC (rev 1215) @@ -139,6 +139,7 @@ */ void bl_acknowledge(uint8_t ack, uint8_t p1, uint8_t p2, uint8_t p3) { + uint8_t i; Usb_select_ep(EP_CMD_IN); Usb_write_byte(BOOTLOADER_CMD); @@ -147,6 +148,11 @@ Usb_write_byte(p2); Usb_write_byte(p3); + for (i = 0; i < 59; i ++) + { + Usb_write_byte(0); + } + CMD_IN_Bank_Nb ++; send_status(); |