kjj

Dependencies:   mbed-rtos mbed Xbus

Fork of MTi-1_example by Xsens

Files at this revision

API Documentation at this revision

Comitter:
Alex Young
Date:
Fri May 22 16:20:04 2015 +0200
Parent:
52:e2197b38c029
Child:
54:2e9bb1390c9c
Commit message:
Make PC serial baudrate a define

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri May 22 15:45:18 2015 +0200
+++ b/main.cpp	Fri May 22 16:20:04 2015 +0200
@@ -20,6 +20,11 @@
 #include "xsdeviceid.h"
 
 /*!
+ * \brief Baudrate used to communicate with host PC.
+ */
+#define PC_UART_BAUDRATE (921600)
+
+/*!
  * \brief The number of items to hold in the memory pools.
  */
 #define MEMORY_POOL_SIZE (4)
@@ -264,7 +269,7 @@
  */
 static void configureSerialPorts(void)
 {
-	pc.baud(921600);
+	pc.baud(PC_UART_BAUDRATE);
 	pc.format(8, Serial::None, 2);
 
 	mt.baud(115200);