altos/stm: Add better byte-level SPI api
authorKeith Packard <keithp@keithp.com>
Wed, 29 Jun 2016 01:39:31 +0000 (18:39 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 30 Jun 2016 02:17:45 +0000 (19:17 -0700)
commit61ad8e5bf428246ac89cad7cb9a1edf2ef735fd5
tree38f8240cda217bd49504afc97b7c6809a1cc60df
parent5866d191cee56949ccab4c154a14604e83163d42
altos/stm: Add better byte-level SPI api

This provides inline functions for sending and receiving individual
bytes, and setup/finish functions to wrap them in. This make the byte
sending respect the SPI hardware interface requirements.

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