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:
16:84a017ef96f8
Parent:
15:4ea4a31c7609
Child:
18:6303931e4102
--- a/DMX.h	Tue Aug 26 13:25:24 2014 +0000
+++ b/DMX.h	Thu Mar 05 21:28:02 2015 +0000
@@ -8,12 +8,15 @@
  * @brief DMX512 send/recv
  */
  
+
+
 #ifndef DMX_H
 #define DMX_H
 
 #include "mbed.h"
 #include "RawSerial.h"
 
+
 #define DMX_UART_DIRECT
 
 #define DMX_SIZE 512
@@ -93,14 +96,17 @@
     unsigned char data_rx[DMX_SIZE];
 
 private:
+    
 #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088)
     LPC_UART_TypeDef *_uart;
 #elif defined(TARGET_LPC11UXX)
     LPC_USART_Type *_uart;
 #elif defined(TARGET_LPC11XX)
     LPC_UART_TypeDef *_uart;
+#elif defined(TARGET_KL46Z)
+    UARTLP_Type *_uart;
 #else
-#error "this CPU not supported."
+//#error "this CPU not supported."
 #endif
 
 };