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.
Dependencies: mbed MODSERIAL FATFileSystem
Diff: System/StaticDefs.cpp
- Revision:
- 32:f2f8ae34aadc
- Parent:
- 24:c7d9b5bf3829
- Child:
- 34:9b66c5188051
--- a/System/StaticDefs.cpp Wed Dec 06 22:45:23 2017 +0000
+++ b/System/StaticDefs.cpp Wed Dec 20 13:52:50 2017 +0000
@@ -14,7 +14,7 @@
}
MODSERIAL & pc() {
- //static MODSERIAL pc(USBTX, USBRX); //PC USB tx, rx pin
+ //static MODSERIAL pc(USBTX, USBRX);
static MODSERIAL pc(p9, p10); //XBee tx, rx pins
return pc;
}
@@ -24,6 +24,11 @@
// return xb;
//}
+MODSERIAL & datalogger() {
+ static MODSERIAL datalogger(p28, p27); //Data Logger tx, rx pins
+ return datalogger;
+}
+
LocalFileSystem & local() {
static LocalFileSystem local("local");
return local;
@@ -79,6 +84,11 @@
return sequenceController;
}
+MbedLogger & mbedLogger() {
+ static MbedLogger mbedLogger;
+ return mbedLogger;
+}
+
DigitalOut & led1() {
static DigitalOut led1(LED1);
return led1;