avrdude.conf: move raspberry_pi_gpio reset, add prog_modes, reformat

This makes the raspberry_pi_gpio programmer work on older Pis with the
smaller 26-pin GPIO header.

Updates based on code review by Hans (MCUdude).
This commit is contained in:
Sebastian Kuzminsky
2023-03-09 14:46:02 -07:00
parent 5abbefe63b
commit bfb795551c

View File

@@ -725,15 +725,17 @@ programmer
# # Program from a Raspberry Pi GPIO port using linuxgpio
# #------------------------------------------------------------
#
programmer
id = "raspberry_pi_gpio";
desc = "Bitbang Raspberry Pi GPIO via linuxgpio (sysfs or libgpiod)";
type = "linuxgpio";
connection_type = linuxgpio;
reset = 12;
sck = 24;
sdo = 23;
sdi = 18;
id = "raspberry_pi_gpio";
desc = "Bitbang Raspberry Pi GPIO via linuxgpio (sysfs or libgpiod)";
type = "linuxgpio";
prog_modes = PM_ISP;
connection_type = linuxgpio;
reset = 22;
sck = 24;
sdo = 23;
sdi = 18;
;
@HAVE_LINUXGPIO_END@