Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there some appropriate way of configuring the console buffer size (and baud rate) in bsp.h, or some way of calling the termios code to get the rate changed and buffer resized at startup ?

0
Posted

Is there some appropriate way of configuring the console buffer size (and baud rate) in bsp.h, or some way of calling the termios code to get the rate changed and buffer resized at startup ?

0

To change the buffer size call rtems_termios_bufsize before the console termios driver is initialised. The call is defined in libio_.h in cpukit/libcsupport. To change the default baud rate for the console port, call rtems_termios_set_initial_baud after calling rtems_termios_open in the device driver. The powerpc/gen5200 BSP uses this feature so the RTEMS console honors the baud rate configured via U-Boot. Later in the application you can make a termios set attribute call before you use the serial port or console. This could be in a BSP hook or main.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.