mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-07 00:59:00 +08:00
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:
File diff suppressed because it is too large
Load Diff
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user