diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mpc55xxevb')
-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 }; |