add LPC1114FN28 support

Dependents:   rosserial_mbed_lib

Fork of MODSERIAL by Andy K

Files at this revision

API Documentation at this revision

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