1 98601545 2023-02-18 continue // kernel.cc
3 8b3b29b7 2023-02-18 continue #include <uart.h>
6 8607cffe 2023-02-18 continue namespace {
10 8b3b29b7 2023-02-18 continue uart_send_string(const char *szContent)
12 98601545 2023-02-18 continue const char *szCurrent = szContent;
13 98601545 2023-02-18 continue while (*szCurrent)
14 8b3b29b7 2023-02-18 continue Board::Uart::send(*szCurrent);
18 8607cffe 2023-02-18 continue } // anonymous namespace
21 98601545 2023-02-18 continue extern "C"
23 98601545 2023-02-18 continue kernel_entry_point()
25 8b3b29b7 2023-02-18 continue Board::Uart::initialize();
28 8b3b29b7 2023-02-18 continue uart_send_string("Test ECHO mode\r\n");
30 98601545 2023-02-18 continue for (; ; )
31 8b3b29b7 2023-02-18 continue Board::Uart::send(Board::Uart::recv());