samd/mcu: Enable the math module on SAMD51.

This commit is contained in:
robert-hh 2022-06-21 20:31:20 +02:00 committed by Damien George
parent 00dcf04643
commit 387025f5d1
2 changed files with 31 additions and 1 deletions

View File

@ -9,7 +9,8 @@
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
#define MICROPY_PY_BUILTINS_COMPLEX (0)
#define MICROPY_PY_MATH (0)
#define MICROPY_PY_MATH (1)
#define MP_NEED_LOG2 (1)
#define MICROPY_PY_CMATH (0)
#define MICROPY_PY_UOS_URANDOM (1)

View File

@ -1 +1,30 @@
SRC_S += shared/runtime/gchelper_m3.s
SRC_MOD += $(addprefix lib/libm/,\
acoshf.c \
asinfacosf.c \
asinhf.c \
atan2f.c \
atanf.c \
atanhf.c \
ef_rem_pio2.c \
erf_lgamma.c \
fmodf.c \
kf_cos.c \
kf_rem_pio2.c \
kf_sin.c \
kf_tan.c \
log1pf.c \
math.c \
nearbyintf.c \
roundf.c \
sf_cos.c \
sf_erf.c \
sf_frexp.c \
sf_ldexp.c \
sf_modf.c \
sf_sin.c \
sf_tan.c \
wf_lgamma.c \
wf_tgamma.c \
)