Author: Paul_R
Date: 2008-08-25 16:23:29 +0200 (Mon, 25 Aug 2008)
New Revision: 1579
Modified:
firmware/fuxusb/trunk/fuxusb.Opt
firmware/fuxusb/trunk/src/bootloader.c
Log:
* Bug : Now, at the end of the bootloader, the RF is properly restarted.
* Now, sent the BOOT_INIT ACK even with the LIBUSB dongle.
* Reset the CMD_IN_EP flags when entering the bootloader.
Modified: firmware/fuxusb/trunk/fuxusb.Opt
===================================================================
(Binary files differ)
Modified: firmware/fuxusb/trunk/src/bootloader.c
===================================================================
--- firmware/fuxusb/trunk/src/bootloader.c 2008-08-25 13:21:41 UTC (rev
1578)
+++ firmware/fuxusb/trunk/src/bootloader.c 2008-08-25 14:23:29 UTC (rev
1579)
@@ -203,6 +203,11 @@
/* Configure I2C wait counter */
i2c_wait_counter = 250;
+ /* Clear the Cmd IN EP fifo before bootloading */
+ Usb_select_ep(EP_CMD_IN);
+ Usb_clear_tx_complete();
+ Usb_clear_tx_ready();
+
/* Init bootloader */
bl_init();
@@ -225,10 +230,7 @@
EX0 = 0; /* Disable INT0 interrupt */
-
-#ifdef HID_DEVICE
bl_acknowledge(True, BOOT_INIT_ACK, 0, 0);
-#endif
}
/**
@@ -241,6 +243,8 @@
i2c_bootloading_Flag = False;
reset_rf();
spi_task_reset();
+
+ EX0 = 1;
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn