commit 27276651009a39bc9cbd805c55a03b75e538fdb1 Author: cfif Date: Wed Dec 4 13:10:50 2024 +0300 Init 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