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

Function read

bsp/mm32f526x/drivers/drv_flash.c:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static int read(long offset, uint8_t *buf, size_t size)
36{
37 size_t i;
38 uint32_t addr = OCFLASH_ADDR + offset;
39 for (i = 0; i < size; i++)
40 {
41 *buf = *(__IO uint8_t *)addr;
42 buf++;
43 addr++;
44 }
45 return size;
46}
47
48static int write(long offset, const uint8_t *buf, size_t size)
49{

Callers 9

rt_init_thread_entryFunction · 0.50
do_readFunction · 0.50
fsrw1_thread_entryFunction · 0.50
fsrw2_thread_entryFunction · 0.50
rtlink_freadFunction · 0.50
listen_threadFunction · 0.50
recv_commFunction · 0.50
readwriteFunction · 0.50
readspeedFunction · 0.50

Calls

no outgoing calls

Tested by 3

fsrw1_thread_entryFunction · 0.40
fsrw2_thread_entryFunction · 0.40
recv_commFunction · 0.40