Add uart to stk500v2
This commit is contained in:
parent
ef42a67d10
commit
39c98939bd
12
.gitmodules
vendored
12
.gitmodules
vendored
@ -10,3 +10,15 @@
|
||||
[submodule "tsb/type"]
|
||||
path = tsb/type
|
||||
url = git@git.blackmark.me:avr/type.git
|
||||
[submodule "stk500v2/type"]
|
||||
path = stk500v2/type
|
||||
url = git@git.blackmark.me:avr/type.git
|
||||
[submodule "stk500v2/io"]
|
||||
path = stk500v2/io
|
||||
url = git@git.blackmark.me:avr/io.git
|
||||
[submodule "stk500v2/uart"]
|
||||
path = stk500v2/uart
|
||||
url = git@git.blackmark.me:avr/uart.git
|
||||
[submodule "stk500v2/flash"]
|
||||
path = stk500v2/flash
|
||||
url = git@git.blackmark.me:avr/flash.git
|
||||
|
1
stk500v2/flash
Submodule
1
stk500v2/flash
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 6edb2e5a21e0ce58ff2df936caee8b84e240a46b
|
1
stk500v2/io
Submodule
1
stk500v2/io
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 80de36ee7ee3e6b0842d5eaee81d54062cb496b2
|
@ -1,6 +1,13 @@
|
||||
#include "clock.hpp"
|
||||
|
||||
#include "uart/uart.hpp"
|
||||
|
||||
using uart_interface = uart::Hardware0<uart::Config<115200>, uart::Driven::BLOCKING>;
|
||||
|
||||
int main()
|
||||
{
|
||||
uart::Uart<uart_interface> serial;
|
||||
serial.init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -215,9 +215,42 @@
|
||||
<Compile Include="clock.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="flash\flash.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="io\io.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="main.cpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="type\type.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="uart\config.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="uart\hardware.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="uart\hardware0.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="uart\hardware1.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="uart\software.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
<Compile Include="uart\uart.hpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="flash" />
|
||||
<Folder Include="io" />
|
||||
<Folder Include="uart" />
|
||||
<Folder Include="type" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />
|
||||
</Project>
|
1
stk500v2/type
Submodule
1
stk500v2/type
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit ce31ef017f738baaca6f0cbf99dac9d59b5e6811
|
1
stk500v2/uart
Submodule
1
stk500v2/uart
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit ae03c8d43e46dfbd396a052f71670727b293ac76
|
Loading…
Reference in New Issue
Block a user