[PATCH v1 1/1] bsps/shared: Allow setting baud rate for zynq uart
Jan.Sommer at dlr.de
Jan.Sommer at dlr.de
Mon Feb 22 16:03:20 UTC 2021
> -----Original Message-----
> From: Sebastian Huber <sebastian.huber at embedded-brains.de>
> Sent: Monday, February 22, 2021 4:58 PM
> To: Sommer, Jan <Jan.Sommer at dlr.de>; devel at rtems.org
> Subject: Re: [PATCH v1 1/1] bsps/shared: Allow setting baud rate for zynq
> uart
>
>
> On 22/02/2021 16:43, Jan Sommer wrote:
> > + /*
> > + * Determine the baud rate
> > + */
> > + switch (term->c_ospeed) {
> > + case B0: baud = 0; break;
> > + case B50: baud = 50; break
> I am pretty sure we already have a function for this.
>
Ah, you are right. I looked in other serial drivers and copied the table from there, but now found the rtems_termios_baud_to_index function.
I will use this one then.
Thanks.
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax: +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
More information about the devel
mailing list