MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / list_sflash

Function list_sflash

bsp/efm32/dev_sflash.c:386–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384#include <finsh.h>
385
386void list_sflash(void)
387{
388 rt_uint8_t buf[4];
389
390 efm_spiFlash_cmd(sflash_inst_rdid_s, EFM32_NO_DATA, buf, sizeof(buf));
391
392 rt_kprintf(" spi flash on %s\n", SFLASH_USING_DEVICE_NAME);
393 rt_kprintf(" ------------------------------\n");
394 rt_kprintf(" Manufacturer ID:\t%x\n", buf[0]);
395 rt_kprintf(" Memory type:\t\t%x\n", buf[1]);
396 rt_kprintf(" Memory capacity:\t%x\n", buf[2]);
397}
398FINSH_FUNCTION_EXPORT(list_sflash, list the SPI Flash.)
399#endif
400

Callers

nothing calls this directly

Calls 2

efm_spiFlash_cmdFunction · 0.85
rt_kprintfFunction · 0.85

Tested by

no test coverage detected