lpc176x: Initial support for serial over usb

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-04-27 14:54:50 -04:00
parent c812a40a37
commit c381d03aad
8 changed files with 961 additions and 1 deletions

View File

@@ -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