diff options
author | Damien George <damien.p.george@gmail.com> | 2015-12-18 21:07:58 +0000 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-03-02 22:43:10 +0200 |
commit | 6d0629bddcac1fede980ba24a1285ab670bca640 (patch) | |
tree | 84b1ceb152e5003786c7d5ba0ad194b67536cdae /esp8266/mpconfigport.h | |
parent | ecd1272d16ff3500557177d46cc7d46edd7d3094 (diff) | |
download | micropython-6d0629bddcac1fede980ba24a1285ab670bca640.tar.gz micropython-6d0629bddcac1fede980ba24a1285ab670bca640.zip |
esp8266: Enable float support, using 30-bit stuffed floats.
No complex numbers though.
Diffstat (limited to 'esp8266/mpconfigport.h')
-rw-r--r-- | esp8266/mpconfigport.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h index c80f78d45c..53eda128b9 100644 --- a/esp8266/mpconfigport.h +++ b/esp8266/mpconfigport.h @@ -2,6 +2,7 @@ // options to control how Micro Python is built +#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_C) #define MICROPY_ALLOC_PATH_MAX (128) #define MICROPY_EMIT_X64 (0) #define MICROPY_EMIT_THUMB (0) @@ -15,6 +16,7 @@ #define MICROPY_HELPER_LEXER_UNIX (0) #define MICROPY_ENABLE_SOURCE_LINE (1) #define MICROPY_MODULE_WEAK_LINKS (1) +#define MICROPY_PY_BUILTINS_COMPLEX (0) #define MICROPY_PY_BUILTINS_STR_UNICODE (1) #define MICROPY_PY_BUILTINS_BYTEARRAY (1) #define MICROPY_PY_BUILTINS_MEMORYVIEW (1) @@ -35,7 +37,7 @@ #define MICROPY_PY_SYS_STDFILES (1) #define MICROPY_CPYTHON_COMPAT (0) #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) -#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE) +#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT) #define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE) #define MICROPY_MODULE_FROZEN (1) |