[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Variables in external SRAM

From: Peter
Subject: [avr-gcc-list] Variables in external SRAM
Date: Mon, 12 Feb 2001 19:48:58 +0100 (MET)

i have an external device that i can treat a sram, and i want to write to
it via a variable. But my compiler complains when i try something like
char test;
&test = 0xFFFF;

i know i can do
*(char*)(0xFFFF) = 0xAB;
but i want to write to a variable.
I'm not good in programming  c code, but the code above means
"value of the char pointer with the address 0xFFFF", is this right?

Thank you, Peter Holtermann

reply via email to

[Prev in Thread] Current Thread [Next in Thread]