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:
- 15:4ea4a31c7609
- Parent:
- 14:cef8749fd54d
- Child:
- 16:84a017ef96f8
diff -r cef8749fd54d -r 4ea4a31c7609 DMX.h --- a/DMX.h Fri Jan 24 15:13:25 2014 +0000 +++ b/DMX.h Tue Aug 26 13:25:24 2014 +0000 @@ -19,7 +19,7 @@ #define DMX_SIZE 512 #define DMX_TIME_BREAK 100 // 100us (88us-1s) #define DMX_TIME_MAB 10 // 10us (8us-1s) -#define DMX_TIME_BETWEEN 10 // 10us (0-1s) +#define DMX_TIME_BETWEEN 200 // 10us (0-1s) #define DMX_START_CODE 0 enum DMX_MODE { @@ -95,7 +95,7 @@ private: #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) LPC_UART_TypeDef *_uart; -#elif defined(TARGET_LPC11U24) +#elif defined(TARGET_LPC11UXX) LPC_USART_Type *_uart; #elif defined(TARGET_LPC11XX) LPC_UART_TypeDef *_uart;