MODSERIAL with support for more devices
Dependents: 1D-Pong BMT-K9_encoder BMT-K9-Regelaar programma_filter ... more
Check the cookbook page for more information: https://mbed.org/cookbook/MODSERIAL
Did you add a device? Please send a pull request so we can keep everything in one library instead of many copies. In that case also send a PM, since currently mbed does not inform of new pull requests. I will then also add you to the developers of this library so you can do other changes directly.
Diff: MODSERIAL.h
- Revision:
- 26:91e4dba7ebe2
- Parent:
- 25:ae0408ebdd68
- Child:
- 27:9c93ce7cb9d8
--- a/MODSERIAL.h Tue Jan 08 18:01:03 2013 +0000 +++ b/MODSERIAL.h Mon Jun 10 19:06:21 2013 +0000 @@ -1003,7 +1003,7 @@ dmaSendChannel = dmaChannel & 0x7; uint32_t conn = MODDMA::UART0_Tx; - switch(_uidx) { + switch(_serial.index) { case 0: conn = MODDMA::UART0_Tx; break; case 1: conn = MODDMA::UART1_Tx; break; case 2: conn = MODDMA::UART2_Tx; break;