aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorHorrorTroll <[email protected]>2025-01-04 03:33:22 +0700
committerGitHub <[email protected]>2025-01-03 20:33:22 +0000
commitcc3823f767a704cc465fbfdfef5d272aab018bd0 (patch)
tree4b558edf98a9e899ffbe7dbbbf97361e18b5ee7d /platforms
parent9a0f4e586a5ac06241dc05ec13df3f07e4d0392d (diff)
downloadqmk_firmware-cc3823f767a704cc465fbfdfef5d272aab018bd0.tar.gz
qmk_firmware-cc3823f767a704cc465fbfdfef5d272aab018bd0.zip
Update some changes for AT32F415 (#24766)
* Fixed SPI can't compiled issue * Added solenoid support and use 256KB ldscript for Onekey board
Diffstat (limited to 'platforms')
-rw-r--r--platforms/chibios/drivers/spi_master.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/chibios/drivers/spi_master.c b/platforms/chibios/drivers/spi_master.c
index 6417b7077f..414e5b10a3 100644
--- a/platforms/chibios/drivers/spi_master.c
+++ b/platforms/chibios/drivers/spi_master.c
@@ -249,11 +249,11 @@ bool spi_start_extended(spi_start_config_t *start_config) {
#elif defined(AT32F415)
spiConfig.ctrl1 = 0;
- if (lsbFirst) {
+ if (start_config->lsb_first) {
spiConfig.ctrl1 |= SPI_CTRL1_LTF;
}
- switch (mode) {
+ switch (start_config->mode) {
case 0:
break;
case 1: