summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 6edeb7a1c..7b0d78914 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -26,6 +26,23 @@
#ifndef MICROPY_INCLUDED_PY_MPCONFIG_H
#define MICROPY_INCLUDED_PY_MPCONFIG_H
+// Current version of MicroPython
+#define MICROPY_VERSION_MAJOR (1)
+#define MICROPY_VERSION_MINOR (9)
+#define MICROPY_VERSION_MICRO (4)
+
+// Combined version as a 32-bit number for convenience
+#define MICROPY_VERSION ( \
+ MICROPY_VERSION_MAJOR << 16 \
+ | MICROPY_VERSION_MINOR << 8 \
+ | MICROPY_VERSION_MICRO)
+
+// String version
+#define MICROPY_VERSION_STRING \
+ MP_STRINGIFY(MICROPY_VERSION_MAJOR) "." \
+ MP_STRINGIFY(MICROPY_VERSION_MINOR) "." \
+ MP_STRINGIFY(MICROPY_VERSION_MICRO)
+
// This file contains default configuration settings for MicroPython.
// You can override any of the options below using mpconfigport.h file
// located in a directory of your port.