diff options
Diffstat (limited to 'src/lpc176x/serial.c')
-rw-r--r-- | src/lpc176x/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc176x/serial.c b/src/lpc176x/serial.c index 87a79270..07af6e57 100644 --- a/src/lpc176x/serial.c +++ b/src/lpc176x/serial.c @@ -75,8 +75,8 @@ void serial_init(void) { // Setup baud - LPC_UARTx->LCR = (1<<7); // set DLAB bit enable_pclock(PCLK_UARTx); + LPC_UARTx->LCR = (1<<7); // set DLAB bit uint32_t pclk = get_pclock_frequency(PCLK_UARTx); uint32_t div = pclk / (CONFIG_SERIAL_BAUD * 16); LPC_UARTx->DLL = div & 0xff; |