1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-04 22:53:08 +02:00

avrdude/patches/nanonote.patch: clean up initialization of pin_map

This commit is contained in:
Werner Almesberger 2012-07-22 10:47:14 -03:00
parent 6b838ee479
commit 266fe49f0c

View File

@ -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