DMX Library for STM devices
Dependents: DISCO-F746NG_DMX-Test
Fork of DMX by
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];