DMX library
Fork of DMX by
Diff: DMX.h
- Revision:
- 13:9841af9ac344
- Parent:
- 12:1f176eee2d28
- Child:
- 14:cef8749fd54d
--- a/DMX.h Mon Sep 23 09:15:57 2013 +0000 +++ b/DMX.h Fri Jan 24 06:48:41 2014 +0000 @@ -83,7 +83,11 @@ void int_tx (); void int_rx (); +#if defined(TARGET_LPC1768) + RawSerial _dmx; +#else Serial _dmx; +#endif Timeout timeout01; volatile DMX_MODE mode_tx, mode_rx; volatile int addr_tx, addr_rx; @@ -91,12 +95,14 @@ unsigned char data_rx[DMX_SIZE]; private: -#if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) +#if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) LPC_UART_TypeDef *_uart; #elif defined(TARGET_LPC11U24) LPC_USART_Type *_uart; #elif defined(TARGET_LPC11XX) LPC_UART_TypeDef *_uart; +#else +#error "this CPU not supported." #endif };