From: Bernhard Urban Date: Mon, 14 Dec 2009 01:34:00 +0000 (+0100) Subject: leds "show" 0xaa when finished flashing process X-Git-Tag: v0.1~37 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=pyfrprog.git;a=commitdiff_plain;h=a81c47e8de76a280faf5830c0252f635f811e1d5 leds "show" 0xaa when finished flashing process --- diff --git a/pkernel/main.c b/pkernel/main.c index f3b7fb7..7963c2a 100644 --- a/pkernel/main.c +++ b/pkernel/main.c @@ -5,7 +5,7 @@ void increaseled(void) { - PDR14 = (PDR14+1)%256; + PDR14 = ~(((~PDR14)+1)%256); HWWD_CL = 0; } @@ -18,7 +18,8 @@ void main(void) /*Enable LEDs*/ DDR14 = 0xFF; - PDR14 = 0xff; + PDR14 = 0x00; + increaseled(); /*Initialize UART4*/ InitUart4(); @@ -39,6 +40,8 @@ void main(void) (void) FLASH_WriteHalfWord(baseaddr + (2*i), toflash[i]); } + PDR14 = 0x55; //signal that we finished now! + while(1) { HWWD_CL = 0; }