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/sam3x8e/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/sam3x8e/spi.c')
-rw-r--r-- | src/sam3x8e/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sam3x8e/spi.c b/src/sam3x8e/spi.c index 8ff9e97d..51799506 100644 --- a/src/sam3x8e/spi.c +++ b/src/sam3x8e/spi.c @@ -54,7 +54,7 @@ spi_init(void) struct spi_config spi_setup(uint32_t bus, uint8_t mode, uint32_t rate) { - if (bus != CHANNEL || mode > 3) + if (bus != CHANNEL) shutdown("Invalid spi_setup parameters"); // Make sure bus is enabled |