Example to get the System Information from Mbed OS

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Jul 16 21:15:39 2018 +0100
Parent:
4:fdc081ac0efb
Child:
6:c1efcdd3866b
Commit message:
Print OS version in ld format\

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-sys-info

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jul 16 20:45:42 2018 +0100
+++ b/main.cpp	Mon Jul 16 21:15:39 2018 +0100
@@ -9,7 +9,7 @@
     mbed_stats_sys_t stats;
     mbed_stats_sys_get(&stats);
 
-    printf("Mbed OS Version: 0x%x \n", stats.os_version);
+    printf("Mbed OS Version: %ld \n", stats.os_version);
 
     /* CPUID Register information
     [31:24]Implementer      0x41 = ARM