Describes predefine macros for mbed online compiler (armcc)

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Mon Nov 10 04:34:15 2014 +0000
Parent:
0:99f7e7890e03
Child:
2:fe7a36257939
Commit message:
Add mbed username

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Jun 26 14:50:52 2013 +0000
+++ b/main.cpp	Mon Nov 10 04:34:15 2014 +0000
@@ -3,6 +3,12 @@
 Serial pc(USBTX, USBRX); // tx, rx
 
 int main() {
+#ifdef MBED_USERNAME
+#define STRING(str) pc.printf(#str);
+    pc.printf("mbed username: ");
+    STRING(MBED_USERNAME);
+    pc.printf("\n\n");
+#endif
 #ifdef __arm__
     pc.printf("Built with ARM compiler\n\n");
     pc.printf("ARM Compiler version : %d\n", __ARMCC_VERSION);
--- a/mbed.bld	Wed Jun 26 14:50:52 2013 +0000
+++ b/mbed.bld	Mon Nov 10 04:34:15 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/3d0ef94e36ec
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/4096f863f923
\ No newline at end of file