24 #define _CONFIG_VERSION 1
33 static bool _init =
false;
35 static void loadRuntimeData() {
45 _rcConfig.version = _CONFIG_VERSION;
46 _rcConfig.rtImage = RT_DEFAULT_IMAGE;
49 logInfo(
"No runtime data stored. Using defaults");
50 _rcConfig.version = _CONFIG_VERSION;
51 _rcConfig.rtImage = RT_DEFAULT_IMAGE;
62 return _rcConfig.rtImage;
70 _rcConfig.rtImage = imgNo;
Defines the configuration of the LM32 SOC for the CLBv2.
Allows for storage of persistent information in flash.
int rtImage()
Returns the image loaded for runtime.
Provides access to the runtime image booting.
System start up and management.
#define BLS_RUNTIME
Runtime information location.
void sysLogClearError(const char *doingWhat)
Logs an error in the context of what the application is doing.
#define E_INVARGUMENT
Generic error: invalid argument.
bool bsCheck(unsigned int block, size_t len, bool *hasValidData)
Checks the contents of a block.
bool bsLoad(unsigned int block, void *data, size_t len)
Loads a block of data from the flash.
bool bsSave(unsigned int block, void *data, size_t len)
Saves a block of data on the internal flash.
#define LOG_DEF(NAME,...)
Define a logger for a module.
bool errSet(uint32_t code, const char *error, const char *name)
Sets an error.
bool rtSetImage(int imgNo)
Sets the runtime boot image number.
Implements a generic logger facility.
#define logInfo(MSG,...)
Write a log message with formatting on info level.