Skip to content

Commit

Permalink
[bsp][nxp]增加了drv_filesystem_spi_flash驱动
Browse files Browse the repository at this point in the history
  • Loading branch information
LiKunZh authored and Rbb666 committed Apr 16, 2024
1 parent bbac8e9 commit a2bec29
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a2bec29

Please sign in to comment.