Extend STM mbed board. Thanks Y.Kuroda-san for creating good function.

Dependencies:   RingBuffer

Dependents:   Frequency_Counter_w_GPS_1PPS FreqCntr_GPS1PPS_F746F4xx_w_recipro

Fork of iSerial by Yoji KURODA

iSerial_LPC11U24.h

Committer:
kenjiArai
Date:
2016-11-16
Revision:
11:6bea021727a1
Parent:
10:04095c7f816a

File content as of revision 11:6bea021727a1:

#if defined(TARGET_LPC11U24)

void
iSerial::enable_uart_irq(void)
{
    switch(tx) {
        case USBTX:
            NVIC_EnableIRQ(UART_IRQn);
            break;
        case p9:
            NVIC_EnableIRQ(UART_IRQn);
            break;
    }
}

void
iSerial::disable_uart_irq(void)
{
    switch(tx) {
        case USBTX:
            NVIC_DisableIRQ(UART_IRQn);
            break;
        case p9:
            NVIC_DisableIRQ(UART_IRQn);
            break;
    }
}

#endif