projects
/
my-code
/
fpga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ac00f8
)
iod and oed are special function registers, no xdata!
author
hackbard
<hackbard>
Sat, 24 Feb 2007 03:41:42 +0000
(
03:41
+0000)
committer
hackbard
<hackbard>
Sat, 24 Feb 2007 03:41:42 +0000
(
03:41
+0000)
fx2/fx2.c
patch
|
blob
|
history
diff --git
a/fx2/fx2.c
b/fx2/fx2.c
index
ddea734
..
800dd52
100644
(file)
--- a/
fx2/fx2.c
+++ b/
fx2/fx2.c
@@
-22,8
+22,8
@@
typedef unsigned short u16;
typedef unsigned int u32;
/* fx2 register */
-
xdata at 0xb5 volatile u8
OED;
-
xdata at 0xb0 volatile u8
IOD;
+
sfr at 0xb5
OED;
+
sfr at 0xb0
IOD;
void power_on() {
@@
-33,8
+33,5
@@
void power_on() {
void main() {
- power_on;
+ power_on
()
;
}
-
-
-