klipper/src
Grigori Goronzy 2991c7a831 stm32f1: implement spi_prepare
Implement spi_prepare to fix the undefined behavior on SPI transaction
start.

Tested with the following command sequence:

allocate_oids count=2
config_spi oid=0 bus=0 pin=PA8 mode=3 rate=1000000 shutdown_msg=
config_spi oid=1 bus=0 pin=PA8 mode=1 rate=1000000 shutdown_msg=
spi_send oid=0 data=30313233343536373839
spi_transfer oid=1 data=3031

Discussion about this 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
..
avr SPI: introduce spi_prepare function 2018-07-08 09:25:11 -04:00
generic SPI: introduce spi_prepare function 2018-07-08 09:25:11 -04:00
linux SPI: introduce spi_prepare function 2018-07-08 09:25:11 -04:00
lpc176x mcp4451: Add initial support for programming the mcp4451 on lpc176x 2018-06-29 21:20:12 -04:00
pru pru: Disable ADC reading directly from the PRU 2018-06-27 12:10:25 -04:00
sam3x8e SPI: introduce spi_prepare function 2018-07-08 09:25:11 -04:00
simulator SPI: introduce spi_prepare function 2018-07-08 09:25:11 -04:00
stm32f1 stm32f1: implement spi_prepare 2018-07-08 09:25:11 -04:00
Kconfig lpc176x: Add initial support for LPC176x processors 2018-05-25 11:52:13 -04:00
Makefile buttons: Add initial support for detecting button presses 2018-06-30 14:28:51 -04:00
adccmds.c adccmds: Add support for min/max temperature check filtering 2018-07-02 13:56:34 -04:00
basecmd.c basecmd: Rename get_status to get_clock 2018-05-29 10:57:29 -04:00
basecmd.h pru: Support config_reset command to manually reset mcu 2017-09-03 23:16:38 -04:00
buttons.c buttons: Add initial support for detecting button presses 2018-06-30 14:28:51 -04:00
byteorder.h byteorder: Add a header file defining common byteswap functions 2018-05-21 09:44:40 -04:00
command.c command: Wait to send ack until after processing commands 2018-05-28 10:43:40 -04:00
command.h command: Wait to send ack until after processing commands 2018-05-28 10:43:40 -04:00
compiler.h compiler.h: Check if __aligned and __section macros are already defined 2016-06-13 23:18:59 -04:00
ctr.h build: Avoid linker magic in compile_time_request.c unique id generation 2017-05-26 12:32:02 -04:00
debugcmds.c debugcmds: Move debugging commands from basecmd.c to new file 2017-05-15 14:02:59 -04:00
endstop.c endstop: Eliminate end_stop_set_oversample command 2017-10-12 11:59:27 -04:00
gpiocmds.c gpiocmds: Add update_digital_out command 2018-06-27 12:10:39 -04:00
lcd_hd44780.c lcd_hd44780: Add micro-controller code for the HD44780 LCD chip 2018-03-06 11:30:34 -05:00
lcd_st7920.c lcd_st7920: Use a longer delay at the start of each command/data 2018-06-22 23:47:09 -04:00
pwmcmds.c gpiocmds: Allow the start value for a pin to differ from the default_value 2017-10-12 11:59:27 -04:00
sched.c sched: Interrupts must be disabled during setjmp() call 2017-12-21 12:54:33 -05:00
sched.h pru: Support config_reset command to manually reset mcu 2017-09-03 23:16:38 -04:00
spicmds.c SPI: introduce spi_prepare function 2018-07-08 09:25:11 -04:00
stepper.c stepper: Introduce and use gpio_out_toggle_noirq() 2018-05-15 17:09:11 -04:00
stepper.h stepper: Introduce stepper_get_position command and remove from endstop.c 2017-03-09 14:54:52 -05:00