summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-12-18 21:43:01 +0000
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-02 22:43:10 +0200
commit6f4357c28e7e53aa329b91b5c7b3814357a0cd22 (patch)
treea717f51b54589281cfaf8e51b529e880f730be7f /esp8266
parent6d0629bddcac1fede980ba24a1285ab670bca640 (diff)
downloadmicropython-6f4357c28e7e53aa329b91b5c7b3814357a0cd22.tar.gz
micropython-6f4357c28e7e53aa329b91b5c7b3814357a0cd22.zip
esp8266: Enable math module.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/Makefile14
-rw-r--r--esp8266/mpconfigport.h2
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)