Writes the specified data to the Flash memory.
- Parameters
-
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 . |
- Returns
- This function returns:
- See also
- fnet_flash_erase(), fnet_flash_flush()
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.