From 0d6dddf85aa5c5156cdf7b4547f3ac8a5b4257ca Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 9 Feb 2011 21:18:24 -0300 Subject: [PATCH] nanonote.patch: decrease extra delay from 100 to 20 us (sufficient and faster) --- uart/avrdude/patches/nanonote.patch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/uart/avrdude/patches/nanonote.patch b/uart/avrdude/patches/nanonote.patch index f8361d1..3bb0079 100644 --- a/uart/avrdude/patches/nanonote.patch +++ b/uart/avrdude/patches/nanonote.patch @@ -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