Add support new target MCU: LPC1114FN28 or LPC11XX

Fork of DMX by Suga koubou

Files at this revision

API Documentation at this revision

Comitter:
stanly88
Date:
Thu Sep 05 10:01:59 2013 +0000
Parent:
9:e687f321c428
Commit message:
Add support Target MCU: LPC1114FN28, or LPC11XX

Changed in this revision

DMX.cpp Show annotated file Show diff for this revision Revisions of this file
DMX.h Show annotated file Show diff for this revision Revisions of this file
diff -r e687f321c428 -r b748aab8404c DMX.cpp
--- a/DMX.cpp	Fri Mar 29 02:06:50 2013 +0000
+++ b/DMX.cpp	Thu Sep 05 10:01:59 2013 +0000
@@ -42,6 +42,15 @@
       _uart = LPC_USART;
       NVIC_SetPriority(UART_IRQn, 1);
     }
+#elif defined(TARGET_LPC11XX)
+    if (p_rx == P1_6) {
+      _uart = (LPC_UART_TypeDef*) UART_0;
+      NVIC_SetPriority(UART_IRQn, 1);
+    }
+    if (p_tx == P1_7) {
+      _uart = (LPC_UART_TypeDef*) UART_0;
+      NVIC_SetPriority(UART_IRQn, 1);
+    }
 #endif
 
     _dmx.baud(250000);
diff -r e687f321c428 -r b748aab8404c DMX.h
--- a/DMX.h	Fri Mar 29 02:06:50 2013 +0000
+++ b/DMX.h	Thu Sep 05 10:01:59 2013 +0000
@@ -92,6 +92,8 @@
     LPC_UART_TypeDef *_uart;
 #elif defined(TARGET_LPC11U24)
     LPC_USART_Type *_uart;
+#elif defined(TARGET_LPC11XX)
+    LPC_UART_TypeDef *_uart;
 #endif
 
 };