From 266fe49f0cf6068e1a5e0276c1ad816004c45fe0 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 22 Jul 2012 10:47:14 -0300 Subject: [PATCH] avrdude/patches/nanonote.patch: clean up initialization of pin_map --- avrdude/patches/nanonote.patch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/avrdude/patches/nanonote.patch b/avrdude/patches/nanonote.patch index 8848414..ec71085 100644 --- a/avrdude/patches/nanonote.patch +++ b/avrdude/patches/nanonote.patch @@ -59,7 +59,7 @@ Index: avrdude-5.11.1/lexer.l Index: avrdude-5.11.1/nanonote.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ avrdude-5.11.1/nanonote.c 2012-07-22 10:44:40.605282695 -0300 ++++ avrdude-5.11.1/nanonote.c 2012-07-22 10:47:07.398111708 -0300 @@ -0,0 +1,378 @@ +/* + * avrdude - A Downloader/Uploader for AVR device programmers @@ -125,15 +125,15 @@ Index: avrdude-5.11.1/nanonote.c + unsigned port; + unsigned bit; +} pin_map[] = { -+ { 0, 0}, /* 0: not assigned */ -+ { 3, 11 }, /* 1: PD11, DAT1 */ -+ { 3, 10 }, /* 2: PD12, DAT0 */ ++ { 0, 0 }, /* 0: not assigned */ ++ { DAT1 }, /* 1: PD11, DAT1 */ ++ { DAT0 }, /* 2: PD10, DAT0 */ + { 0, 0 }, /* 3: VSS */ -+ { 3, 9 }, /* 4: PD09, CLK (also used for clock output) */ ++ { CLK }, /* 4: PD09, CLK (also used for clock output) */ + { 0, 0 }, /* 5: VDD */ -+ { 3, 8 }, /* 6: PD08, CMD */ -+ { 3, 13 }, /* 7: PD13, DAT3 */ -+ { 3, 12 } /* 8: PD13, DAT2 */ ++ { CMD }, /* 6: PD08, CMD */ ++ { DAT3 }, /* 7: PD13, DAT3 */ ++ { DAT2 } /* 8: PD12, DAT2 */ +}; + +#define PIN_IDX_CLK 4