<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I appreciate a lot your fast, simple and effective answer.<br>
It works 100% for most SFR Address I am using.<br>
for some reason that I do not understand it requires "not for all, but
just for a few of them", on one of the C files, an additional
declaration like:<br>
<br>
#if defined S_SPLINT_S <br>
char unsigned PCADDR , PCCTL, PCIN, PCOUT;<br>
#endif<br>
<br>
but as I said, it works 100%<br>
thanks again<br>
juan<br>
<br>
<br>
<br>
<br>
Ludolf Holzheid wrote:
<blockquote cite="mid:20070821164133.GA32505@svr5.bihl-wiedemann.de"
type="cite">
<pre wrap="">On Tue, 2007-08-21 12:41:42 -0300, juan abba wrote:
</pre>
<blockquote type="cite">
<pre wrap="">[..]
I am trying to find a way to use following
#if defined S_SPLINT_S
#define PCADDR char *unsigned char *
#else
#define PCADDR (*(unsigned char volatile far*)0xFD8) //
Port C Address
#endif
</pre>
</blockquote>
<pre wrap=""><!---->
Hello Juan,
I don't understand the definition you made for splint.
The definition for the Zilog compiler says something like 'take 0xFD8
as an address of an unsigned char variable and access this variable'.
So, I think, the symbol 'PCADDR' is to be used e.g. as follows:
PCADDR = 0x03;
or
if (0x00 != (PCADDR & 0x04))
{
...
}
Why don't you declare an unsigned char named 'PCADDR' to make splint
happy?
# if defined S_SPLINT_S
extern unsigned char PCADDR;
# else
# define PCADDR (*(unsigned char volatile far*)0xFD8)
# endif
HTH,
Ludolf
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Amigo, antes de lhe enviar este e-mail tive o cuidado de remover
todos os endereços que porventura vieram no texto original.
Fiz isto para eliminar o risco de hackers extraírem os e-mails que
vieram junto com a mensagem e os utilizarem para envio de "spam".
Sugiro que se for re-enviar este e-mail tome o mesmo cuidado e,
mais, como segurança adicional, endereçem seus amigos no campo
Cco ou Bcc.
Você os estará protegendo e a si mesmo.
Juan Jose
</pre>
</body>
</html>