Answered off-list. Eric
> -----Original Message----- > From: Chen, Yuan Guang (Ex CH97) [mailto:[email protected]] > Sent: Wednesday, January 23, 2013 2:10 AM > To: Weddington, Eric; [email protected] > Cc: Yuanguang Chen ([email protected]) > Subject: RE: [avr-chat] Where to see the original code of > > Dear Eric > > Need your help how to find further information in the avr-libc project > site. > > I know there are macro definition like below in the pgmspace.h > document. > * #define __LPM_classic__(addr) > * #define __LPM_tiny__(addr) > * #define __LPM_enhanced__(addr) > * #define __LPM_word_classic__(addr) > * #define __LPM_word_tiny__(addr) > * #define __LPM_word_enhanced__(addr) > * #define __LPM_dword_classic__(addr) > * #define __LPM_dword_tiny__(addr) > * #define __LPM_dword_enhanced__(addr) > * #define __LPM_float_classic__(addr) > * #define __LPM_float_tiny__(addr) > * #define __LPM_float_enhanced__(addr) > * #define __LPM(addr) __LPM_classic__(addr) > > > I also got from another site the information about the implementation > of the macro "__LPM_classic__(addr)" , like this: > #define __LPM_classic__(addr) \ > (__extension__({ \ > uint16_t __addr16 = (uint16_t)(addr); \ > uint8_t __result; \ > __asm__ \ > ( \ > "lpm" "\n\t" \ > "mov %0, r0" "\n\t" \ > : "=r" (__result) \ > : "z" (__addr16) \ > : "r0" \ > ); \ > __result; \ > })) > > > But problem is I try to find above detail implementation in the avr- > libc project site, I can not locate. Please inform normally how could > I find the final detail implementation. Or which document I shall > read 1st to get the regulation. > > And, in the new ATMEL STUDIO 6.0, I can setup project for device > xmega128b1 , and I can see the iox128b1.h is used in the project. Why > I can not locate this iox128b1.h file in the avr-libc project site? > > Thank you very much > Chen Yuanguang > > > > > -----Original Message----- > From: Weddington, Eric [mailto:[email protected]] > Sent: Friday, January 04, 2013 2:28 AM > To: Chen, Yuan Guang (Ex CH97); [email protected] > Subject: RE: [avr-chat] Where to see the original code of avr/common.h > and avr.portpins.h > > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On > > Behalf Of Chen, Yuan Guang (Ex CH97) > > Sent: Thursday, January 03, 2013 12:53 AM > > To: [email protected] > > Subject: [avr-chat] Where to see the original code of avr/common.h > and > > avr.portpins.h > > > > Dear > > > > > > > > I have tried to read docs , like in " http://www.nongnu.org/avr- > > libc/user-manual/ " , though there are places mentioned the io.h > > normally includes "common.h and portpins.h", I can not find the > detail > > of this 2 header docs. > > > > > > > > So I think I still not familiar with how to get information from > > online resources. Could you give a guide? > > They are part of the avr-libc project: > http://savannah.nongnu.org/projects/avr-libc _______________________________________________ AVR-chat mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avr-chat
