From d9b22c1d2d45e32eead6b89d766ccbab977b7ad3 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Tue, 21 Nov 2023 14:08:29 +0100 Subject: [PATCH] Added function to retrieve the list of available NVM areas --- openrtx/include/interfaces/nvmem.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openrtx/include/interfaces/nvmem.h b/openrtx/include/interfaces/nvmem.h index b6bb6b91..bfcaf5d7 100644 --- a/openrtx/include/interfaces/nvmem.h +++ b/openrtx/include/interfaces/nvmem.h @@ -158,6 +158,14 @@ void nvm_init(); */ void nvm_terminate(); +/** + * Get a list of the available nonvolatile memory areas of the device. + * + * @param list: pointer where to store the pointer to the list head. + * @return number of elements in the list. + */ +size_t nvm_getMemoryAreas(const struct nvmArea **list); + /** * Load calibration data from nonvolatile memory. *