altos/stm: move spi execution to common ao_spi_run
authorKeith Packard <keithp@keithp.com>
Tue, 28 Jun 2016 06:25:01 +0000 (23:25 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 30 Jun 2016 02:17:45 +0000 (19:17 -0700)
commit5ab4a8b911e254dc829b61cb0abc9fd0b46b84b3
tree456d4a129830a1eb8077433ac51988f1f1e90797
parent69791ef235161fef404f682fd6955e7eed8dc125
altos/stm: move spi execution to common ao_spi_run

This regularizes SPI hardware use and ensures that the device is
turned off after it has been used and that the status register is back
to 'normal' the next time through.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_spi_stm.c