Well it sounds like it would be useful! I don't know how it should be organized. Joerg Wunsch might have some input on that.
Eric > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of > Hannes Weisbach > Sent: Wednesday, June 27, 2012 1:23 PM > To: [email protected] > Subject: [avrdude-dev] Translating pin numbers to names > > Hello there, > > I am (still) currently cleaning up avrftdi. As a part of that, I implemented > better error/status messages, for example when configuring pins. Instead of > some hexnumbers and bitmasks, the user now gets a textual description of what > went wrong with which pin. > To do that, I want textual representations for the pins used by avrdude, > defined in pindefs.h. Right now I am using an array containing string names, > located in avrftdi.c. However, similar (but limited, i.e. not complete) > functionality is implemented in avrpart.c:577, namely static char* > pin_name(int);. > Unfortunately, as the declaration says, this function is not in global scope. > So my question is if there is interest in adding such a function (turning pin > number into string names) to avrdude and if so, in which file should it be > placed best? > I volunteer to make the changes and submit a patch, if there is interest; > otherwise I will keep my name translation local to avrftdi.c. > > Best Regards, > Hannes Weisbach > _______________________________________________ > avrdude-dev mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/avrdude-dev _______________________________________________ avrdude-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avrdude-dev
