forked from xuos/xiuos
feat add third_party_driver/spi for hc32f4a0 board, compile OK
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ static x_err_t Stm32SpiInit(struct Stm32Spi *spi_drv, struct SpiMasterParam *cfg
|
||||
|
||||
SPI_InitTypeDef *spi_init = &spi_drv->init;
|
||||
|
||||
if (cfg->spi_work_mode & DEV_SPI_SLAVE){
|
||||
if (cfg->spi_work_mode & SPI_DEV_SLAVE){
|
||||
spi_init->SPI_Mode = SPI_Mode_Slave;
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user