Browse Source

samd/mcu: Enable the math module on SAMD51.

pull/9534/head
robert-hh 2 years ago
committed by Damien George
parent
commit
387025f5d1
  1. 3
      ports/samd/mcu/samd51/mpconfigmcu.h
  2. 29
      ports/samd/mcu/samd51/mpconfigmcu.mk

3
ports/samd/mcu/samd51/mpconfigmcu.h

@ -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)

29
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 \
)

Loading…
Cancel
Save