From 3b3815fdc9a4919917fa98b90416ac368aed69ca Mon Sep 17 00:00:00 2001 From: hackbard Date: Sat, 24 Feb 2007 03:41:42 +0000 Subject: [PATCH] iod and oed are special function registers, no xdata! --- fx2/fx2.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fx2/fx2.c b/fx2/fx2.c index ddea734..800dd52 100644 --- 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(); } - - - -- 2.39.5