From b26eb97880e920115b3603f524b192d4778c1044 Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 2 Jun 2025 14:32:56 +0300 Subject: [PATCH] Init --- FirmwareTelematicaMetadataSection.c | 7 +++++++ FirmwareTelematicaMetadataSection.h | 14 ++++++++++++++ modular.json | 17 +++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 FirmwareTelematicaMetadataSection.c create mode 100644 FirmwareTelematicaMetadataSection.h create mode 100644 modular.json diff --git a/FirmwareTelematicaMetadataSection.c b/FirmwareTelematicaMetadataSection.c new file mode 100644 index 0000000..09374a2 --- /dev/null +++ b/FirmwareTelematicaMetadataSection.c @@ -0,0 +1,7 @@ +#include "FirmwareTelematicaMetadataSection.h" +#include "ext_telematica.h" + +void tele_func(void *env); + +volatile const uint32_t META_EXT_ENV_TELE __attribute__((section (".meta_ext_env_tele"))) = (uint32_t)&EXT_ENV_TELE; +volatile const uint32_t META_MAIN_INIT __attribute__((section (".meta_tele_func"))) = (uint32_t)tele_func; diff --git a/FirmwareTelematicaMetadataSection.h b/FirmwareTelematicaMetadataSection.h new file mode 100644 index 0000000..674176b --- /dev/null +++ b/FirmwareTelematicaMetadataSection.h @@ -0,0 +1,14 @@ +#ifndef UVEOS_ON_NATION_FIRMWARETELEMATICAMETADATASECTION_H +#define UVEOS_ON_NATION_FIRMWARETELEMATICAMETADATASECTION_H + +#include "stdint.h" + +extern volatile const uint32_t META_EXT_ENV_TELE; +extern volatile const uint32_t META_MAIN_INIT; +extern volatile const uint32_t META_MAIN; +extern volatile const uint32_t META_COM_INT; +extern volatile const uint32_t META_COM_INT_DEFAULT; +extern volatile const uint32_t META_URC; +extern volatile const uint32_t META_ACCEL; + +#endif //UVEOS_ON_NATION_FIRMWARETELEMATICAMETADATASECTION_H diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..4b70e54 --- /dev/null +++ b/modular.json @@ -0,0 +1,17 @@ +{ + "dep": [ + { + "type": "git", + "provider": "Smart_Components_Aurus", + "repo": "CmakeConfig_RandomBuildIdGenerator" + } + ], + "cmake": { + "inc_dirs": [ + "./" + ], + "srcs": [ + "./*.c" + ] + } +} \ No newline at end of file