diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-04-03 12:51:51 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-04-03 14:07:58 +0200 |
commit | 1301468b5a6e1080ba94ab4ca763c7e8e5c223e4 (patch) | |
tree | c96fd5f7e874294c2834a0d230082ad7a79eb0bb /c/src/lib/libbsp/powerpc | |
parent | configure: Remove defunct configure stuff (diff) | |
download | rtems-1301468b5a6e1080ba94ab4ca763c7e8e5c223e4.tar.bz2 |
bsps: Fix baud settings
Update #2897.
Diffstat (limited to 'c/src/lib/libbsp/powerpc')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-linflex.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c index 8ad7edbc44..9e6646fb65 100644 --- a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c @@ -190,7 +190,7 @@ static int mpc55xx_esci_set_attributes(int minor, const struct termios *t) volatile struct ESCI_tag *regs = self->regs; union ESCI_CR1_tag cr1 = { .R = regs->CR1.R }; union ESCI_CR2_tag cr2 = MPC55XX_ZERO_FLAGS; - rtems_termios_baud_t br = rtems_termios_baud_to_number(t->c_cflag); + rtems_termios_baud_t br = rtems_termios_baud_to_number(t->c_ospeed); /* Enable module */ cr2.B.MDIS = 0; diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-linflex.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-linflex.c index 9aed2a639c..02978be524 100644 --- a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-linflex.c +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-linflex.c @@ -174,7 +174,7 @@ static int mpc55xx_linflex_set_attributes(int minor, const struct termios *t) LINFLEX_UARTCR_32B_tag uartcr = { .R = 0 }; LINFLEX_GCR_32B_tag gcr = { .R = 0 }; LINFLEX_LINIER_32B_tag ier = { .R = 0 }; - rtems_termios_baud_t br = rtems_termios_baud_to_number(t->c_cflag); + rtems_termios_baud_t br = rtems_termios_baud_to_number(t->c_ospeed); LINFLEX_LINFBRR_32B_tag fbrr = { .R = 0 }; LINFLEX_LINIBRR_32B_tag ibrr = { .R = 0 }; |