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 621c3fa7 2023-03-02 continue while (*szCurrent)
15 8b3b29b7 2023-02-18 continue Board::Uart::send(*szCurrent);
16 3be3b31b 2023-03-02 continue ++szCurrent;
22 621c3fa7 2023-03-02 continue uart_echo_test_mode()
24 621c3fa7 2023-03-02 continue uart_send_string("UART echo test mode\r\n> ");
25 621c3fa7 2023-03-02 continue for (; ; )
27 621c3fa7 2023-03-02 continue Board::Uart::send(Board::Uart::recv());
32 8607cffe 2023-02-18 continue } // anonymous namespace
35 98601545 2023-02-18 continue extern "C"
37 98601545 2023-02-18 continue kernel_entry_point()
39 8b3b29b7 2023-02-18 continue Board::Uart::initialize();
40 6efd408f 2023-03-01 continue uart_send_string("Squat entry point\r\n");
42 621c3fa7 2023-03-02 continue uart_echo_test_mode();