We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab76f10 + 546da87 commit 73e1229Copy full SHA for 73e1229
mbed.h
@@ -18,6 +18,23 @@
18
19
#define MBED_LIBRARY_VERSION 123
20
21
+#if MBED_CONF_RTOS_PRESENT
22
+// RTOS present, this is valid only for mbed OS 5
23
+#define MBED_MAJOR_VERSION 5
24
+#define MBED_MINOR_VERSION 2
25
+#define MBED_PATCH_VERSION 1
26
+
27
+#else
28
+// mbed 2
29
+#define MBED_MAJOR_VERSION 2
30
+#define MBED_MINOR_VERSION 0
31
+#define MBED_PATCH_VERSION MBED_LIBRARY_VERSION
32
+#endif
33
34
+#define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch))
35
36
+#define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION)
37
38
#if MBED_CONF_RTOS_PRESENT
39
#include "rtos/rtos.h"
40
#endif
0 commit comments