forked from xuos/xiuos
add spi flash test function for arm
This commit is contained in:
@@ -46,7 +46,7 @@ int FlashW25qxxSpiDeviceInit(void)
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
if (NONE == SpiFlashInit(SPI_BUS_NAME_1, "spi1_dev0", SPI_1_DRV_NAME, "W25Q64")) {
|
||||
if (NONE == SpiFlashInit(SPI_BUS_NAME_1, "spi1_dev0", SPI_1_DRV_NAME, "spi1_W25Q64")) {
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
|
||||
@@ -1251,10 +1251,10 @@ static uint32 Stm32SpiDrvConfigure(void *drv, struct BusConfigureInfo *configure
|
||||
/*manage the spi device operations*/
|
||||
static const struct SpiDevDone spi_dev_done =
|
||||
{
|
||||
.open = NONE,
|
||||
.close = NONE,
|
||||
.write = Stm32SpiWriteData,
|
||||
.read = Stm32SpiReadData,
|
||||
.dev_open = NONE,
|
||||
.dev_close = NONE,
|
||||
.dev_write = Stm32SpiWriteData,
|
||||
.dev_read = Stm32SpiReadData,
|
||||
};
|
||||
|
||||
#if defined(BSP_USING_SPI1)
|
||||
|
||||
Reference in New Issue
Block a user