avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] config file change


From: Theodore A. Roth
Subject: [avrdude-dev] config file change
Date: Sun, 16 Mar 2003 11:11:13 -0800 (PST)

Hi,

I'm still working on the avr910 stuff.

The avr910 needs a devicecode in the config file like the stk500 does. 
Sadly, the codes are not compatible.

If there any objection to changing the config file format as such:

Index: avrdude.conf.in
===================================================================
RCS file: /cvsroot/avrdude/avrdude/avrdude.conf.in,v
retrieving revision 1.7
diff -u -r1.7 avrdude.conf.in
--- avrdude.conf.in     16 Mar 2003 18:19:37 -0000      1.7
+++ avrdude.conf.in     16 Mar 2003 18:56:16 -0000
@@ -30,7 +30,8 @@
 #   part
 #       id               = <id> ;                 # quoted string
 #       desc             = <description> ;        # quoted string
-#       devicecode       = <num> ;                # numeric
+#       stk500_devcode   = <num> ;                # numeric
+#       avr910_devcode   = <num> ;                # numeric
 #       chip_erase_delay = <num> ;                # micro-seconds
 #       pagel            = <num> ;                # pin name in hex, i.e., 0xD7
 #       bs2              = <num> ;                # pin name in hex, i.e., 0xA0


This will make old config files break. If backwards compatibility is needs, 
we could have the parse set stk500_devcode if it sees devicecode.

I think it would be best to just error out if the parser sees devicecode and 
tell the user to change their config file as such:

  sed 's/devicecode/stk500_devcode/' avrdude.conf

Ted





reply via email to

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