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:
- 5:72039cd4c874
- Parent:
- 4:dd0544c80096
- Child:
- 6:9e7b4eeac6ec
diff -r dd0544c80096 -r 72039cd4c874 DMX.h --- a/DMX.h Wed Nov 21 01:44:21 2012 +0000 +++ b/DMX.h Fri Jan 04 04:31:53 2013 +0000 @@ -67,12 +67,19 @@ void int_tx (); void int_rx (); - Serial dmx; + Serial _dmx; Timeout timeout01; +#if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) __IO uint8_t *uart_lcr; __I uint8_t *uart_lsr; __IO uint8_t *uart_thr; __I uint8_t *uart_rbr; +#elif defined(TARGET_LPC11U24) + __IO uint32_t *uart_lcr; + __I uint32_t *uart_lsr; + __IO uint32_t *uart_thr; + __I uint32_t *uart_rbr; +#endif volatile DMX_MODE mode_tx, mode_rx; volatile int addr_tx, addr_rx; unsigned char data_tx[DMX_SIZE];