aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpc176x/timer.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-04-27 14:54:50 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-05-25 11:52:13 -0400
commitc381d03aad5c3ee761169b7c7bced519cc14da29 (patch)
tree7cf1028a3a24d0fa21e94fdc2ca30ba7250fac49 /src/lpc176x/timer.c
parentc812a40a3782415e454b04bf7bd2158a6f0ec8b5 (diff)
downloadkutter-c381d03aad5c3ee761169b7c7bced519cc14da29.tar.gz
kutter-c381d03aad5c3ee761169b7c7bced519cc14da29.tar.xz
kutter-c381d03aad5c3ee761169b7c7bced519cc14da29.zip
lpc176x: Initial support for serial over usb
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/lpc176x/timer.c')
-rw-r--r--src/lpc176x/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc176x/timer.c b/src/lpc176x/timer.c
index d6d6f9ed..d8196329 100644
--- a/src/lpc176x/timer.c
+++ b/src/lpc176x/timer.c
@@ -38,7 +38,7 @@ timer_init(void)
// Disable timer
LPC_TIM0->TCR = 0x02;
// Enable interrupts
- NVIC_SetPriority(TIMER0_IRQn, 1);
+ NVIC_SetPriority(TIMER0_IRQn, 2);
NVIC_EnableIRQ(TIMER0_IRQn);
LPC_TIM0->MCR = 0x01;
// Clear counter value