aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpc176x/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpc176x/timer.c')
-rw-r--r--src/lpc176x/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpc176x/timer.c b/src/lpc176x/timer.c
index 318e8bea..69add9c3 100644
--- a/src/lpc176x/timer.c
+++ b/src/lpc176x/timer.c
@@ -8,7 +8,7 @@
#include "board/irq.h" // irq_disable
#include "board/misc.h" // timer_read_time
#include "board/timer_irq.h" // timer_dispatch_many
-#include "internal.h" // enable_peripheral_clock
+#include "internal.h" // enable_pclock
#include "sched.h" // DECL_INIT
// Set the next irq time
@@ -39,7 +39,7 @@ timer_init(void)
// Disable timer
LPC_TIM0->TCR = 0x02;
// Setup clock and prescaler (divide sys clock by 4)
- enable_peripheral_clock(PCLK_TIMER0);
+ enable_pclock(PCLK_TIMER0);
LPC_TIM0->PR = 3;
// Enable interrupts
NVIC_SetPriority(TIMER0_IRQn, 2);