Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I specify custom/high baud rates with the standard UART driver?

0
Posted

How do I specify custom/high baud rates with the standard UART driver?

0

The serial core driver supports up to 4,000,000 mbit, but only in standard incremental chunks. If you need higher or non-standard speeds (whatever the hardware actually supports), there are two ways. The standard way (termios2 + arbitrary speeds) was added with Linux-2.6.22, so for older kernels, you will need to use the B38400 hack. With the arbitrary speed support, you have to invoke custom ioctl()’s on the file descriptor for the UART using the kernel headers.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123