Improve defaults and documentation of linuxspi

* avrdude.conf.in: use @HAVE_LINUXGPIO_BEGIN/END@ and
@HAVE_LINUXSPI_BEGIN/END@ brackets around respective config
snippets; values were already set in configure.ac.
* linuxspi.c (linuxspi_open): Provide a reasonable (for the
Raspberry Pi) default for the -P option
* avrdude.1: Extend linuxspi documentation
* doc/avrdude.texi: (Dito.)



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1496 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch
2021-11-27 17:33:49 +00:00
parent 18fe8ef834
commit dd1255b0c8
6 changed files with 59 additions and 31 deletions

View File

@@ -1519,6 +1519,7 @@ programmer
@HAVE_PARPORT_END@
@HAVE_LINUXGPIO_BEGIN@
#This programmer bitbangs GPIO lines using the Linux sysfs GPIO interface
#
#To enable it set the configuration below to match the GPIO lines connected to the
@@ -1540,23 +1541,22 @@ programmer
# mosi = ?;
# miso = ?;
#;
@HAVE_LINUXGPIO_END@
@HAVE_LINUXSPI_BEGIN@
# This programmer uses the built in linux SPI bus devices to program an
# attached AVR. A GPIO accessed through the sysfs GPIO interface needs to
# be specified for a reset pin since the linux SPI userspace functions do
# not allow for control over the slave select/chip select signal.
# attached AVR. The reset pin must be attached to a GPIO pin that
# is otherwise unused (see gpioinfo(1)); the SPI bus CE pins are not
# suitable since they would release /RESET too early.
#
# To use it, copy this snippet into your ~/.avrduderc, make sure the
# 'reset' entry is configured correctly.
#
# programmer
# id = "linuxspi";
# desc = "Use Linux SPI device in /dev/spidev*";
# type = "linuxspi";
# reset = 25;
# baudrate=400000;
# ;
programmer
id = "linuxspi";
desc = "Use Linux SPI device in /dev/spidev*";
type = "linuxspi";
reset = 25; # Pi GPIO number - this is J8:22
;
@HAVE_LINUXSPI_END@
# some ultra cheap programmers use bitbanging on the
# serialport.