add LPC1114FN28 support
Dependents: rosserial_mbed_lib
Fork of MODSERIAL by
Revision 26:99984a86bf3b, committed 2013-10-26
- Comitter:
- jjzak
- Date:
- Sat Oct 26 15:32:15 2013 +0000
- Parent:
- 25:ae0408ebdd68
- Commit message:
- add LPC1114FN28 support
Changed in this revision
INIT.cpp | Show annotated file Show diff for this revision Revisions of this file |
MODSERIAL.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ae0408ebdd68 -r 99984a86bf3b INIT.cpp --- a/INIT.cpp Tue Jan 08 18:01:03 2013 +0000 +++ b/INIT.cpp Sat Oct 26 15:32:15 2013 +0000 @@ -37,6 +37,10 @@ _base = LPC_USART; +#elif defined __LPC11xx_H__ + + _base = LPC_UART; + #else switch( _serial.index ) { case 0: _base = LPC_UART0; break;
diff -r ae0408ebdd68 -r 99984a86bf3b MODSERIAL.cpp --- a/MODSERIAL.cpp Tue Jan 08 18:01:03 2013 +0000 +++ b/MODSERIAL.cpp Sat Oct 26 15:32:15 2013 +0000 @@ -89,6 +89,8 @@ #ifdef __LPC11UXX_H__ NVIC_DisableIRQ( UART_IRQn ); +#elif defined __LPC11xx_H__ + NVIC_DisableIRQ( UART_IRQn ); #else switch( _serial.index ) { case 0: NVIC_DisableIRQ( UART0_IRQn ); break; @@ -104,6 +106,8 @@ { #ifdef __LPC11UXX_H__ NVIC_EnableIRQ( UART_IRQn ); +#elif defined __LPC11xx_H__ + NVIC_EnableIRQ( UART_IRQn ); #else switch( _serial.index ) { case 0: NVIC_EnableIRQ( UART0_IRQn ); break;