Skip to content

Commit

Permalink
samd/mcu: Enable the math module on SAMD51.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-hh authored and dpgeorge committed Oct 6, 2022
1 parent 00dcf04 commit 387025f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ports/samd/mcu/samd51/mpconfigmcu.h
Expand Up @@ -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)
Expand Down
29 changes: 29 additions & 0 deletions ports/samd/mcu/samd51/mpconfigmcu.mk
@@ -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 \
)

0 comments on commit 387025f

Please sign in to comment.