void increaseled(void)
{
- PDR14 = (PDR14+1)%256;
+ PDR14 = ~(((~PDR14)+1)%256);
HWWD_CL = 0;
}
/*Enable LEDs*/
DDR14 = 0xFF;
- PDR14 = 0xff;
+ PDR14 = 0x00;
+ increaseled();
/*Initialize UART4*/
InitUart4();
(void) FLASH_WriteHalfWord(baseaddr + (2*i), toflash[i]);
}
+ PDR14 = 0x55; //signal that we finished now!
+
while(1) {
HWWD_CL = 0;
}