From: hackbard Date: Sat, 24 Feb 2007 03:41:42 +0000 (+0000) Subject: iod and oed are special function registers, no xdata! X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=3b3815fdc9a4919917fa98b90416ac368aed69ca;p=my-code%2Ffpga.git iod and oed are special function registers, no xdata! --- 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(); } - - -