projects
/
my-code
/
fpga.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iod and oed are special function registers, no xdata!
[my-code/fpga.git]
/
fx2
/
fx2.c
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
()
;
}
-
-
-