MCPcopy Create free account
hub / github.com/apache/nuttx / host_uart_start

Function host_uart_start

arch/sim/src/sim/win/sim_hostuart.c:51–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 ****************************************************************************/
50
51void host_uart_start(void)
52{
53 DWORD mode;
54
55 g_stdin_handle = GetStdHandle(STD_INPUT_HANDLE);
56 if (GetConsoleMode(g_stdin_handle, &mode))
57 {
58 SetConsoleMode(g_stdin_handle, mode & ~(ENABLE_MOUSE_INPUT |
59 ENABLE_WINDOW_INPUT |
60 ENABLE_ECHO_INPUT |
61 ENABLE_LINE_INPUT));
62 FlushConsoleInputBuffer(g_stdin_handle);
63 }
64
65 g_stdout_handle = GetStdHandle(STD_OUTPUT_HANDLE);
66}
67
68/****************************************************************************
69 * Name: host_uart_open

Callers 1

sim_uartinitFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected