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.cpp
- Revision:
- 15:4ea4a31c7609
- Parent:
- 13:9841af9ac344
- Child:
- 16:84a017ef96f8
--- a/DMX.cpp Fri Jan 24 15:13:25 2014 +0000 +++ b/DMX.cpp Tue Aug 26 13:25:24 2014 +0000 @@ -46,7 +46,7 @@ _uart = (LPC_UART_TypeDef*)LPC_UART4; NVIC_SetPriority(UART4_IRQn, 1); } -#elif defined(TARGET_LPC11U24) +#elif defined(TARGET_LPC11UXX) if (p_rx == p10) { _uart = LPC_USART; NVIC_SetPriority(UART_IRQn, 1); @@ -154,7 +154,7 @@ if (flg & ((1 << 7)|(1 << 3)|(1 << 4))) { // Break Time - if (addr_rx >= 24) { + if (addr_rx >= 24 && mode_rx == DMX_MODE_DATA) { is_recived = 1; } mode_rx = DMX_MODE_BREAK;