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:
- 13:9841af9ac344
- Parent:
- 12:1f176eee2d28
- Child:
- 15:4ea4a31c7609
--- a/DMX.cpp Mon Sep 23 09:15:57 2013 +0000 +++ b/DMX.cpp Fri Jan 24 06:48:41 2014 +0000 @@ -37,6 +37,15 @@ _uart = LPC_UART3; NVIC_SetPriority(UART3_IRQn, 1); } +#elif defined(TARGET_LPC4088) + if (p_rx == p10) { + _uart = LPC_UART3; + NVIC_SetPriority(UART3_IRQn, 1); + } else + if (p_rx == p31) { + _uart = (LPC_UART_TypeDef*)LPC_UART4; + NVIC_SetPriority(UART4_IRQn, 1); + } #elif defined(TARGET_LPC11U24) if (p_rx == p10) { _uart = LPC_USART; @@ -45,7 +54,7 @@ #elif defined(TARGET_LPC11XX) // LPC1114 support by Stanly Chen if (p_rx == P1_6) { - _uart = (LPC_UART_TypeDef*) UART_0; + _uart = (LPC_UART_TypeDef*)UART_0; NVIC_SetPriority(UART_IRQn, 1); } #endif