diff options
Diffstat (limited to 'os/hal/platforms/LPC13xx/serial_lld.c')
-rw-r--r-- | os/hal/platforms/LPC13xx/serial_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/LPC13xx/serial_lld.c b/os/hal/platforms/LPC13xx/serial_lld.c index 03a57d6ef..0db6907b3 100644 --- a/os/hal/platforms/LPC13xx/serial_lld.c +++ b/os/hal/platforms/LPC13xx/serial_lld.c @@ -62,7 +62,7 @@ static const SerialConfig default_config = { static void uart_init(SerialDriver *sdp) {
LPC_UART_TypeDef *u = sdp->uart;
- uint32_t div = LPC11xx_UART_PCLK / (sdp->config->sc_speed << 4);
+ uint32_t div = LPC13xx_UART_PCLK / (sdp->config->sc_speed << 4);
u->LCR = sdp->config->sc_lcr | LCR_DLAB;
u->DLL = div;
u->DLM = div >> 8;
|