#include <stdlib.h>
#include <string.h>
#define DEBUG_LOG_MODULE_NAME "APP_PERS"
#define DEBUG_LOG_MAX_LEVEL LVL_INFO
static char my_data[500];
#define PATTERN_BYTE 0xAB
{
(void) functions;
{
return;
}
{
}
{
LOG(
LVL_ERROR,
"Persistent unitialized => Data area not present\n");
}
memset(my_data, PATTERN_BYTE, sizeof(my_data));
{
}
memset(my_data, 0, sizeof(my_data));
{
}
for (uint16_t i = 0; i < sizeof(my_data); i++)
{
if (my_data[i] != PATTERN_BYTE)
{
}
}
lib_state->startStack();
}
app_persistent_res_e App_Persistent_read(uint8_t *data, size_t len)
Read from persistent.
app_persistent_res_e
List of return code.
@ APP_PERSISTENT_RES_UNINITIALIZED
@ APP_PERSISTENT_RES_INVALID_CONTENT
app_persistent_res_e App_Persistent_write(uint8_t *data, size_t len)
Write to persistent.
#define LOG(level, fmt,...)
Print a log message if its severity is lower or equal to DEBUG_LOG_MAX_LEVEL.
Board-independent LED functions.
led_res_e Led_set(uint8_t led_id, bool state)
Turn the given LED on or off.
__STATIC_INLINE app_res_e configureNodeFromBuildParameters()
Wrapper on top of configureNode to get parameters from build system and hardcoded values from chip (f...
List of global functions, passed to App_entrypoint()