rename irq handler on lpc176x

This commit is contained in:
Desuuuu 2021-04-07 14:44:13 +02:00
parent 6430a1e91b
commit 0d646c4a2e
No known key found for this signature in database
GPG Key ID: 85943F4B2C2CE0DC
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ kick_tx(void)
} }
void void
UARTx_IRQHandler(void) t5uid1_UARTx_IRQHandler(void)
{ {
uint32_t iir = LPC_UARTx->IIR, status = iir & 0x0f; uint32_t iir = LPC_UARTx->IIR, status = iir & 0x0f;
if (status == 0x04) if (status == 0x04)
@ -104,6 +104,6 @@ t5uid1_init(uint32_t baud)
gpio_peripheral(GPIO_Tx, UARTx_FUNC, 0); gpio_peripheral(GPIO_Tx, UARTx_FUNC, 0);
// Enable receive irq // Enable receive irq
armcm_enable_irq(UARTx_IRQHandler, UARTx_IRQn, 0); armcm_enable_irq(t5uid1_UARTx_IRQHandler, UARTx_IRQn, 0);
LPC_UARTx->IER = 0x01; LPC_UARTx->IER = 0x01;
} }