I am using AVR-GCC to develop a system with external RAM and I/O. Beside the inline assembler (because it is too complicated for me), what will be the most efficient coding for accessing the external RAM and I/O.
I tried the following statements:
#define IOPORT 0xf000
*(char *) IOPORT=j;
I find that the statement is masked out something by the compiler by looking at the assembly listing file. Could anybody help. Thanks a lot!