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.
Revision 44:3ad97b872bd6, committed 2017-04-06
- Comitter:
- JMF
- Date:
- Thu Apr 06 13:56:36 2017 +0000
- Parent:
- 43:3e7b5107d4e8
- Commit message:
- corrected variable name, was _serial.index supposed to be _serial.serial.index;
Changed in this revision
Device/MODSERIAL_KSDK.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3e7b5107d4e8 -r 3ad97b872bd6 Device/MODSERIAL_KSDK.cpp --- a/Device/MODSERIAL_KSDK.cpp Fri Mar 24 22:25:41 2017 +0000 +++ b/Device/MODSERIAL_KSDK.cpp Thu Apr 06 13:56:36 2017 +0000 @@ -2,8 +2,8 @@ #include "MODSERIAL.h" void MODSERIAL::setBase(void ) { -#if 0 //jmf -switch( _serial.index ) { + +switch( _serial.serial.index ) { case 0: _base = UART0; _IRQ = UART0_RX_TX_IRQn; break; case 1: _base = UART1; _IRQ = UART1_RX_TX_IRQn; break; case 2: _base = UART2; _IRQ = UART2_RX_TX_IRQn; break; @@ -13,7 +13,7 @@ #endif default: _base = NULL; _IRQ = (IRQn_Type)NULL; break; } -#endif + } void MODSERIAL::initDevice(void) {};