An initial port to the FRDM-K46Z based on the the following: https://developer.mbed.org/users/okini3939/notebook/dmx512/
Fork of DMX by
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)
Diff: DMX.h
- Revision:
- 14:cef8749fd54d
- Parent:
- 13:9841af9ac344
- Child:
- 15:4ea4a31c7609
--- a/DMX.h Fri Jan 24 06:48:41 2014 +0000 +++ b/DMX.h Fri Jan 24 15:13:25 2014 +0000 @@ -12,6 +12,7 @@ #define DMX_H #include "mbed.h" +#include "RawSerial.h" #define DMX_UART_DIRECT @@ -83,11 +84,8 @@ void int_tx (); void int_rx (); -#if defined(TARGET_LPC1768) +// Serial _dmx; RawSerial _dmx; -#else - Serial _dmx; -#endif Timeout timeout01; volatile DMX_MODE mode_tx, mode_rx; volatile int addr_tx, addr_rx;