Обновление

This commit is contained in:
cfif 2025-12-05 13:47:22 +03:00
parent c5a1e2358a
commit 43cb67168d
3 changed files with 0 additions and 42 deletions

View File

@ -8,32 +8,3 @@
void DeviceDataRuntime_InitDefaults(tDeviceDataRuntime *env) {
}
#define ADD_VAR_SIZE(TYPE, NAME, VALUE, LEN, GROUP) \
VariablesTableAdd( \
variablesTable, \
#NAME, \
sizeof (#NAME)-1, \
VARIABLE_TYPE_##TYPE, \
(VALUE), \
(LEN), \
0, \
GROUP \
)
#define ADD_VAR(TYPE, NAME, VALUE) ADD_VAR_SIZE(TYPE, NAME, VALUE, 0, VARIABLES_GROUP)
#define ADD_VAR_STR_OBJ(TYPE, NAME, VALUE) ADD_VAR_SIZE(TYPE, NAME, &(VALUE).data, &(VALUE).length,VARIABLES_GROUP)
// Добавление переменных в таблицу
void DeviceDataRuntime_AddToVarTab(
tDeviceDataRuntime *env,
tVariablesTable *variablesTable,
uint32_t VARIABLES_GROUP
) {
ADD_VAR_SIZE(STRING, DEV_VERSION, (void *) META_FW_NAME, (void *) &META_FW_NAME_SIZE, VARIABLES_GROUP);
}
#undef ADD_VAR_SIZE
#undef ADD_VAR
#undef ADD_VAR_STR_OBJ

View File

@ -7,16 +7,10 @@
#include <BaseTypes.h>
#include <stdbool.h>
#include <VariablesTable.h>
typedef struct {
} tDeviceDataRuntime;
void DeviceDataRuntime_InitDefaults(tDeviceDataRuntime *env);
void DeviceDataRuntime_AddToVarTab(
tDeviceDataRuntime *env,
tVariablesTable *variablesTable,
uint32_t VARIABLES_GROUP
);
#endif //HVAC_DEVICEDATARUNTIME_H

View File

@ -1,11 +1,4 @@
{
"dep": [
{
"type": "git",
"provider": "Smart_Components",
"repo": "VariablesTable"
}
],
"cmake": {
"inc_dirs": [
"./"