From 32bf9e29b72346dada0d97d772088d73bfbf6b5b Mon Sep 17 00:00:00 2001 From: armink Date: Mon, 10 Oct 2016 20:10:41 +0800 Subject: [PATCH 1/2] [DeviceDrivers]Change SFUD 'sf' command tips. --- components/drivers/spi/spi_flash_sfud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ From b2e14f76413e8e1984b064d7f3935e3286945c4f Mon Sep 17 00:00:00 2001 From: armink Date: Mon, 10 Oct 2016 20:26:21 +0800 Subject: [PATCH 2/2] [DeviceDrivers]Modify SFUD's config for suitable more compilers. --- components/drivers/spi/sfud/inc/sfud_cfg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_ */