Merge pull request #2358 from armink/fix_sfud

[DeviceDriver] Add rt_sfud_flash_find_by_dev_name function to SFUD
This commit is contained in:
Bernard Xiong
2019-02-20 18:37:16 +08:00
committed by GitHub
2 changed files with 105 additions and 38 deletions
File diff suppressed because it is too large Load Diff
+10 -1
View File
@@ -36,7 +36,7 @@ rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const
rt_err_t rt_sfud_flash_delete(rt_spi_flash_device_t spi_flash_dev);
/**
* Find sfud flash device
* Find sfud flash device by SPI device name
*
* @param spi_dev_name using SPI device name
*
@@ -44,4 +44,13 @@ rt_err_t rt_sfud_flash_delete(rt_spi_flash_device_t spi_flash_dev);
*/
sfud_flash_t rt_sfud_flash_find(const char *spi_dev_name);
/**
* Find sfud flash device by flash device name
*
* @param flash_dev_name using flash device name
*
* @return sfud flash device if success, otherwise return RT_NULL
*/
sfud_flash_t rt_sfud_flash_find_by_dev_name(const char *flash_dev_name);
#endif /* _SPI_FLASH_SFUD_H_ */