Typo which prevented baud rate changes from Thomas Doerfler <td@imd.m.isar.de>.

This commit is contained in:
Joel Sherrill
1998-10-12 20:47:09 +00:00
parent 70b45c643d
commit 91356bcb50

View File

@@ -215,7 +215,7 @@ void
spiBaudSet(unsigned32 baudrate)
{
unsigned32 tmp;
tmp = Cpu_table.serial_per_sec / Cpu_table.serial_rate;
tmp = Cpu_table.serial_per_sec / baudrate;
tmp = ((tmp) >> 4) - 1;
port->BRDL = tmp & 0xff;
port->BRDH = tmp >> 8;