From eb7c3ef95df3a3607d7b4ed867323b28c8ea6513 Mon Sep 17 00:00:00 2001 From: Dave Jacobowitz Date: Thu, 2 Mar 2023 17:00:13 -0800 Subject: [PATCH] extend max pin number to 1000 Some embedded computers with GPIO are using very large pin numbers. For example, the pins on the LePotato SBC use numbers in the 400's. Extending this max value makes is possible for users to make custom avrdude.conf additions that use this pins. Le Potato board: https://libre.computer/products/aml-s905x-cc/ Le Potato pin numbering reference: https://docs.google.com/spreadsheets/d/1U3z0Gb8HUEfCIMkvqzmhMpJfzRqjPXq7mFLC-hvbKlE --- src/libavrdude.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libavrdude.h b/src/libavrdude.h index b5ba9234..ced6e6b4 100644 --- a/src/libavrdude.h +++ b/src/libavrdude.h @@ -428,7 +428,7 @@ enum { #ifdef HAVE_LINUXGPIO /* Embedded systems might have a lot more gpio than only 0-31 */ #undef PIN_MAX -#define PIN_MAX 400 /* largest allowed pin number */ +#define PIN_MAX 1000 /* largest allowed pin number */ #endif /** Number of pins in each element of the bitfield */