Added basic interface test
This commit is contained in:
parent
060da11a75
commit
4f79d1d1d8
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,6 @@
|
|||||||
[submodule "adc/adc"]
|
[submodule "adc/adc"]
|
||||||
path = adc/adc
|
path = adc/adc
|
||||||
url = git@git.blackmark.me:avr/adc.git
|
url = git@git.blackmark.me:avr/adc.git
|
||||||
|
[submodule "adc/io"]
|
||||||
|
path = adc/io
|
||||||
|
url = git@git.blackmark.me:avr/io.git
|
||||||
|
|||||||
2
adc/adc
2
adc/adc
@ -1 +1 @@
|
|||||||
Subproject commit c741dc98a177834296b4bf877bfe92efdf912d72
|
Subproject commit 2f54f9217fdbc92658a03babeae14f3e97954887
|
||||||
@ -55,7 +55,7 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<content-extension eid="atmel.asf" uuidref="Atmel.ASF" version="3.47.0" />
|
<content-extension eid="atmel.asf" uuidref="Atmel.ASF" version="3.47.0" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</framework-data>
|
</framework-data>
|
||||||
</AsfFrameworkConfig>
|
</AsfFrameworkConfig>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||||
@ -179,12 +179,16 @@
|
|||||||
<Compile Include="adc\adc.hpp">
|
<Compile Include="adc\adc.hpp">
|
||||||
<SubType>compile</SubType>
|
<SubType>compile</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="adc\hardware.hpp">
|
||||||
|
<SubType>compile</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Include="main.cpp">
|
<Compile Include="main.cpp">
|
||||||
<SubType>compile</SubType>
|
<SubType>compile</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="adc" />
|
<Folder Include="adc" />
|
||||||
|
<Folder Include="io" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />
|
<Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
1
adc/io
Submodule
1
adc/io
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 80de36ee7ee3e6b0842d5eaee81d54062cb496b2
|
||||||
12
adc/main.cpp
12
adc/main.cpp
@ -1,6 +1,18 @@
|
|||||||
#include "adc/adc.hpp"
|
#include "adc/adc.hpp"
|
||||||
|
|
||||||
|
void adcTest()
|
||||||
|
{
|
||||||
|
using namespace adc;
|
||||||
|
|
||||||
|
using adc_conf = Config<>;
|
||||||
|
|
||||||
|
Adc<adc_conf, io::P::C5> adcPin;
|
||||||
|
adcPin.read();
|
||||||
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
adcTest();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user