mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-19 19:40:10 +00:00
Add the "stk500generic" programmer that auto-probes for STK500
either firmware version 1 or 2. * Makefile.am (avrdude_SOURCES): add the new files stk500generic.c and stk500generic.h. * avrdude.conf.in: Add the stk500generic programmer type, and change the "stk500" entry to point to this programmer. * config_gram.y: Add the stk500generic keyword. * lexer.l: (Ditto.) * stk500.c: Change the stk500v1 code to not call exit() prematurely when failing to open the programmer, but instead return an error status. * stk500generic.c: (New file.) Stub programmer implementation. Probe for either stk500v1 or stk500v2, and adjust the current pgm appropriately. * stk500generic.h: (New file.) Declare the public interface(s) of stk500generic.c. * doc/avrdude.texi: Document the changed behaviour of stk500. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@663 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# programmer
|
||||
# id = <id1> [, <id2> [, <id3>] ...] ; # <idN> are quoted strings
|
||||
# desc = <description> ; # quoted string
|
||||
# type = par | stk500 | stk500v2 | stk500pp | stk500hvsp |
|
||||
# type = par | stk500 | stk500v2 | stk500pp | stk500hvsp | stk500generic |
|
||||
# avr910 | butterfly | usbasp |
|
||||
# jtagmki | jtagmkii | jtagmkii_isp; # programmer type
|
||||
# baudrate = <num> ; # baudrate for avr910-programmer
|
||||
@@ -316,12 +316,13 @@ programmer
|
||||
;
|
||||
|
||||
# This is supposed to be the "default" STK500 entry.
|
||||
# Refers to V1 by now, might be changed to V2 in a
|
||||
# future release.
|
||||
# Attempts to select the correct firmware version
|
||||
# by probing for it. Better use one of the entries
|
||||
# below instead.
|
||||
programmer
|
||||
id = "stk500";
|
||||
desc = "Atmel STK500";
|
||||
type = stk500;
|
||||
type = stk500generic;
|
||||
;
|
||||
|
||||
programmer
|
||||
|
||||
Reference in New Issue
Block a user