Blame


1 98601545 2023-02-18 continue // kernel.cc
2 98601545 2023-02-18 continue
3 8b3b29b7 2023-02-18 continue #include <uart.h>
4 98601545 2023-02-18 continue
5 98601545 2023-02-18 continue
6 8607cffe 2023-02-18 continue namespace {
7 98601545 2023-02-18 continue
8 8b3b29b7 2023-02-18 continue
9 98601545 2023-02-18 continue void
10 8b3b29b7 2023-02-18 continue uart_send_string(const char *szContent)
11 98601545 2023-02-18 continue {
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);
15 98601545 2023-02-18 continue }
16 98601545 2023-02-18 continue
17 8b3b29b7 2023-02-18 continue
18 8607cffe 2023-02-18 continue } // anonymous namespace
19 98601545 2023-02-18 continue
20 98601545 2023-02-18 continue
21 98601545 2023-02-18 continue extern "C"
22 98601545 2023-02-18 continue void
23 98601545 2023-02-18 continue kernel_entry_point()
24 98601545 2023-02-18 continue {
25 8b3b29b7 2023-02-18 continue Board::Uart::initialize();
26 98601545 2023-02-18 continue
27 8b3b29b7 2023-02-18 continue
28 8b3b29b7 2023-02-18 continue uart_send_string("Test ECHO mode\r\n");
29 8b3b29b7 2023-02-18 continue
30 98601545 2023-02-18 continue for (; ; )
31 8b3b29b7 2023-02-18 continue Board::Uart::send(Board::Uart::recv());
32 98601545 2023-02-18 continue }