both syntaxes work with the ATMega168, but the 328 does not support the PCx, just PINCx (changing the letter to be what register you wish, i just referred to register C).
tempmj:
rather than PC0, PC1, etc do PINC0, PINC1, etc
both syntaxes work with the ATMega168, but the 328 does not support the PCx, just PINCx (changing the letter to be what register you wish, i just referred to register C).
Wow I didn't know that, I think I'll make a patch to my own installation to fix this.
this was apparently an avrgcc decision rather than an arduino decision, BTW...
I didn't expect Arduino to have any leverage at all on avr-gcc development, and was this really a "decision"? It feels like one of those things that got left out accidentally...
was this really a "decision"? It feels like one of those things that got left out accidentally...
It does appear to be fixed in newer gcc distributions.
But it was a pretty stupid for a mistake; the 328p is nearly identical to 168, but the relevant include file was defined entirely differently. It "smells" of someone making a decision that was later over-ridden. (Or it could be Atmel's fault. On some platforms, these include files are derived automatically from distributer-provided asm files or documentation, and Atmel could have changed their formatting and/or strategy.)
is there a way i can make a new include file to allow for the old syntax? a lot of programs i bump into seem to use it and it is a pain to always have to change it by hand