klipper/src/avr
Grigori Goronzy ebd9035325 SPI: introduce spi_prepare function
The SPI interface needs to be enabled and configured to the correct
settings of a given oid before CS is asserted. The new function
spi_prepare() allows ports to do that.

This port only introduces the new function in all ports with no
implementation and adds the call to the Klipper generic firmware code.
That means everything still works as before. Ports need to be changed
to fix the underlying issue.

Discussion about the motivation here:
https://github.com/KevinOConnor/klipper/pull/453#issuecomment-403131149

Signed-off-by: Grigori Goronzy <greg@chown.ath.cx>
2018-07-08 09:25:11 -04:00
..
gpio.c SPI: introduce spi_prepare function 2018-07-08 09:25:11 -04:00
gpio.h SPI: introduce spi_prepare function 2018-07-08 09:25:11 -04:00
irq.h avr: Do not use Idle mode 2018-04-28 21:26:42 -04:00
Kconfig avr: Clean up serial port register aliases 2018-04-25 10:55:18 -04:00
main.c command: Prefer uint8_t* for buffers; prefer uint8_fast_t for lengths 2018-05-28 10:43:39 -04:00
Makefile serial_irq: Add new generic/serial_irq.c code 2018-04-20 11:19:37 -04:00
pgm.h Initial commit of source code. 2016-05-25 11:37:40 -04:00
serial.c avr: Clean up serial port register aliases 2018-04-25 10:55:18 -04:00
timer.c avr: Clear the TCNT1 register on timer startup 2018-01-07 22:22:08 -05:00
usbserial.c command: Add command_find_and_dispatch() helper 2018-05-28 10:43:39 -04:00
watchdog.c build: Use compile_time_request system for init, tasks, and shutdown 2017-05-26 12:39:34 -04:00