diff options
author | Damien George <damien.p.george@gmail.com> | 2015-12-18 21:43:01 +0000 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-03-02 22:43:10 +0200 |
commit | 6f4357c28e7e53aa329b91b5c7b3814357a0cd22 (patch) | |
tree | a717f51b54589281cfaf8e51b529e880f730be7f /esp8266 | |
parent | 6d0629bddcac1fede980ba24a1285ab670bca640 (diff) | |
download | micropython-6f4357c28e7e53aa329b91b5c7b3814357a0cd22.tar.gz micropython-6f4357c28e7e53aa329b91b5c7b3814357a0cd22.zip |
esp8266: Enable math module.
Diffstat (limited to 'esp8266')
-rw-r--r-- | esp8266/Makefile | 14 | ||||
-rw-r--r-- | esp8266/mpconfigport.h | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile index f6681eefa9..62f1d2a20d 100644 --- a/esp8266/Makefile +++ b/esp8266/Makefile @@ -76,6 +76,20 @@ LIB_SRC_C = $(addprefix lib/,\ libm/fmodf.c \ libm/roundf.c \ libm/ef_sqrt.c \ + libm/kf_rem_pio2.c \ + libm/kf_sin.c \ + libm/kf_cos.c \ + libm/kf_tan.c \ + libm/ef_rem_pio2.c \ + libm/sf_sin.c \ + libm/sf_cos.c \ + libm/sf_tan.c \ + libm/sf_frexp.c \ + libm/sf_modf.c \ + libm/sf_ldexp.c \ + libm/asinfacosf.c \ + libm/atanf.c \ + libm/atan2f.c \ mp-readline/readline.c \ netutils/netutils.c \ timeutils/timeutils.c \ diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h index 53eda128b9..c24c2cc113 100644 --- a/esp8266/mpconfigport.h +++ b/esp8266/mpconfigport.h @@ -28,7 +28,7 @@ #define MICROPY_PY_GC (1) #define MICROPY_PY_ARRAY (1) #define MICROPY_PY_COLLECTIONS (1) -#define MICROPY_PY_MATH (0) +#define MICROPY_PY_MATH (1) #define MICROPY_PY_CMATH (0) #define MICROPY_PY_IO (1) #define MICROPY_PY_STRUCT (1) |