altos/stm: Create funcs to set SPI DMA parameters
authorKeith Packard <keithp@keithp.com>
Sat, 3 Sep 2016 05:53:44 +0000 (00:53 -0500)
committerKeith Packard <keithp@keithp.com>
Sat, 3 Sep 2016 05:58:39 +0000 (00:58 -0500)
commit4fc5cfa2c63c43ab0a9ef7e0cc6832fb1c163bd6
tree9d78947f7112bf6d18827972373f9e26f69757e2
parent1710a4921d4f408300c7d5adf0e83d08cc86be20
altos/stm: Create funcs to set SPI DMA parameters

Instead of having nearly duplicate versions of the SPI DMA
configuration calls, create helper funcs that do most of the work so
that the SPI API funcs are shorter and clearer.

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