Update some changes for AT32F415 (#24766)
* Fixed SPI can't compiled issue * Added solenoid support and use 256KB ldscript for Onekey board
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user