Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Higher Baud Rates for NIOS Serial Ports

For my project I needed higher baud rates than the rather slow and stone age 115200 maximum that the NIOS Serial port driver provides. Through some investigation I have found the place to modify to include the higher rates.

With the uClinux 1.4 for NIOS distribution you will need to modify the NIOSserial.c file.

static int baud_table[] = {

0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800,

9600, 19200, 38400, 57600, 115200, 230400, 460800, 500000, 576000,

9216000, 1000000, 1152000, 1500000, 2000000, 2500000, 3000000,

3500000, 4000000, 0 };

The above is the baud table that I added the extra baud rates to. To explain the rhyme and reason behind the particular baud rates I chose, please look in the /linux-2.6.x/include/asm/termbits.h file which has a list of the baud rates available using the termios method of setting baud rates.

Is there any way to fix the cfsetspeed() function? It is broken. Modifying the above baud_table does not affect the cfsetspeed function.

Is there any possiblity that this modification could be included in future releases of the NIOS II uClinux distribution?
No RepliesBe the first to reply