patchAVR Downloader/UploaDEr - Patches: patch #7709, Config file: change programmer...


You are not allowed to post comments on this tracker with your current authentication level.

patch #7709: Config file: change programmer type to string

Submitted by:  Rene Liebscher <rliebscher>
Submitted on:  Thu 26 Jan 2012 09:28:27 PM UTC  
Category:  None Priority:  5 - Normal
Status:  Ready For Test Privacy:  Public
Assigned to:  Rene Liebscher <rliebscher> Open/Closed:  Closed

Tue 31 Jan 2012 07:04:03 PM UTC, comment #1:

Implemented in svn revision 1051

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.
Thu 26 Jan 2012 09:28:27 PM UTC, original submission:

Currently the programmer types are own keywords in the config files. This also means for every new programmer one has to extend the lexer and parser.

This patch let the programmer type be specified as quoted string. It adds a C-file which provides a locate_programmer_type function for strings. It is internal realized as array of all known programmer types. So only this array needs to be extended for new programmers. (When this internal array would be later implemented as a list one could even realize a plugin concept for programmer drivers.)
The implemented programmer types can be listed using 'avrdude -c ?type'. (This is also used to autofill the corresponding table in the documentation.) All programmers export now also a string xxxx_desc which is used as description entry in the table and output at 'avrdude -c ?type'.

The config file is changed to the new format. Also the lexer and parser are updated. The parser would even bring an appropriate error message when the old format is used. For this the lexer return YYERRCODE instead of exit(1). So there is no exit left in the lexer, but the parser call still yyerror() which contains the exit.)

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.


Attached Files
file #24900:  pgm_type.patch added by rliebscher (50KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rliebscher (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-03 rliebscher Open/ClosedOpen => Closed
    2012-01-31 rliebscher StatusNone => Ready For Test
    2012-01-26 rliebscher Attached File- => Added pgm_type.patch, #24900

    Back to the top

    Powered by Savane 3.3