Follow-up Comment #4, patch #7464 (project avr-libc):

> There is a problem however with the port bit names though. iom168.h
> (or iomx8.h) names them PA0 PB0 etc, iom168p.h names them PORTA0
> PORTB0 etc. and neither file have the other definition.

All these portpin definitions are supplied from a central include
file named <avr/portpins.h>, in order to not having to duplicate
them in each individual file.  I just compiled the following test
code:


#include <avr/io.h>

int
main(void)
{
        DDRB = _BV(PB5);
        for (;;)
                PORTB = _BV(PORTB5);
}


using both, -mmcu=atmega168 and -mmcu=atmega168p.  It compiles
without any complaint, and both compilations yield the same code.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7464>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to