commit 79440494ce8c40f271069be5bce1489dd5f1e60c Author: cfif Date: Thu Oct 9 10:58:41 2025 +0300 Обновление 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