[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] attiny10 with ftdi and bitbang
From: |
Darell Tan |
Subject: |
Re: [avrdude-dev] attiny10 with ftdi and bitbang |
Date: |
Mon, 9 Jul 2012 23:17:42 +0800 |
On Mon, Jul 9, 2012 at 10:29 PM, Hannes Weisbach
<address@hidden> wrote:
>
> Am 09.07.2012 um 16:01 schrieb Darell Tan:
>
>> Hi Hannes,
>>
>> Can I ask why you did not simply implement cmd_tpi, chip_erase,
>> program_enable and initialize functions accordingly?
> I did and I never said otherwise. I just don't like it, because it causes
> much code duplication. Have a look at what bitbang_chip_erase does in the TPI
> section and what usbasp_tpi_program_enable does.
I see, then I misunderstood you because you mentioned you "essentially
copied the code from usbasp and renamed everything from usbasp to
avrftdi" which includes usbasp_tpi_read/write_byte,
usbasp_tpi_paged_read/write as well.
As for common code, I think there could be a common chip_erase and
program_enable (like avr_chip_erase or something). It may not be the
best solution, but it's definitely better than having duplicate code
in the different programmers.
>
> As far as I can tell your understanding of avrftdi and avrdude is correct :)
>
> Cheers,
> Hannes
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, (continued)
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, matthew venn, 2012/07/02
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Darell Tan, 2012/07/03
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Hannes Weisbach, 2012/07/03
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Darell Tan, 2012/07/03
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Hannes Weisbach, 2012/07/03
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Hannes Weisbach, 2012/07/08
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Darell Tan, 2012/07/09
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Hannes Weisbach, 2012/07/09
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Darell Tan, 2012/07/09
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Hannes Weisbach, 2012/07/09
- Re: [avrdude-dev] attiny10 with ftdi and bitbang,
Darell Tan <=
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Hannes Weisbach, 2012/07/09
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Darell Tan, 2012/07/09
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, Joerg Wunsch, 2012/07/09
- Re: [avrdude-dev] attiny10 with ftdi and bitbang, René Liebscher, 2012/07/03