SERbauds, setbaud
extern int SERbauds[];
void setbaud (int channel, int baudDiv); // for UART0 and
UART1
This array contains the baud rates for up to 32 IOs. It is used when RXD or TXD routines are called.
Baudrates can be upto 115.2 Kbaud.
The UART0, UART1 hardware channel baudrate can be set by calling-
void setbaud(0, baudDiv); // baudDiv = 15000000 / baudrate / 16 -- for example 19.2Kb is 49 for ARMmite, ARMexpress, and ARMweb
void setbaud(1, baudDiv); // baudDiv = 25000000 / baudrate / 16 -- for example 19.2Kb is 81 forSuperPRO and PROplus
For the ARMexpress SIN and SOUT are limited by the level translators to 19.2Kbaud. This
last limit does not apply to the SuperPRO, PROplus, ARMmite or ARMweb.