projects
/
pyfrprog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
688e6cf
)
leds "show" 0xaa when finished flashing process
author
Bernhard Urban
<lewurm@gmx.net>
Mon, 14 Dec 2009 01:34:00 +0000
(
02:34
+0100)
committer
Bernhard Urban
<lewurm@gmx.net>
Mon, 14 Dec 2009 01:34:00 +0000
(
02:34
+0100)
pkernel/main.c
patch
|
blob
|
history
diff --git
a/pkernel/main.c
b/pkernel/main.c
index f3b7fb7b0b006e254d6ae35dac629ac7f873330e..7963c2a13242684f4db7f0f86665dc35b29172f8 100644
(file)
--- 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;
}