Searched refs:spi_flash_dev_name (Results 1 – 2 of 2) sorted by relevance
| /components/drivers/spi/ |
| A D | dev_spi_flash_sfud.h | 32 rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const char *spi_dev_name); 44 rt_spi_flash_device_t rt_sfud_flash_probe_ex(const char *spi_flash_dev_name, const char *spi_dev_na…
|
| A D | dev_spi_flash_sfud.c | 301 rt_spi_flash_device_t rt_sfud_flash_probe_ex(const char *spi_flash_dev_name, const char *spi_dev_na… in rt_sfud_flash_probe_ex() argument 312 RT_ASSERT(spi_flash_dev_name); in rt_sfud_flash_probe_ex() 317 spi_flash_dev_name_bak = (char *) rt_malloc(rt_strlen(spi_flash_dev_name) + 1); in rt_sfud_flash_probe_ex() 323 rt_mutex_init(&(rtt_dev->lock), spi_flash_dev_name, RT_IPC_FLAG_PRIO); in rt_sfud_flash_probe_ex() 328 rt_strncpy(spi_flash_dev_name_bak, spi_flash_dev_name, rt_strlen(spi_flash_dev_name)); in rt_sfud_flash_probe_ex() 331 spi_flash_dev_name_bak[rt_strlen(spi_flash_dev_name)] = '\0'; in rt_sfud_flash_probe_ex() 398 …rt_device_register(&(rtt_dev->flash_device), spi_flash_dev_name, RT_DEVICE_FLAG_RDWR | RT_DEVICE_F… in rt_sfud_flash_probe_ex() 400 LOG_I("Probe SPI flash %s by SPI device %s success.",spi_flash_dev_name, spi_dev_name); in rt_sfud_flash_probe_ex() 429 rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const char *spi_dev_name) in rt_sfud_flash_probe() argument 433 return rt_sfud_flash_probe_ex(spi_flash_dev_name, spi_dev_name, &cfg, RT_NULL); in rt_sfud_flash_probe() [all …]
|
Completed in 5 milliseconds