Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Frequency_Counter_w_GPS_1PPS FreqCntr_GPS1PPS_F746F4xx_w_recipro
Fork of iSerial by
iSerial_LPC1768.h
- Committer:
- kenjiArai
- Date:
- 2015-01-02
- Revision:
- 10:04095c7f816a
File content as of revision 10:04095c7f816a:
#if defined(TARGET_LPC1768)
void
iSerial::enable_uart_irq(void)
{
switch(tx) {
case USBTX:
NVIC_EnableIRQ(UART2_IRQn);
break;
case p9:
NVIC_EnableIRQ(UART1_IRQn);
break;
case p13:
NVIC_EnableIRQ(UART3_IRQn);
break;
case p28:
NVIC_EnableIRQ(UART0_IRQn);
break;
}
}
void
iSerial::disable_uart_irq(void)
{
switch(tx) {
case USBTX:
NVIC_DisableIRQ(UART2_IRQn);
break;
case p9:
NVIC_DisableIRQ(UART1_IRQn);
break;
case p13:
NVIC_DisableIRQ(UART3_IRQn);
break;
case p28:
NVIC_DisableIRQ(UART0_IRQn);
break;
}
}
#endif
