The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: mbed.h
- Revision:
- 170:e95d10626187
- Parent:
- 169:a7c7b631e539
- Child:
- 171:3a7713b1edbc
--- a/mbed.h Fri Jun 22 15:38:59 2018 +0100 +++ b/mbed.h Thu Sep 06 13:39:34 2018 +0100 @@ -16,23 +16,8 @@ #ifndef MBED_H #define MBED_H -#define MBED_LIBRARY_VERSION 162 - -#if MBED_CONF_RTOS_PRESENT -// RTOS present, this is valid only for mbed OS 5 -#define MBED_MAJOR_VERSION 5 -#define MBED_MINOR_VERSION 9 -#define MBED_PATCH_VERSION 1 +#include "platform/mbed_version.h" -#else -// mbed 2 -#define MBED_MAJOR_VERSION 2 -#define MBED_MINOR_VERSION 0 -#define MBED_PATCH_VERSION MBED_LIBRARY_VERSION -#endif - -#define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch)) -#define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION) #if MBED_CONF_RTOS_PRESENT #include "rtos/rtos.h" #endif