linux: Convert linux SPI code to use the generic spicmds.c code

Use the generic spi send/receive code on Linux.  Update the replicape
code to use the updated command format.

Also, update the replicape code to turn off the stepper motors on a
shutdown event.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-05-04 20:23:58 -04:00
parent 31ae74c56c
commit f70fefa06f
4 changed files with 53 additions and 24 deletions

View File

@@ -7,6 +7,7 @@ config LINUX_SELECT
bool
default y
select HAVE_GPIO_ADC
select HAVE_GPIO_SPI
config BOARD_DIRECTORY
string