]> rtime.felk.cvut.cz Git - sysless.git/commit
LPC17xx UART uart0Init accepts baudrate directly in Hz.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sat, 25 Sep 2010 12:46:21 +0000 (14:46 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sat, 25 Sep 2010 12:46:21 +0000 (14:46 +0200)
commit5be157ad1ff86b50cc097d4f40f705e0e443c030
treeee2ddbf6ebaa3776de06727e77b205ef0b3a733d
parent09448d8e929847f8bf9208ea46924f66157bd994
LPC17xx UART uart0Init accepts baudrate directly in Hz.

Previous computation with UART_BAUD macro results
in inclusion of floating point library, because
PCLK is not constant. It is based on calculation from
system_frequency.

The actual solution is not ideal when ratio is not exact.
Fraction divider should be utilized in such cases.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.h
board/arm/lpc17xx-common/libs/bspbase/uart.c
board/arm/lpc17xx-common/libs/bspbase/uart.h