[bsp][nxp]增加了drv_filesystem_spi_flash驱动

This commit is contained in:
Abner 2024-04-16 13:46:49 +08:00 committed by Rbb666
parent bbac8e954d
commit a2bec29019
1 changed files with 4 additions and 4 deletions

View File

@ -42,11 +42,11 @@ static int filesystem_mount(void)
{
struct rt_spi_device *spi70 = (struct rt_spi_device *)rt_malloc(sizeof(struct rt_spi_device));
if(!spi70)
{
rt_kprintf("spi sample run failed! can't find %s device!\n","spi7");
if(!spi70)
{
rt_kprintf("spi sample run failed! can't find %s device!\n","spi7");
return -RT_ERROR;
}
}
struct rt_spi_configuration cfg;
cfg.data_width = 8;