diff --git a/sparkfun/avr/avrdude.conf b/sparkfun/avr/avrdude.conf index c8b7467e..61f79873 100644 --- a/sparkfun/avr/avrdude.conf +++ b/sparkfun/avr/avrdude.conf @@ -1110,6 +1110,13 @@ programmer miso = ~8; ; +programmer + id = "linuxspi"; + desc = "Use the Linux SPI device in /dev/spidev*"; + type = "linuxspi"; + reset = 26; +; + # # PART DEFINITIONS # diff --git a/sparkfun/avr/platform.txt b/sparkfun/avr/platform.txt index 0a282020..5bab25de 100644 --- a/sparkfun/avr/platform.txt +++ b/sparkfun/avr/platform.txt @@ -92,7 +92,7 @@ recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} { # ------------------------------ tools.avrdude.path={runtime.tools.avrdude.path} tools.avrdude.cmd.path={path}/bin/avrdude -tools.avrdude.config.path={path}/etc/avrdude.conf +tools.avrdude.config.path={runtime.platform.path}/avrdude.conf tools.avrdude.network_cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA diff --git a/sparkfun/avr/programmers.txt b/sparkfun/avr/programmers.txt new file mode 100644 index 00000000..c7468ea2 --- /dev/null +++ b/sparkfun/avr/programmers.txt @@ -0,0 +1,5 @@ +pi_grammer.name=PI_grammer +pi_grammer.protocol=linuxspi +pi_grammer.program.protocol=linuxspi +pi_grammer.program.tool=avrdude +pi_grammer.program.extra_params=-P /dev/spidev0.0 -b 2000000