Hi,
For DMX project using BeagleBone black, I am targeting a 250000 baud rate, I am writing a program in C, the baud rate is not standard so I thing I need to use a higher baud rate (B2500000) with a divisor. my question is how can I use a divisor here?
thank you.
#include <stdio.h>
#include <unistd.h> //Used for UART
#include <fcntl.h> //Used for UART
#include <termios.h> //Used for UART
int uart1_filestream = open("/dev/tty01", O_WRONLY);
struct termios options;
tcgetattr(uart0_filestream, &options);
options.c_cflag = B2500000 | CS8 | CLOCAL | CREAD; //<Set baud rate