Add LPC1768
Dependencies: mbed-rtos mbed Xbus
Fork of MTi-1_example by
Revision 58:db60ef0a0d16, committed 2015-06-12
- Comitter:
- Alex Young
- Date:
- Fri Jun 12 11:32:35 2015 +0200
- Parent:
- 57:c3c85ebb7375
- Child:
- 59:f9166c19451f
- Commit message:
- Use RawSerial port for communication with MTi.
The Stream interface used by the Serial class can have problems when
used with the combination of interrupts and RTOS.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jun 11 12:35:57 2015 +0200 +++ b/main.cpp Fri Jun 12 11:32:35 2015 +0200 @@ -107,8 +107,13 @@ /*! \brief Serial port for communication with the host PC. */ static Serial pc(PC_TX, PC_RX); -/*! \brief Serial port for communication with the MT. */ -static Serial mt(MT_TX, MT_RX); +/*! + * \brief Serial port for communication with the MT. + * + * We use a RawSerial port as the Stream inteface used by the regular + * Serial class can have problems with the RTOS when using interrupts. + */ +static RawSerial mt(MT_TX, MT_RX); /*! * \brief MT reset line. *
David Khosravi
