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

 
 

You are not allowed to post comments on this tracker with your current authentification 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: NonePriority: 5 - Normal
Status: Ready For TestPrivacy: 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 (50kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 03 Sep 2013 08:01:48 PM UTCrliebscherOpen/ClosedOpen=>Closed
    Tue 31 Jan 2012 07:04:03 PM UTCrliebscherStatusNone=>Ready For Test
    Thu 26 Jan 2012 09:28:28 PM UTCrliebscherAttached File-=>Added pgm_type.patch, #24900

    Back to the top


    Powered by Savane 3.1-cleanup