Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DMX by
Revision 10:b748aab8404c, committed 2013-09-05
- Comitter:
- stanly88
- Date:
- Thu Sep 05 10:01:59 2013 +0000
- Parent:
- 9:e687f321c428
- Commit message:
- Add support Target MCU: LPC1114FN28, or LPC11XX
Changed in this revision
| DMX.cpp | Show annotated file Show diff for this revision Revisions of this file |
| DMX.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/DMX.cpp Fri Mar 29 02:06:50 2013 +0000
+++ b/DMX.cpp Thu Sep 05 10:01:59 2013 +0000
@@ -42,6 +42,15 @@
_uart = LPC_USART;
NVIC_SetPriority(UART_IRQn, 1);
}
+#elif defined(TARGET_LPC11XX)
+ if (p_rx == P1_6) {
+ _uart = (LPC_UART_TypeDef*) UART_0;
+ NVIC_SetPriority(UART_IRQn, 1);
+ }
+ if (p_tx == P1_7) {
+ _uart = (LPC_UART_TypeDef*) UART_0;
+ NVIC_SetPriority(UART_IRQn, 1);
+ }
#endif
_dmx.baud(250000);
--- a/DMX.h Fri Mar 29 02:06:50 2013 +0000
+++ b/DMX.h Thu Sep 05 10:01:59 2013 +0000
@@ -92,6 +92,8 @@
LPC_UART_TypeDef *_uart;
#elif defined(TARGET_LPC11U24)
LPC_USART_Type *_uart;
+#elif defined(TARGET_LPC11XX)
+ LPC_UART_TypeDef *_uart;
#endif
};
