1
0
Fork 0

CO_storageEeprom.h: Change to fixed sized array

This commit is contained in:
Janez 2024-06-27 17:25:48 +02:00 committed by GitHub
parent 586c81937d
commit f36345dbab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,6 +28,10 @@
#include "storage/CO_storage.h"
#ifndef CO_CONFIG_STORAGE_MAX_ENTRIES_COUNT
#define CO_CONFIG_STORAGE_MAX_ENTRIES_COUNT 5
#endif
#if (((CO_CONFIG_STORAGE) & CO_CONFIG_STORAGE_ENABLE) != 0) || defined CO_DOXYGEN
#ifdef __cplusplus
@ -91,7 +95,8 @@ extern "C" {
* @param OD_1011_RestoreDefaultParam OD entry for 0x1011 -"Restore default
* parameters". Entry is optional, may be NULL.
* @param entries Pointer to array of storage entries, see @ref CO_storage_init.
* @param entriesCount Count of storage entries
* @param entriesCount Count of storage entries, must not be larger than
* CO_CONFIG_STORAGE_MAX_ENTRIES_COUNT.
* @param [out] storageInitError If function returns CO_ERROR_DATA_CORRUPT,
* then this variable contains a bit mask from subIndexOD values, where data
* was not properly initialized. If other error, then this variable contains