Embedded TCP/IP stack
4.7.0
|
fnet_return_t fnet_flash_memcpy | ( | FNET_COMP_PACKED_VAR void * | flash_addr, |
FNET_COMP_PACKED_VAR const void * | src, | ||
fnet_size_t | n | ||
) |
Writes the specified data to the Flash memory.
flash_addr | Address in the Flash to write to. |
src | Pointer to the buffer containing the data to write to the Flash memory. |
n | Number of bytes contained in the data buffer pointed by src . |
This function copies the number of bytes
bytes from the location pointed by src
directly to the Flash memory pointed by flash_addr
. If the flash write-cache is enabled (FNET_CFG_FLASH_CACHE), after last data block is copyed, application must call fnet_flash_flush(0 to be sure that all data were writen to the flash.