AVR Downloader/UploaDEr - Patches: patch #7010, Win32 enhanced bitbang_delay
You are not allowed to post comments on this tracker with your current authentication level.
patch #7010: Win32 enhanced bitbang_delay
Submitter: | Doug <dougy83> | ||
Submitted: | Wed 02 Dec 2009 09:37:40 AM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | Done | Privacy: | Public |
Assigned to: | joerg_wunsch | Open/Closed: | Closed |
Fri 08 Jan 2010 08:31:55 PM UTC, comment #1: |
Joerg Wunsch <joerg_wunsch> |
Wed 02 Dec 2009 09:37:40 AM UTC, original submission:
I read that the bitbang_delay is not calibrated for Win32 so I wrote the following code. It uses the performance counters which are high accuracy hardware counters (3.6MHz on my 5 yr old laptop). If the counters are not available, it falls back to the uncalibrated delay method. Seems to have a ~3us overhead on my laptop.
|
Doug <dougy83> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2010-01-08 | joerg_wunsch | Status | In Progress | Done | |
Open/Closed | Open | Closed | |||
2010-01-08 | joerg_wunsch | Status | None | In Progress | |
Assigned to | None | joerg_wunsch |
Powered by Savane 3.13-f8d8.
Corresponding source code
I implemented it a little differently (I've put the probing
into the bitbang_calibrate_delay routine rather than having
it in bitbang_delay itself), but otherwise thanks for the
nice contribution.