Author: jaguarondi
Date: 2008-08-27 12:19:36 +0200 (Wed, 27 Aug 2008)
New Revision: 1607
Modified:
firmware/fuxusb/branches/new_rf/src/bootloader.c
Log:
* Pulled recent changes from trunk.
Modified: firmware/fuxusb/branches/new_rf/src/bootloader.c
===================================================================
--- firmware/fuxusb/branches/new_rf/src/bootloader.c 2008-08-27 09:20:38 UTC
(rev 1606)
+++ firmware/fuxusb/branches/new_rf/src/bootloader.c 2008-08-27 10:19:36 UTC
(rev 1607)
@@ -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