Fill memory with a specific data value using a LIBMEM driver.
-
Parameters:
-
|
dest
|
A pointer to the address to write the data. |
|
c
|
The data value to fill the memory with. |
|
size
|
The number of bytes to write. |
-
Returns:
- The LIBMEM status result.
This function locates the LIBMEM driver for the address pointed to by dest and then calls the LIBMEM driver's fill function.
Note that the address range being written to cannot span multiple LIBMEM drivers.
Example:
int res;
res = libmem_fill((uint8_t *)0x10000000, 0xCC, 64);
if (res == LIBMEM_STATUS_SUCCESS)
printf("libmem_fill : success\n");
else
printf("libmem_fill : failed (%d)\n", res);
|