Toyomasa Watarai
/
armcc_info
Describes predefine macros for mbed online compiler (armcc)
Diff: main.cpp
- Revision:
- 8:09f55ce7afee
- Parent:
- 7:31420b1e1298
- Child:
- 9:cf8652c08e46
--- a/main.cpp Mon May 08 13:08:13 2017 +0000 +++ b/main.cpp Wed Jun 13 09:00:02 2018 +0000 @@ -20,7 +20,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - #include "mbed.h" +#include "mbed.h" #define xstr(s) str(s) #define str(s) #s @@ -44,6 +44,11 @@ pc.printf("mbed username: %s\n", xstr(MBED_USERNAME)); #endif pc.printf("mbed library version: %d\n", MBED_LIBRARY_VERSION); + +#ifdef MBED_CONF_RTOS_PRESENT + pc.printf("Mbed OS %d.%d.%d\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION); +#endif + #ifdef __CC_ARM #ifdef __MICROLIB pc.printf("Built with ARM compiler and micro library (uARM)\n");