diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-27 14:34:53 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-27 14:34:53 -0700 |
commit | 08a4ed8fe794a2b2b52147bd5535fe0954822e95 (patch) | |
tree | d9ae25dd4922c15a7c2d55ce95b601c6bf02ce75 /src/stm-demo/ao_demo.c | |
parent | 1a1d4a557a30e2e743936b828b654187ec562ca8 (diff) |
altos: include targe SPI speed in get request
STM needs it to be provided when enabling the SPI device, so just fix
AVR and cc1111 to do the same.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm-demo/ao_demo.c')
-rw-r--r-- | src/stm-demo/ao_demo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stm-demo/ao_demo.c b/src/stm-demo/ao_demo.c index 73ace558..9a581ff9 100644 --- a/src/stm-demo/ao_demo.c +++ b/src/stm-demo/ao_demo.c @@ -83,7 +83,7 @@ ao_spi_write(void) { int i; for (i = 0; i < 10; i++) { - ao_spi_get(0); + ao_spi_get(0, AO_SPI_SPEED_FAST); stm_gpio_set(&stm_gpioc, 12, 0); ao_spi_send(data, 4, 0); stm_gpio_set(&stm_gpioc, 12, 1); @@ -100,7 +100,7 @@ ao_spi_read(void) { int i; for (i = 0; i < 10; i++) { - ao_spi_get(0); + ao_spi_get(0, AO_SPI_SPEED_FAST); stm_gpio_set(&stm_gpioc, 12, 0); ao_spi_recv(data, 4, 0); stm_gpio_set(&stm_gpioc, 12, 1); |