Add LPC1768
Dependencies: mbed-rtos mbed Xbus
Fork of MTi-1_example by
Revision 38:d8d410d1662c, committed 2015-05-21
- Comitter:
- Alex Young
- Date:
- Thu May 21 13:05:49 2015 +0200
- Parent:
- 37:3e87bf647c68
- Child:
- 39:9014c5236864
- Commit message:
- Add some friendly usage messages on startup.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu May 21 12:54:35 2015 +0200
+++ b/main.cpp Thu May 21 13:05:49 2015 +0200
@@ -381,6 +381,18 @@
}
}
+static void printIntroMessage(void)
+{
+ pc.printf("\n\n\n\n\n");
+ pc.printf("MTi-1 series embedded example firmware.\n");
+}
+
+static void printUsageInstructions(void)
+{
+ pc.printf("\n");
+ pc.printf("Press 'm' to start measuring and 'c' to return to config mode.\n");
+}
+
int main(void)
{
XbusParserCallback xbusCallback = {};
@@ -390,9 +402,12 @@
xbusParser = XbusParser_create(&xbusCallback);
configureSerialPorts();
+
+ printIntroMessage();
wakeupMotionTracker();
if (configureMotionTracker())
{
+ printUsageInstructions();
for (;;)
{
while (pc.readable())
David Khosravi
