diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-03-20 17:16:49 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-03-20 17:16:49 +0100 |
commit | c8b974d00bbf968187820c21cddaa6627adb904b (patch) | |
tree | 7abecb6753185827aaa01a1590c40e6606343198 | |
parent | 0c23afa5651cc3d7f9ad53311446325e35313347 (diff) |
faster SPI clock
-rw-r--r-- | src/stm32/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/setup.c b/src/stm32/setup.c index 2c3552b..b4112d3 100644 --- a/src/stm32/setup.c +++ b/src/stm32/setup.c @@ -38,7 +38,7 @@ SPI_HandleTypeDef hspi1 = { .Init.CLKPolarity = SPI_POLARITY_LOW, .Init.CLKPhase = SPI_PHASE_1EDGE, .Init.NSS = SPI_NSS_SOFT, - .Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_16, + .Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2, .Init.FirstBit = SPI_FIRSTBIT_MSB, .Init.TIMode = SPI_TIMODE_DISABLE, .Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE, |