aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/apps
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-12-14 13:13:29 -0800
committerJosh Blum <josh@joshknows.com>2010-12-14 13:13:29 -0800
commit01d5209e103a590dbcdaa51b7fecd2a9e161f558 (patch)
tree3c26cac1aaeaecf49cb5b7c35cfcb9fd25ad744f /firmware/microblaze/apps
parent546e877ea461404550f01a1066242c2f2610ad9d (diff)
parent42c8c0873c00e692eb88c54e7da4fcbabbd9a4b6 (diff)
downloaduhd-01d5209e103a590dbcdaa51b7fecd2a9e161f558.tar.gz
uhd-01d5209e103a590dbcdaa51b7fecd2a9e161f558.tar.bz2
uhd-01d5209e103a590dbcdaa51b7fecd2a9e161f558.zip
Merge branch 'zpu' into next
Diffstat (limited to 'firmware/microblaze/apps')
-rw-r--r--firmware/microblaze/apps/blinkenlights.c4
-rw-r--r--firmware/microblaze/apps/txrx_uhd.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/firmware/microblaze/apps/blinkenlights.c b/firmware/microblaze/apps/blinkenlights.c
index 4cebe5c9d..30cb33a7f 100644
--- a/firmware/microblaze/apps/blinkenlights.c
+++ b/firmware/microblaze/apps/blinkenlights.c
@@ -12,9 +12,11 @@ int main(int argc, char *argv[]) {
uint32_t c = 0;
uint8_t i = 0;
+ output_regs->led_src = 0;
+
while(1) {
//delay(5000000);
- for(c=0;c<5000000;c++) asm("NOP");
+ for(c=0;c<50000;c++) asm("NOP");
output_regs->leds = (i++ % 2) ? 0xFF : 0x00; //blink everything on that register
}
diff --git a/firmware/microblaze/apps/txrx_uhd.c b/firmware/microblaze/apps/txrx_uhd.c
index e9c98c26e..517b50e91 100644
--- a/firmware/microblaze/apps/txrx_uhd.c
+++ b/firmware/microblaze/apps/txrx_uhd.c
@@ -373,6 +373,7 @@ main(void)
pkt_ctrl_release_incoming_buffer();
}
+ pic_interrupt_handler();
int pending = pic_regs->pending; // poll for under or overrun
if (pending & PIC_UNDERRUN_INT){