From 4f79d1d1d8a7628ddb73ef785a16d7355b925d45 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sat, 1 Feb 2020 23:41:55 +0100 Subject: [PATCH] Added basic interface test --- .gitmodules | 3 +++ adc/adc | 2 +- adc/adc.cppproj | 22 +++++++++++++--------- adc/io | 1 + adc/main.cpp | 12 ++++++++++++ 5 files changed, 30 insertions(+), 10 deletions(-) create mode 160000 adc/io diff --git a/.gitmodules b/.gitmodules index aff5614..30d6958 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "adc/adc"] path = adc/adc url = git@git.blackmark.me:avr/adc.git +[submodule "adc/io"] + path = adc/io + url = git@git.blackmark.me:avr/io.git diff --git a/adc/adc b/adc/adc index c741dc9..2f54f92 160000 --- a/adc/adc +++ b/adc/adc @@ -1 +1 @@ -Subproject commit c741dc98a177834296b4bf877bfe92efdf912d72 +Subproject commit 2f54f9217fdbc92658a03babeae14f3e97954887 diff --git a/adc/adc.cppproj b/adc/adc.cppproj index 657c5b7..ec6b0e0 100644 --- a/adc/adc.cppproj +++ b/adc/adc.cppproj @@ -47,15 +47,15 @@ 125000 - - - - - - - - - + + + + + + + + + @@ -179,12 +179,16 @@ compile + + compile + compile + \ No newline at end of file diff --git a/adc/io b/adc/io new file mode 160000 index 0000000..80de36e --- /dev/null +++ b/adc/io @@ -0,0 +1 @@ +Subproject commit 80de36ee7ee3e6b0842d5eaee81d54062cb496b2 diff --git a/adc/main.cpp b/adc/main.cpp index fbc4023..567d785 100644 --- a/adc/main.cpp +++ b/adc/main.cpp @@ -1,6 +1,18 @@ #include "adc/adc.hpp" +void adcTest() +{ + using namespace adc; + + using adc_conf = Config<>; + + Adc adcPin; + adcPin.read(); +} + int main() { + adcTest(); + return 0; }