patchAVR Downloader/UploaDEr - Patches: patch #7671, Sorting programmers and parts...

 
 

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

patch #7671: Sorting programmers and parts lists for console output

Submitter:  Rene Liebscher <rliebscher>
Submitted:  Sun 20 Nov 2011 08:21:31 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  rliebscher Open/Closed:  Closed

Sat 17 Dec 2011 01:58:31 PM UTC, comment #1: 

Integrated in svn revision 1019

Rene Liebscher <rliebscher>
Group Member
Sun 20 Nov 2011 08:21:31 PM UTC, original submission:  

-- sorted_lists.patch --
This patch sorts the programmers and parts list, which appear for unknown/not set programmers or parts.

It add a lsort function in list.c (just a simple bubble sort), a sort_avrparts function in avrpart.c and a sort_programmers in pgm.c. These functions are used in lists_programmers and list_parts in main.c.

Additional it modifies the output format for the longer id which now are in use. It also shows the information about the used configuration file and line only if verbose > 0. (Most people are not interested in this information.)

Another change is in pgm.c in walk_programmers as one can define programmers as "id = <id1> [, <id2> [, <id3>] ...] ;  # <idN> are quoted strings". locate_programmers does check all ids for a match, but walk_programmers did use only one entry. The change calls now the callback for all ids.

-- part_names.patch --
If using the sorted lists, you can see that some parts are written as ATMEGA... other as ATmega... or attiny... This second patch changes the names (desc field) to use the offical naming (ATmega..., ATtiny..., ATxmega...) The function locate_part in avrpart.c uses strcasecmp so I don't think this gives any problems with current users.


Rene Liebscher <rliebscher>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #24406:  sorted_lists.patch added by rliebscher (6KiB - application/octet-stream)
file #24407:  parts_names.patch added by rliebscher (16KiB - 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
  • -email is unavailable- added by rliebscher (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-12-17 rliebscher Open/ClosedOpen Closed
    2011-12-16 rliebscher Assigned toNone rliebscher
    2011-11-20 rliebscher Attached File- Added sorted_lists.patch, #24406
        Attached File- Added parts_names.patch, #24407
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code