rikbeuncode

Dependencies:   mbed-rtos mbed Xbus

Fork of MTi-1_example by Xsens

Revision:
58:db60ef0a0d16
Parent:
57:c3c85ebb7375
Child:
59:f9166c19451f
--- 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.
  *