avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [patch #7671] Sorting programmers and parts lists for cons


From: Rene Liebscher
Subject: [avrdude-dev] [patch #7671] Sorting programmers and parts lists for console output
Date: Sun, 20 Nov 2011 20:21:32 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2

URL:
  <http://savannah.nongnu.org/patch/?7671>

                 Summary: Sorting programmers and parts lists for console
output
                 Project: AVR Downloader/UploaDEr
            Submitted by: rliebscher
            Submitted on: So 20 Nov 2011 20:21:31 GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

-- 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. 





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: So 20 Nov 2011 20:21:31 GMT  Name: sorted_lists.patch  Size: 6kB   By:
rliebscher

<http://savannah.nongnu.org/patch/download.php?file_id=24406>
-------------------------------------------------------
Date: So 20 Nov 2011 20:21:31 GMT  Name: parts_names.patch  Size: 16kB   By:
rliebscher

<http://savannah.nongnu.org/patch/download.php?file_id=24407>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7671>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]