An initial port to the FRDM-K46Z based on the the following: https://developer.mbed.org/users/okini3939/notebook/dmx512/

Dependents:   FRDM-Dowser

Fork of DMX by Suga koubou

Need to update the UART references to the K46Z. The KE02 Sub-Family Reference Manual provides us with the required information.

The modifications are wrapped with the target for the K46: For example, defined(TARGET_KL46Z)

Revision:
10:b748aab8404c
Parent:
9:e687f321c428
Child:
11:cb132e066057
--- 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);