diff options
author | Joy Lee <chang.li@westberrytech.com> | 2022-05-23 13:57:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 15:57:24 +1000 |
commit | 1c7e8b9a9de0f379bad0823e3f0d1c8d9762ea6c (patch) | |
tree | c789242e9b7ee43f4c293f4296a2811085e546c5 /platforms/chibios/drivers/spi_master.c | |
parent | 1182f5b4be6f6ed7ee7a86bd11ef2226a8b04f8e (diff) |
Added support for Wb32fq95 (#16871)
Diffstat (limited to 'platforms/chibios/drivers/spi_master.c')
-rw-r--r-- | platforms/chibios/drivers/spi_master.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/chibios/drivers/spi_master.c b/platforms/chibios/drivers/spi_master.c index 998bace550..ce69e7f0ac 100644 --- a/platforms/chibios/drivers/spi_master.c +++ b/platforms/chibios/drivers/spi_master.c @@ -54,7 +54,7 @@ bool spi_start(pin_t slavePin, bool lsbFirst, uint8_t mode, uint16_t divisor) { return false; } -#ifndef WB32F3G71xx +#if !(defined(WB32F3G71xx) || defined(WB32FQ95xx)) uint16_t roundedDivisor = 2; while (roundedDivisor < divisor) { roundedDivisor <<= 1; @@ -138,7 +138,7 @@ bool spi_start(pin_t slavePin, bool lsbFirst, uint8_t mode, uint16_t divisor) { spiConfig.cpr = (roundedDivisor - 1) >> 1; -#elif defined(WB32F3G71xx) +#elif defined(WB32F3G71xx) || defined(WB32FQ95xx) if (!lsbFirst) { osalDbgAssert(lsbFirst != FALSE, "unsupported lsbFirst"); } |