diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-21 09:46:50 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-21 09:46:50 -0700 |
commit | ff5b0ba90e73a83360a2e8a7e9969ed2c3ce1514 (patch) | |
tree | 93d9942de0add8d5a0099440395e669f217ab568 | |
parent | d2bd95edb6f77daeb1e8f043c4a239c248728e0c (diff) |
altos: Crank down STM SPI speed for MM
The cc1120 is noisy enough to break SPI data transfers at 4MHz, so
crank things down to 1MHz. It's "stable" now, but clearly needs a
filter and shorter traces.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/stm/ao_spi_stm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/ao_spi_stm.c b/src/stm/ao_spi_stm.c index 8784d985..d3378648 100644 --- a/src/stm/ao_spi_stm.c +++ b/src/stm/ao_spi_stm.c @@ -282,7 +282,7 @@ ao_spi_get(uint8_t spi_index) (1 << STM_SPI_CR1_SSI) | /* ... */ (0 << STM_SPI_CR1_LSBFIRST) | /* Big endian */ (1 << STM_SPI_CR1_SPE) | /* Enable SPI unit */ - (STM_SPI_CR1_BR_PCLK_8 << STM_SPI_CR1_BR) | /* baud rate to pclk/4 */ + (STM_SPI_CR1_BR_PCLK_16 << STM_SPI_CR1_BR) | /* baud rate to pclk/4 */ (1 << STM_SPI_CR1_MSTR) | (0 << STM_SPI_CR1_CPOL) | /* Format 0 */ (0 << STM_SPI_CR1_CPHA)); |