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

Function riscv_serialinit

arch/risc-v/src/fe310/fe310_serial.c:636–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634 ****************************************************************************/
635
636void riscv_serialinit(void)
637{
638 /* Register the console */
639
640#ifdef HAVE_SERIAL_CONSOLE
641 uart_register("/dev/console", &CONSOLE_DEV);
642#endif
643
644 /* Register all UARTs */
645
646 uart_register("/dev/ttyS0", &TTYS0_DEV);
647#ifdef TTYS1_DEV
648 uart_register("/dev/ttyS1", &TTYS1_DEV);
649#endif
650}
651
652/****************************************************************************
653 * Name: up_putc

Callers

nothing calls this directly

Calls 1

uart_registerFunction · 0.85

Tested by

no test coverage detected