[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Re: Compiling for MEGA128 on Freaks Experimental Release
From: |
Peter Bosscha |
Subject: |
[avr-gcc-list] Re: Compiling for MEGA128 on Freaks Experimental Release |
Date: |
Thu, 27 Jun 2002 17:25:15 +0200 |
An Addendum to my prev message:
My DDR() and PIN() macros didn't work for PORTF & PORTG
so herewith a better version:
#define DDR(x) _SFR_IO8(_SFR_IO_REG_P(x) ? _SFR_ADDR(x)-1 :
_SFR_IO_ADDR(x) -1)
#define PIN(x) _SFR_IO8(_SFR_IO_REG_P(x) ? _SFR_ADDR(x)-2 :
_SFR_IO_ADDR(x) -2)
Peter
avr-gcc-list at http://avr1.org
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-gcc-list] Re: Compiling for MEGA128 on Freaks Experimental Release,
Peter Bosscha <=