提交 7e11d826 编写于 作者: S stroese

Clip udiv to 5 bits on PPC405 (serial.c).

上级 38daa27d
......@@ -451,6 +451,8 @@ int serial_init (void)
#else
tmp = CFG_BASE_BAUD * 16;
udiv = (clk + tmp / 2) / tmp;
if (udiv > 32) /* max. 5 bits for udiv */
udiv = 32;
#endif
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册