Author: matt
Date: 2007-09-27 01:56:25 -0600 (Thu, 27 Sep 2007)
New Revision: 6550
Modified:
gnuradio/branches/developers/matt/u2f/firmware/test1_main.c
Log:
wait until packet is transferred to start the TX
Modified: gnuradio/branches/developers/matt/u2f/firmware/test1_main.c
===================================================================
--- gnuradio/branches/developers/matt/u2f/firmware/test1_main.c 2007-09-27
07:54:13 UTC (rev 6549)
+++ gnuradio/branches/developers/matt/u2f/firmware/test1_main.c 2007-09-27
07:56:25 UTC (rev 6550)
@@ -74,13 +74,17 @@
dsp_tx_idle = 1;
receive_to_buf(2, PORT, 1, 5, 504);
+
+ volatile unsigned int *status = (unsigned int *) 0xB020;
+ while (*status == 0)
+ {}
+
sim_puts("Done DSP TX setup\n");
dsp_tx_regs->run_tx = 1;
// register interrupt handler
pic_register_handler(IRQ_BUFFER, buffer_irq_handler);
-
while(not_done){
}
asm volatile ("or r0, r0, r0"); // FIXME CPU bug workaround
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio