mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-29 07:25:27 +00:00
Add 'serial' and 'parallel' keywords to the grammar so that one can
say whether parts support these programming modes or not. Possible values for 'serial' are 'yes' or 'no'. Possible values for 'parallel' are 'yes', 'no', or 'pseudo'. Add a bit mask of flags to the AVRPART structure to capture these settings. Use these within stk500_initialize() to set the device parameters correctly. Defaults for 'serial' and 'parallel' are 'yes' unless specified otherwise. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@208 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -70,6 +70,10 @@ typedef struct opcode {
|
||||
} OPCODE;
|
||||
|
||||
|
||||
#define AVRPART_SERIALOK 0x0001 /* part supports serial programming */
|
||||
#define AVRPART_PARALLELOK 0x0002 /* part supports parallel programming */
|
||||
#define AVRPART_PSEUDOPARALLEL 0x0004 /* part has pseudo parallel support */
|
||||
|
||||
#define AVR_DESCLEN 64
|
||||
#define AVR_IDLEN 32
|
||||
typedef struct avrpart {
|
||||
@@ -80,6 +84,7 @@ typedef struct avrpart {
|
||||
unsigned char pagel; /* for parallel programming */
|
||||
unsigned char bs2; /* for parallel programming */
|
||||
int reset_disposition; /* see RESET_ enums */
|
||||
unsigned flags; /* see AVRPART_ masks */
|
||||
|
||||
OPCODE * op[AVR_OP_MAX]; /* opcodes */
|
||||
|
||||
|
Reference in New Issue
Block a user