1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-24 01:55:21 +02:00

nanonote.patch: decrease extra delay from 100 to 20 us (sufficient and faster)

This commit is contained in:
Werner Almesberger 2011-02-09 21:18:24 -03:00
parent 7fba9a2a51
commit 0d6dddf85a

View File

@ -1,7 +1,7 @@
Index: avrdude/avrdude-5.10/Makefile.am
===================================================================
--- avrdude.orig/avrdude-5.10/Makefile.am 2011-02-04 17:40:39.000000000 -0300
+++ avrdude/avrdude-5.10/Makefile.am 2011-02-04 17:40:48.000000000 -0300
--- avrdude.orig/avrdude-5.10/Makefile.am 2011-02-09 21:16:39.000000000 -0300
+++ avrdude/avrdude-5.10/Makefile.am 2011-02-09 21:17:04.000000000 -0300
@@ -111,6 +111,8 @@
lists.c \
lists.h \
@ -13,8 +13,8 @@ Index: avrdude/avrdude-5.10/Makefile.am
pgm.c \
Index: avrdude/avrdude-5.10/config_gram.y
===================================================================
--- avrdude.orig/avrdude-5.10/config_gram.y 2011-02-04 17:40:39.000000000 -0300
+++ avrdude/avrdude-5.10/config_gram.y 2011-02-04 17:40:48.000000000 -0300
--- avrdude.orig/avrdude-5.10/config_gram.y 2011-02-09 21:16:39.000000000 -0300
+++ avrdude/avrdude-5.10/config_gram.y 2011-02-09 21:17:04.000000000 -0300
@@ -48,6 +48,7 @@
#include "avr.h"
#include "jtagmkI.h"
@ -46,8 +46,8 @@ Index: avrdude/avrdude-5.10/config_gram.y
current_prog->desc[PGM_DESCLEN-1] = 0;
Index: avrdude/avrdude-5.10/lexer.l
===================================================================
--- avrdude.orig/avrdude-5.10/lexer.l 2011-02-04 17:40:39.000000000 -0300
+++ avrdude/avrdude-5.10/lexer.l 2011-02-04 17:40:48.000000000 -0300
--- avrdude.orig/avrdude-5.10/lexer.l 2011-02-09 21:16:39.000000000 -0300
+++ avrdude/avrdude-5.10/lexer.l 2011-02-09 21:17:04.000000000 -0300
@@ -164,6 +164,7 @@
min_write_delay { yylval=NULL; return K_MIN_WRITE_DELAY; }
miso { yylval=NULL; return K_MISO; }
@ -59,7 +59,7 @@ Index: avrdude/avrdude-5.10/lexer.l
Index: avrdude/avrdude-5.10/nanonote.c
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ avrdude/avrdude-5.10/nanonote.c 2011-02-04 17:48:11.000000000 -0300
+++ avrdude/avrdude-5.10/nanonote.c 2011-02-09 21:17:18.000000000 -0300
@@ -0,0 +1,295 @@
+/*
+ * avrdude - A Downloader/Uploader for AVR device programmers
@ -213,7 +213,7 @@ Index: avrdude/avrdude-5.10/nanonote.c
+ * We get unstable results with values <= 16 but stable results
+ * with 17 and above.
+ */
+ bitbang_delay(pgm->ispdelay+100);
+ bitbang_delay(pgm->ispdelay+20);
+
+ return 0;
+}
@ -359,7 +359,7 @@ Index: avrdude/avrdude-5.10/nanonote.c
Index: avrdude/avrdude-5.10/nanonote.h
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ avrdude/avrdude-5.10/nanonote.h 2011-02-04 17:40:48.000000000 -0300
+++ avrdude/avrdude-5.10/nanonote.h 2011-02-09 21:17:04.000000000 -0300
@@ -0,0 +1,6 @@
+#ifndef nanonote_h
+#define nanonote_h