From 27276651009a39bc9cbd805c55a03b75e538fdb1 Mon Sep 17 00:00:00 2001 From: cfif Date: Wed, 4 Dec 2024 13:10:50 +0300 Subject: [PATCH] Init --- 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..2659901 --- /dev/null +++ b/modular.json @@ -0,0 +1,17 @@ +{ + "dep": [ + { + "type": "git", + "provider": "NAVIGATOR_UVEOS_NATION_TELIT", + "repo": "AdcInterface" + } + ], + "cmake": { + "inc_dirs": [ + "Inc" + ], + "srcs": [ + "Src/**.c" + ] + } +} \ No newline at end of file