mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
Add scratchmonkey programmers
This commit is contained in:
@@ -1414,7 +1414,7 @@ programmer
|
||||
#------------------------------------------------------------
|
||||
|
||||
programmer
|
||||
id = "stk500v2";
|
||||
id = "stk500v2", "scratchmonkey";
|
||||
desc = "Atmel STK500 version 2.x firmware";
|
||||
type = "stk500v2";
|
||||
prog_modes = PM_TPI | PM_ISP;
|
||||
@@ -1427,7 +1427,7 @@ programmer
|
||||
#------------------------------------------------------------
|
||||
|
||||
programmer
|
||||
id = "stk500pp";
|
||||
id = "stk500pp", "scratchmonkey_pp";
|
||||
desc = "Atmel STK500 v2 in parallel programming mode";
|
||||
type = "stk500pp";
|
||||
prog_modes = PM_HVPP;
|
||||
@@ -1440,7 +1440,7 @@ programmer
|
||||
#------------------------------------------------------------
|
||||
|
||||
programmer
|
||||
id = "stk500hvsp";
|
||||
id = "stk500hvsp", "scratchmonkey_hvsp";
|
||||
desc = "Atmel STK500 v2 in high-voltage serial programming mode";
|
||||
type = "stk500hvsp";
|
||||
prog_modes = PM_HVSP;
|
||||
|
||||
@@ -755,6 +755,9 @@ retry:
|
||||
if (siglen >= strlen("STK500_2") &&
|
||||
memcmp(resp + 3, "STK500_2", strlen("STK500_2")) == 0) {
|
||||
PDATA(pgm)->pgmtype = PGMTYPE_STK500;
|
||||
} else if (siglen >= strlen("SCRATCHMONKEY") &&
|
||||
memcmp(resp + 3, "SCRATCHMONKEY", strlen("SCRATCHMONKEY")) == 0) {
|
||||
PDATA(pgm)->pgmtype = PGMTYPE_STK500;
|
||||
} else if (siglen >= strlen("AVRISP_2") &&
|
||||
memcmp(resp + 3, "AVRISP_2", strlen("AVRISP_2")) == 0) {
|
||||
PDATA(pgm)->pgmtype = PGMTYPE_AVRISP;
|
||||
|
||||
Reference in New Issue
Block a user