mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-15 02:01:07 +00:00
* pgm_type.c: Add "jtagice3_isp" programmer hook
* avrdude.conf.in: Add "jtag3isp" programmer * jtag3.c: jtag3_setparm() is now public * jtag3.h: (Dito) * stk500v2_private.h: Command 0x1D is CMD_SPI_MULTI only for STK500v2, AVRISPmkII, and JTAGICEmkII; for JTAGICE3, it's CMD_SET_SCK now; also add CMD_GET_SCK * avrpart.c (avr_get_output_index): New function * avrpart.h: (Dito) * stk500v2.c: Implement the pasthrough programmer glue logic for JTAGICE3 in ISP mode * stk500v2.h: (Dito) * avrdude.1: Document the JTAGICE3 support. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1119 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
21
avrpart.c
21
avrpart.c
@@ -185,6 +185,27 @@ int avr_get_output(OPCODE * op, unsigned char * res, unsigned char * data)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* avr_get_output_index()
|
||||
*
|
||||
* Calculate the byte number of the output data based on the
|
||||
* opcode data.
|
||||
*/
|
||||
int avr_get_output_index(OPCODE * op)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
for (i=0; i<32; i++) {
|
||||
if (op->bit[i].type == AVR_CMDBIT_OUTPUT) {
|
||||
j = 3 - i / 8;
|
||||
return j;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
static char * avr_op_str(int op)
|
||||
{
|
||||
switch (op) {
|
||||
|
||||
Reference in New Issue
Block a user