Synopsis
int libmem_erase_all(void);
Description

libmem_erase_all erases all memory using LIBMEM drivers.

libmem_erase_all returns — The LIBMEM status result.

This function iterates through all registered LIBMEM drivers calling each driver's erase function specifying the drivers entire memory range as its parameters.

The function will terminate if any of the driver's erase functions return a result other than LIBMEM_STATUS_SUCCESS.

Example:

int res;

res = libmem_erase_all();

if (res == LIBMEM_STATUS_SUCCESS)
  printf("libmem_erase_all : success\n");
else
  printf("libmem_erase_all : failed (%d)\n", res);