X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=pyfrprog.git;a=blobdiff_plain;f=pkernel%2Fmain.c;h=7963c2a13242684f4db7f0f86665dc35b29172f8;hp=f3b7fb7b0b006e254d6ae35dac629ac7f873330e;hb=a81c47e8de76a280faf5830c0252f635f811e1d5;hpb=688e6cf155660cb69e965154c3e22370cb5c9abb 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; }