In Amforth-shell there are some bits described.
(ATmega328P)> TCCR1A_COM1A .
C0 ok
It is trivial to issue
TCCR1A_COM1A TCCR1A_COM1B or TCCR1A c! And all those four bits are set.
However most of the time COM1A part of register shouldn't be 11 but for example
10
So how do you guys write TCCR1A_COM1A lowerBitClearPlease c! with register
names?
Should there be TCCR1A_COM1A0 and 1 with values 40 and 80?
This is'nt real problem but I'm rather thinking situation where I change MCU
and I want shell or amforth to give error if I try to access some nonexistent
register feature.
Best regards,
Hannu Vuolasaho
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
[email protected]
https://lists.sourceforge.net/lists/listinfo/amforth-devel