aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpc176x/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpc176x/serial.c')
-rw-r--r--src/lpc176x/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc176x/serial.c b/src/lpc176x/serial.c
index 1594a2ad..29a535a3 100644
--- a/src/lpc176x/serial.c
+++ b/src/lpc176x/serial.c
@@ -16,7 +16,7 @@ serial_init(void)
{
// Setup baud
LPC_UART0->LCR = (1<<7); // set DLAB bit
- enable_peripheral_clock(PCLK_UART0);
+ enable_pclock(PCLK_UART0);
uint32_t pclk = SystemCoreClock;
uint32_t div = pclk / (CONFIG_SERIAL_BAUD * 16);
LPC_UART0->DLL = div & 0xff;