fixed drive strength

Dependents:   capstone_i2c

Fork of mbed-dev by mbed official

Revision:
151:5eaa88a5bcc7
Parent:
150:02e0a0aed4ec
Child:
152:9a67f0b066fc
diff -r 02e0a0aed4ec -r 5eaa88a5bcc7 mbed.h
--- a/mbed.h	Tue Nov 08 17:45:16 2016 +0000
+++ b/mbed.h	Thu Nov 24 17:03:03 2016 +0000
@@ -16,7 +16,24 @@
 #ifndef MBED_H
 #define MBED_H
 
-#define MBED_LIBRARY_VERSION 129
+#define MBED_LIBRARY_VERSION 130
+
+#if MBED_CONF_RTOS_PRESENT
+// RTOS present, this is valid only for mbed OS 5
+#define MBED_MAJOR_VERSION 5
+#define MBED_MINOR_VERSION 2
+#define MBED_PATCH_VERSION 3
+
+#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"