Cross gcc Mailing List Archive
[Prev][Next][Index][Thread]
Re: volital registers
Date: Fri, 01 Nov 1996 08:41:29 -0500
From: Neville Mair <nev@snet.net>
This is what I have now
#define SCSR (*(unsigned short *)0xfffC0C)
#define SCDR (*(unsigned short *)0xfffC0E)
This works OK until the the I do this
while (SCSR & 0X0100)
;
SCDR = c ;
How do specify pointer to a volital area in memory?
volatile unsigned short *
[or is this a trick question? :-)]
I would like to have the CPU's internal I/O show up
in the linker map
so that if someone tries to map something else in
the same location the
linker will give a warning or error.
Have you tried using a linker script?
References:
Home |
Subject Index |
Thread Index