Cross gcc Mailing List Archive
[Prev][Next][Index][Thread]
Re: volital registers
#define SCSR (*(unsigned short *)0xfffC0C)
#define SCDR (*(unsigned short *)0xfffC0E)
Try instead
#define SCSR (*(volatile unsigned short *)0xfffC0C)
#define SCDR (*(volatile unsigned short *)0xfffC0E)
This is proper ANSI/ISO C for what you want.
--
Steve Williams
steve@icarus.com
steve@picturel.com
"The woods are lovely, dark and deep. But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."
References:
Home |
Subject Index |
Thread Index