Speaking for ATMEGA and T1 (probably the same in T2) the basic pin,
port, and register definitions are in:
/usr/local/avr/include/avr/iom128.h
And as just recently mentioned here, the control registers are
memory mapped so writing to them makes things happen directly.
Search out a copy of the ATMEGA128 manual for TooMuchInformation
about what each bit does.
MS
Bernardo Avila Pires wrote:
Hi! Can you help me, please? Where do I find the declarations of DDRA,
PORTA, PINA, etc ? It seems to me that the bit values are written to
memory and I suppose the CPU reads from them. Is that so? Is there such
information in the ATMega docs?
Thank you very much.
--
"The truth shall set you free"
<a href="http://www.nerdtests.com/nq_ref.html">
<img src=" http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif"
alt="I am nerdier than 99% of all people. Are you a nerd? Click here to
find out!"></a>
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help