From 79440494ce8c40f271069be5bce1489dd5f1e60c Mon Sep 17 00:00:00 2001 From: cfif Date: Thu, 9 Oct 2025 10:58:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inc/Adc.h | 12 ++++++++++++ Src/Adc.c | 10 ++++++++++ modular.json | 17 +++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 Inc/Adc.h create mode 100644 Src/Adc.c create mode 100644 modular.json diff --git a/Inc/Adc.h b/Inc/Adc.h new file mode 100644 index 0000000..c3813b8 --- /dev/null +++ b/Inc/Adc.h @@ -0,0 +1,12 @@ +// +// Created by cfif on 11.09.22. +// + +#ifndef ADC_H +#define ADC_H + +#include "AdcIO.h" + +uint16_t AdcGet(tAdcIO *io, uint32_t timeout); + +#endif //ADC_H diff --git a/Src/Adc.c b/Src/Adc.c new file mode 100644 index 0000000..384af6f --- /dev/null +++ b/Src/Adc.c @@ -0,0 +1,10 @@ +// +// Created by cfif on 17.11.22. +// + +#include "Adc.h" +#include "SystemDelayInterface.h" + +uint16_t AdcGet(tAdcIO *io, uint32_t timeout) { + return io->get(io->env, timeout); +} diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..2bbb57e --- /dev/null +++ b/modular.json @@ -0,0 +1,17 @@ +{ + "dep": [ + { + "type": "git", + "provider": "HVAC_M7", + "repo": "AdcInterface" + } + ], + "cmake": { + "inc_dirs": [ + "Inc" + ], + "srcs": [ + "Src/**.c" + ] + } +} \ No newline at end of file