mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 06:55: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:
13
stk500.c
13
stk500.c
@@ -442,8 +442,17 @@ static int stk500_initialize(PROGRAMMER * pgm, AVRPART * p)
|
||||
|
||||
buf[1] = p->devicecode;
|
||||
buf[2] = 0; /* device revision */
|
||||
buf[3] = 0; /* parallel and serial programming */
|
||||
buf[4] = 1; /* full parallel interface */
|
||||
|
||||
if ((p->flags & AVRPART_SERIALOK) && (p->flags & AVRPART_PARALLELOK))
|
||||
buf[3] = 0; /* device supports parallel and serial programming */
|
||||
else
|
||||
buf[3] = 1; /* device supports parallel only */
|
||||
|
||||
if ((p->flags & AVRPART_PARALLELOK) && (p->flags & AVRPART_PSEUDOPARALLEL))
|
||||
buf[4] = 1; /* full parallel interface */
|
||||
else
|
||||
buf[4] = 0; /* pseudo parallel interface */
|
||||
|
||||
buf[5] = 1; /* polling supported - XXX need this in config file */
|
||||
buf[6] = 1; /* programming is self-timed - XXX need in config file */
|
||||
|
||||
|
Reference in New Issue
Block a user