From 041a3ffca177d8251a482b5fc0f1e97f7b48c183 Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 2 Jun 2025 13:26:42 +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..ef70356 --- /dev/null +++ b/modular.json @@ -0,0 +1,17 @@ +{ + "dep": [ + { + "type": "git", + "provider": "Smart_Components_Aurus", + "repo": "AdcInterface" + } + ], + "cmake": { + "inc_dirs": [ + "Inc" + ], + "srcs": [ + "Src/**.c" + ] + } +} \ No newline at end of file