The XMLs I have come from AVR Studio 4.16 build 628. I forgot to mention, to overcome #define limitation, pin names that: - Start with '(like 'RESET, 'RD, 'SS, etc) will be named N_SS_DDR - Ends with +(like AMP1+) will be named AMP1_P_DDR - Ends with -(like AMP1-) will be named AMP1_N_DDR
Comments on that? On Tue, Mar 10, 2009 at 7:46 AM, Weddington, Eric <[email protected]> wrote: > > >> -----Original Message----- >> From: >> [email protected] >> [mailto:avr-libc-dev-bounces+eweddington=cso.atmel....@nongnu. >> org] On Behalf Of Frédéric Nadeau >> Sent: Tuesday, March 10, 2009 6:17 AM >> To: [email protected] >> Subject: Re: [avr-libc-dev] Nice to have: XCK Definition >> >> My original plan was to have something like this: >> >> #define INT0_DDR DDRB >> #define INT0_PORT PORTB >> #define INT0_PIN PINB >> #define INT0_IDX 1 >> >> Witch let people use it in a more or less common way: >> INT0_DDR |= _BV(INT0_IDX ); > > I would prefer that it be used in the common way above. I would rather not > get into adding new macros. > > >> >> A word on progress: >> I'm almost done with my program to append the defines at the end of >> each ioxxx.h. I did use the original AVR Studio xml(I scraped my linux >> machine days ago, so I did not use Bob xml file). Should I report >> errors in AVR Studio xml to someone?(Like PD0 being written as "PDO") > > Please report them to avr AT atmel DOT com. > > Oh, are you using the latest XML files from the 4.16 release of AVR Studio? > > >> Since this require a lot of file to be modified, I was thinking that >> it might be a good idea to make a brench in the CVS for that feature, >> and when it is done and clean merge it with HEAD. > > One way we could do this, is to commit it to HEAD, but not to the 1.6 branch > yet. The latest releases are from the 1.6 branch. > > Joerg, do you have any thoughts about this? > > Eric Weddington > _______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
