forked from Imagelibrary/rtems
powerpc/shared/console: Make console baud rate configurable.
The "powerpc/shared/console" code has the start-up console value fixed at 9600 baud. This changes the hard-wired constant "9600" in the code to the configuration setting "BSP_CONSOLE_BAUD" and adds configuration support in both the "waf" and the legacy configuration systems. Note that the VME BSPs beatnik, mvme3100, and mve5100 can be improved by adding a "mvmexxxx" BSP family. This configuration change, as well as future configuration changes, could then be made in a "grp.yml" file.
This commit is contained in:
committed by
Vijay Kumar Banerjee
parent
bbc93c119c
commit
9c13e528a0
@@ -153,8 +153,8 @@ static int console_first_open(int major, int minor, void *arg)
|
||||
/* must not open a minor device we have no ISR for */
|
||||
assert( minor>=0 && minor < sizeof(ttyS)/sizeof(ttyS[0]) && ttyS[minor].isr );
|
||||
|
||||
/* 9600-8-N-1 */
|
||||
BSP_uart_init(minor, 9600, 0);
|
||||
/* BSP_CONSOLE_BAUD-8-N-1 */
|
||||
BSP_uart_init(minor, BSP_CONSOLE_BAUD, 0);
|
||||
status = BSP_uart_install_isr(minor, ttyS[minor].isr);
|
||||
if (!status) {
|
||||
printk("Error installing serial console interrupt handler for '%s'!\n",
|
||||
|
||||
Reference in New Issue
Block a user