avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] Translating pin numbers to names


From: Weddington, Eric
Subject: Re: [avrdude-dev] Translating pin numbers to names
Date: Thu, 28 Jun 2012 15:01:03 +0000

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: address@hidden
> [mailto:address@hidden On Behalf Of
> Hannes Weisbach
> Sent: Wednesday, June 27, 2012 1:23 PM
> To: address@hidden
> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/avrdude-dev



reply via email to

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