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"]
path = uart/uart
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 <avr/interrupt.h>
#include "flash/flash.hpp"
#include "uart/usart.h"
int main()
{
USART0 &serial = USART0::inst();
serial.init(9600);
sei();
while (true) {
serial << "Hello World!"
<< "\r\n";
_delay_ms(1000);
}
return 0;
}

View File

@ -46,6 +46,17 @@
<avrtoolinterfaceclock>125000</avrtoolinterfaceclock>
<AAFDebugger>
<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>
</AAFDebugger>
<AsfFrameworkConfig>
@ -182,6 +193,9 @@
<Compile Include="clock.h">
<SubType>compile</SubType>
</Compile>
<Compile Include="flash\flash.hpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="io\io.hpp">
<SubType>compile</SubType>
</Compile>
@ -197,6 +211,7 @@
</ItemGroup>
<ItemGroup>
<Folder Include="io" />
<Folder Include="flash" />
<Folder Include="uart" />
</ItemGroup>
<Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />