Since we skipped our meeting today, here's a quick screengrab of UART working with -serial stdio on QEMU (just inb/outb instructions directly, without termios or ns16550): https://i.imgur.com/tumtD3Z.png
On Wed, Jun 27, 2018 at 10:56 AM, Amaan Cheval <amaan.che...@gmail.com> wrote: > Brilliant, thank you for the quick response and clarification! > > On Wed, Jun 27, 2018 at 10:51 AM, Sebastian Huber > <sebastian.hu...@embedded-brains.de> wrote: >> On 27/06/18 06:59, Amaan Cheval wrote: >>> >>> Quick question since the BSP guide is outdated - I see several >>> "methods" of RTEMS' console management. The guide says to use >>> console-termios.c (and rtems_termios_device_install) as the "new" >>> method. >>> >>> https://docs.rtems.org/branches/master/bsp-howto/console.html#build-system-and-files >> >> >> The console driver documentation in the BSP guide is up to date. >> >>> >>> Most BSPs (beagle, pc386, malta) using NS16550 use legacy-console.c, >>> though - are NS16550 and Termios mutually exclusive for now? >>> >>> Or is it simply that none of the old NS16550 users have been ported >>> over to using console-termios.c as well? >>> >>> What would be the expectation from a new BSP? >> >> >> Definitely use rtems_termios_device_install() in new BSPs. There is a >> NS16550 driver variant for this new interface: >> >> bsps/shared/dev/serial/ns16550-context.c >> >> In <libchip/ns16550.h>: >> >> extern const rtems_termios_device_handler ns16550_handler_interrupt; >> extern const rtems_termios_device_handler ns16550_handler_polled; >> extern const rtems_termios_device_handler ns16550_handler_task; >> >> extern const rtems_termios_device_flow ns16550_flow_rtscts; >> extern const rtems_termios_device_flow ns16550_flow_dtrcts; >> >> void ns16550_polled_putchar(rtems_termios_device_context *base, char out); >> >> int ns16550_polled_getchar(rtems_termios_device_context *base); >> >> bool ns16550_probe(rtems_termios_device_context *base); >> >> -- >> Sebastian Huber, embedded brains GmbH >> >> Address : Dornierstr. 4, D-82178 Puchheim, Germany >> Phone : +49 89 189 47 41-16 >> Fax : +49 89 189 47 41-09 >> E-Mail : sebastian.hu...@embedded-brains.de >> PGP : Public key available on request. >> >> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. >> _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel