avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [patch #7464] Fix iom168p.h to be compatible with iom168.


From: Joerg Wunsch
Subject: [avr-libc-dev] [patch #7464] Fix iom168p.h to be compatible with iom168.h
Date: Fri, 03 May 2013 14:17:23 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]