Added flash submodule for flash strings

This commit is contained in:
BlackMark 2019-07-27 13:38:45 +02:00
parent 98bd0e1238
commit 2cb62d4fac
4 changed files with 35 additions and 0 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "uart/uart"] [submodule "uart/uart"]
path = uart/uart path = uart/uart
url = git@blackmark.me:avr/uart.git url = git@blackmark.me:avr/uart.git
[submodule "uart/flash"]
path = uart/flash
url = git@blackmark.me:avr/flash.git

1
uart/flash Submodule

@ -0,0 +1 @@
Subproject commit b0f602b3be5608d71a401f5c75609f09e92df4a9

View File

@ -1,6 +1,22 @@
#include "clock.h" #include "clock.h"
#include <avr/interrupt.h>
#include "flash/flash.hpp"
#include "uart/usart.h"
int main() int main()
{ {
USART0 &serial = USART0::inst();
serial.init(9600);
sei();
while (true) {
serial << "Hello World!"
<< "\r\n";
_delay_ms(1000);
}
return 0; return 0;
} }

View File

@ -46,6 +46,17 @@
<avrtoolinterfaceclock>125000</avrtoolinterfaceclock> <avrtoolinterfaceclock>125000</avrtoolinterfaceclock>
<AAFDebugger> <AAFDebugger>
<AAFDebugFiles> <AAFDebugFiles>
<DebugFile>
<path>\Debug\uart.lss</path>
<AAFSetting>
<Label>Lss Files</Label>
<Extention>.lss</Extention>
<Regex>^\s*(?&lt;address&gt;[a-f0-9]*):\s*.*$</Regex>
<DebugEnabled>true</DebugEnabled>
<RegexGroups>address</RegexGroups>
<DebuggerExpression>$pc</DebuggerExpression>
</AAFSetting>
</DebugFile>
</AAFDebugFiles> </AAFDebugFiles>
</AAFDebugger> </AAFDebugger>
<AsfFrameworkConfig> <AsfFrameworkConfig>
@ -182,6 +193,9 @@
<Compile Include="clock.h"> <Compile Include="clock.h">
<SubType>compile</SubType> <SubType>compile</SubType>
</Compile> </Compile>
<Compile Include="flash\flash.hpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="io\io.hpp"> <Compile Include="io\io.hpp">
<SubType>compile</SubType> <SubType>compile</SubType>
</Compile> </Compile>
@ -197,6 +211,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="io" /> <Folder Include="io" />
<Folder Include="flash" />
<Folder Include="uart" /> <Folder Include="uart" />
</ItemGroup> </ItemGroup>
<Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" /> <Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />