|
From: | Valéry Florimond \(Thought Technology Ltd\) |
Subject: | Re: [avr-gcc-list] AVR GCC compiler for win98 |
Date: | Thu, 18 Apr 2002 17:11:40 -0400 |
Hi,
First, PORTD, DDRD and PIND are numbers, the
macros are defined in iomXXX.h (were XXX is the microcontroller you
are using).
for ex: #define PORTD
0x12
so your code should be:
*((BYTE*)sw4_dir) &= ~sw4_pin;//set port as
input
Secondly, there are I/O addresses. If you want a
SRAM access, add the memory offset (for atmega103, add 0x20 for
example);
Val.
|
[Prev in Thread] | Current Thread | [Next in Thread] |