aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/apps/blinkenlights.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-12-14 13:10:12 -0800
committerJosh Blum <josh@joshknows.com>2010-12-14 13:10:12 -0800
commit42c8c0873c00e692eb88c54e7da4fcbabbd9a4b6 (patch)
tree1db0ba41d918676b98937daf8e4ce4d292aa45d9 /firmware/microblaze/apps/blinkenlights.c
parent3926ee4fb5adfec9a4ae954985cbd113965e6092 (diff)
downloaduhd-42c8c0873c00e692eb88c54e7da4fcbabbd9a4b6.tar.gz
uhd-42c8c0873c00e692eb88c54e7da4fcbabbd9a4b6.tar.bz2
uhd-42c8c0873c00e692eb88c54e7da4fcbabbd9a4b6.zip
zpu: working txrx, modified blink lights to look better, no interrupt (poll handler)
Diffstat (limited to 'firmware/microblaze/apps/blinkenlights.c')
-rw-r--r--firmware/microblaze/apps/blinkenlights.c4
1 files changed, 3 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
}