[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] Re: STK500 version 2.0 protocol
From: |
Joerg Wunsch |
Subject: |
Re: [avrdude-dev] Re: STK500 version 2.0 protocol |
Date: |
Mon, 31 Jan 2005 23:04:35 +0100 |
User-agent: |
Mutt/1.4.2.1i |
As Matthias Weißer wrote:
> I think it's better to have two different programmers. So it's
> easier to maintain the code. The protocoll is totaly different so
> that we would have a big if-condition in every function to decide
> which one should be used. It's IMHO a better way to split up in two
> different programmers.
Couldn't this be handled effectively by function pointers?
So use an stk500 set of function pointers, and if/when the init
function detects a newer firmware, it can simply switch the set of
function pointers to the stk500v2 one.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Re: [avrdude-dev] Re: STK500 version 2.0 protocol, Erik Walthinsen, 2005/01/31