system/settings_file/nvm_defaults.c

/*******************************************************************************
* # License
* Copyright 2019 Silicon Laboratories Inc. www.silabs.com
*******************************************************************************
*
* The licensor of this software is Silicon Laboratories Inc. Your use of this
* software is governed by the terms of Silicon Labs Master Software License
* Agreement (MSLA) available at
* www.silabs.com/about-us/legal/master-software-license-agreement. This
* software is distributed to you in Source Code format and is governed by the
* sections of the MSLA applicable to Source Code.
*
******************************************************************************/
#include "nvm_settings.h"
#define DEFAULT_SETTINGS \
{ \
.version = 0, \
.timeout = 1000, \
.password = "password" \
}
// These values will automatically be loaded into NVM on startup
GOS_NVM_CREATE_DEFAULT_ENTRY(MYAPP, SETTINGS, myapp_settings_t, DEFAULT_SETTINGS);