[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [patch #6866] bug #26703: [Feature Request] Support device
From: |
Michael Dreher |
Subject: |
[avrdude-dev] [patch #6866] bug #26703: [Feature Request] Support device reset for 'arduino' programmer type |
Date: |
Fri, 06 Nov 2009 22:17:17 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 (.NET CLR 3.5.30729) Creative ZENcast v2.01.01 |
Follow-up Comment #11, patch #6866 (project avrdude):
Hi Michal,
I successfully tested svn revision 878 on Windows with the following
devices:
* Arduino-BT (with DIY auto-reset)
* Arduino Duemilanove with ATmega168
* Arduino Duemilanove with ATmega328
To compile this version, I had to make the following change, because sleep()
is not available on the Win32 platform:
Index: jtagmkII.c
===================================================================
--- jtagmkII.c (revision 878)
+++ jtagmkII.c (working copy)
@@ -2847,7 +2847,7 @@
status = jtagmkII_write_SABaddr(pgm, 0xffff0c00, 0x05, 0x0000004);
if(status < 0) {lineno = __LINE__; goto eRR;} // Power Manager
status = jtagmkII_write_SABaddr(pgm, 0xffff0c00, 0x05, 0x0000005);
if(status < 0) {lineno = __LINE__; goto eRR;}
- sleep(1);
+ usleep(1*1000);
val = jtagmkII_read_SABaddr(pgm, 0xfffe1408, 0x05); if(val != 0x0000a001)
{lineno = __LINE__; goto eRR;} // PLL 0
Michael
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6866>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/