diff options
author | Peter Dufault <dufault@hda.com> | 2021-04-27 13:48:46 -0400 |
---|---|---|
committer | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-04-27 16:46:48 -0600 |
commit | 9c13e528a003028af27365b6894af85836d804a1 (patch) | |
tree | f1ec6b8ab12805fa4c8091ec00c4b30b676453a4 /bsps/powerpc/shared/console/uart.c | |
parent | Return status code for _Thread_Start() (diff) | |
download | rtems-9c13e528a003028af27365b6894af85836d804a1.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | bsps/powerpc/shared/console/uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/powerpc/shared/console/uart.c b/bsps/powerpc/shared/console/uart.c index 62212b98db..41db52f8ff 100644 --- a/bsps/powerpc/shared/console/uart.c +++ b/bsps/powerpc/shared/console/uart.c @@ -160,7 +160,7 @@ BSP_uart_init(int uart, int baud, int hwFlow) if ( (int)BSPBaseBaud <= 0 ) { /* Use current divisor assuming BSPBaseBaud gives us the current speed */ - BSPBaseBaud = BSPBaseBaud ? -BSPBaseBaud : 9600; + BSPBaseBaud = BSPBaseBaud ? -BSPBaseBaud : BSP_CONSOLE_BAUD; BSPBaseBaud *= ((uread(uart, DLM) << 8) | uread(uart, DLL)); } |