diff options
| author | Bernard Xiong <[email protected]> | 2016-10-11 21:39:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-10-11 21:39:50 +0800 |
| commit | a8216a234b9879a637f253dca0cfe40b6021c2c7 (patch) | |
| tree | a33a6a0101aa1899e8f2416954c2abd3af5ad7a6 | |
| parent | 33395917358968266f13061f89e81b9f85f69626 (diff) | |
| parent | b2e14f76413e8e1984b064d7f3935e3286945c4f (diff) | |
Merge pull request #672 from armink/master
完善 SFUD 驱动代码,并在 IotCamera 平台测试通过
| -rw-r--r-- | components/drivers/spi/sfud/inc/sfud_cfg.h | 2 | ||||
| -rw-r--r-- | components/drivers/spi/spi_flash_sfud.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/spi/sfud/inc/sfud_cfg.h b/components/drivers/spi/sfud/inc/sfud_cfg.h index 61225ecf62..eb79f84dc3 100644 --- a/components/drivers/spi/sfud/inc/sfud_cfg.h +++ b/components/drivers/spi/sfud/inc/sfud_cfg.h @@ -57,6 +57,6 @@ #error "Please configure RT_SFUD_USING_SFDP or RT_SFUD_USING_FLASH_INFO_TABLE at least one kind of mode (in rtconfig.h)." #endif -#define SFUD_FLASH_DEVICE_TABLE NULL +#define SFUD_FLASH_DEVICE_TABLE {0} #endif /* _SFUD_CFG_H_ */ diff --git a/components/drivers/spi/spi_flash_sfud.c b/components/drivers/spi/spi_flash_sfud.c index 1df8c4023c..427673378c 100644 --- a/components/drivers/spi/spi_flash_sfud.c +++ b/components/drivers/spi/spi_flash_sfud.c @@ -501,7 +501,7 @@ static void sf(uint8_t argc, char **argv) { } } else if (!rt_strcmp(operator, "bench")) { if ((argc > 2 && rt_strcmp(argv[2], "yes")) || argc < 3) { - rt_kprintf("DANGER: It will erase full chip! Please run 'sf bench yes'."); + rt_kprintf("DANGER: It will erase full chip! Please run 'sf bench yes'.\n"); return; } /* full chip benchmark test */ |
