[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] Translating pin numbers to names
From: |
Joerg Wunsch |
Subject: |
Re: [avrdude-dev] Translating pin numbers to names |
Date: |
Thu, 28 Jun 2012 22:50:48 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
As Hannes Weisbach wrote:
> 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 think it would make most sense to extend the current function in
avrpart.c, and export it.
As all the other exported functions in that file start with avr_, so
in order to reduce the namespace pollution (this file is part of the
backend library), I suggest renaming the function into avr_pin_name()
by the same time. It's only used once by now, so it's not a big
effort to change the name.
Please make it return a "const char *" (rather than just "char *"),
too, as it returns a pointer to a constant string.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)