diff options
author | Keith Packard <keithp@keithp.com> | 2012-04-09 22:24:36 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-04-09 22:24:36 -0700 |
commit | d15c4976ed9c23c861e620eb9c429d1cb7eedbee (patch) | |
tree | 9f74dbd18bd6ac6c2bfe80af1f35bb7deea7d2bc /src/stm/ao_spi_stm.c | |
parent | 0cd682ef0c8cdcf364b7e173ff3a9f84e485c113 (diff) |
altos: Increase STM SPI speed to PCLK/4
The pressure sensor seems happy at this speed.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_spi_stm.c')
-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 d3e1ca4b..be24ebcf 100644 --- a/src/stm/ao_spi_stm.c +++ b/src/stm/ao_spi_stm.c @@ -169,7 +169,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_16 << STM_SPI_CR1_BR) | /* baud rate to pclk/4 */ + (STM_SPI_CR1_BR_PCLK_4 << 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)); |