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
This commit is contained in:
Dave Jacobowitz
2023-03-02 17:00:13 -08:00
parent dd7b359d6b
commit eb7c3ef95d

View File

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