diff --git a/uart/main.cpp b/uart/main.cpp index 5711b5d..b23249c 100644 --- a/uart/main.cpp +++ b/uart/main.cpp @@ -6,6 +6,7 @@ #include "flash/flash.hpp" #include "io/io.hpp" +#include "uart/uart.h" #include "uart/uart.hpp" #include "uart/usart.h" @@ -164,11 +165,26 @@ void optimalUartTest() _delay_ms(1000); } +void cUartLibTest() +{ + auto ramString = "Hello World from RAM. "; + auto flashString = F("Hello World from flash\r\n"); + + uart_init(UART_BAUD_SELECT(9600, F_CPU)); + sei(); + + uart_puts(ramString); + uart_puts_p(reinterpret_cast(flashString)); + + _delay_ms(1000); +} + int main() { newUartUsage(); // oldUsartUsage(); // optimalUartTest(); + // cUartLibTest(); // spiTest(); diff --git a/uart/uart b/uart/uart index 6ded0e1..099be10 160000 --- a/uart/uart +++ b/uart/uart @@ -1 +1 @@ -Subproject commit 6ded0e1c8dc9596e86512d269ace36c5bc5a7a5e +Subproject commit 099be106a74689beddab26a630ab423d83200f41 diff --git a/uart/uart.cppproj b/uart/uart.cppproj index 9abeafa..42ca68c 100644 --- a/uart/uart.cppproj +++ b/uart/uart.cppproj @@ -217,6 +217,12 @@ compile + + compile + + + compile + compile