diff --git a/.gitmodules b/.gitmodules index 7996c56..1e6c151 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/uart/flash b/uart/flash new file mode 160000 index 0000000..b0f602b --- /dev/null +++ b/uart/flash @@ -0,0 +1 @@ +Subproject commit b0f602b3be5608d71a401f5c75609f09e92df4a9 diff --git a/uart/main.cpp b/uart/main.cpp index e8671f1..19625f8 100644 --- a/uart/main.cpp +++ b/uart/main.cpp @@ -1,6 +1,22 @@ #include "clock.h" +#include + +#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; } diff --git a/uart/uart.cppproj b/uart/uart.cppproj index 7238492..2223ecc 100644 --- a/uart/uart.cppproj +++ b/uart/uart.cppproj @@ -46,6 +46,17 @@ 125000 + + \Debug\uart.lss + + + .lss + ^\s*(?<address>[a-f0-9]*):\s*.*$ + true + address + $pc + + @@ -182,6 +193,9 @@ compile + + compile + compile @@ -197,6 +211,7 @@ +