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 98601545 2023-02-18 continue namespace
7 98601545 2023-02-18 continue {
8 98601545 2023-02-18 continue
9 8b3b29b7 2023-02-18 continue
10 98601545 2023-02-18 continue void
11 8b3b29b7 2023-02-18 continue uart_send_string(const char *szContent)
12 98601545 2023-02-18 continue {
13 98601545 2023-02-18 continue const char *szCurrent = szContent;
14 98601545 2023-02-18 continue while (*szCurrent)
15 8b3b29b7 2023-02-18 continue Board::Uart::send(*szCurrent);
16 98601545 2023-02-18 continue }
17 98601545 2023-02-18 continue
18 8b3b29b7 2023-02-18 continue
19 98601545 2023-02-18 continue }
20 98601545 2023-02-18 continue
21 98601545 2023-02-18 continue
22 98601545 2023-02-18 continue extern "C"
23 98601545 2023-02-18 continue void
24 98601545 2023-02-18 continue kernel_entry_point()
25 98601545 2023-02-18 continue {
26 8b3b29b7 2023-02-18 continue Board::Uart::initialize();
27 98601545 2023-02-18 continue
28 8b3b29b7 2023-02-18 continue
29 8b3b29b7 2023-02-18 continue uart_send_string("Test ECHO mode\r\n");
30 8b3b29b7 2023-02-18 continue
31 98601545 2023-02-18 continue for (; ; )
32 8b3b29b7 2023-02-18 continue Board::Uart::send(Board::Uart::recv());
33 98601545 2023-02-18 continue }