DMX library

Fork of DMX by Suga koubou

Files at this revision

API Documentation at this revision

Comitter:
yuhki50
Date:
Wed Jul 22 08:59:54 2015 +0000
Parent:
15:4ea4a31c7609
Commit message:
support LPC1347

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 4ea4a31c7609 -r 822dc27bc720 DMX.cpp
--- a/DMX.cpp	Tue Aug 26 13:25:24 2014 +0000
+++ b/DMX.cpp	Wed Jul 22 08:59:54 2015 +0000
@@ -57,6 +57,11 @@
       _uart = (LPC_UART_TypeDef*)UART_0;
       NVIC_SetPriority(UART_IRQn, 1);
     }
+#elif defined(TARGET_LPC13XX)
+    if (p_rx == P0_18 || p_rx == P1_26) {
+      _uart = LPC_USART;
+      NVIC_SetPriority(USART_IRQn, 1);
+    }
 #endif
 
     _dmx.baud(250000);
diff -r 4ea4a31c7609 -r 822dc27bc720 DMX.h
--- a/DMX.h	Tue Aug 26 13:25:24 2014 +0000
+++ b/DMX.h	Wed Jul 22 08:59:54 2015 +0000
@@ -99,6 +99,8 @@
     LPC_USART_Type *_uart;
 #elif defined(TARGET_LPC11XX)
     LPC_UART_TypeDef *_uart;
+#elif defined(TARGET_LPC1347)
+    LPC_USART_Type *_uart;
 #else
 #error "this CPU not supported."
 #endif