diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-11-26 22:38:46 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-11-30 11:50:48 -0500 |
commit | db4f0c24cd04ca1b71a87b5fbc0c8bd9f0ffe500 (patch) | |
tree | e90a7ad2d36c783fc1bd71f435d91c09612e3e72 /src/stm32f1/spi.c | |
parent | 6b108aa8856f44c3095b9dda702c96b3cfbb9677 (diff) | |
download | kutter-db4f0c24cd04ca1b71a87b5fbc0c8bd9f0ffe500.tar.gz kutter-db4f0c24cd04ca1b71a87b5fbc0c8bd9f0ffe500.tar.xz kutter-db4f0c24cd04ca1b71a87b5fbc0c8bd9f0ffe500.zip |
spicmds: Check for an incorrect mode in spicmds.c
Check the mode parameter in spicmds.c so that the mcu code does not
need to check it.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32f1/spi.c')
-rw-r--r-- | src/stm32f1/spi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/stm32f1/spi.c b/src/stm32f1/spi.c index ab3a4589..7bea6cb5 100644 --- a/src/stm32f1/spi.c +++ b/src/stm32f1/spi.c @@ -30,8 +30,6 @@ static void spi_set_mode(SPI_TypeDef *spi, uint8_t mode) LL_SPI_SetClockPolarity(spi, LL_SPI_POLARITY_HIGH); LL_SPI_SetClockPhase(spi, LL_SPI_PHASE_2EDGE); break; - default: - shutdown("Invalid SPI mode"); } } |