Skip to content

Commit 387025f

Browse files
robert-hhdpgeorge
authored andcommitted
samd/mcu: Enable the math module on SAMD51.
1 parent 00dcf04 commit 387025f

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

ports/samd/mcu/samd51/mpconfigmcu.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
1111
#define MICROPY_PY_BUILTINS_COMPLEX (0)
12-
#define MICROPY_PY_MATH (0)
12+
#define MICROPY_PY_MATH (1)
13+
#define MP_NEED_LOG2 (1)
1314
#define MICROPY_PY_CMATH (0)
1415

1516
#define MICROPY_PY_UOS_URANDOM (1)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
11
SRC_S += shared/runtime/gchelper_m3.s
2+
3+
SRC_MOD += $(addprefix lib/libm/,\
4+
acoshf.c \
5+
asinfacosf.c \
6+
asinhf.c \
7+
atan2f.c \
8+
atanf.c \
9+
atanhf.c \
10+
ef_rem_pio2.c \
11+
erf_lgamma.c \
12+
fmodf.c \
13+
kf_cos.c \
14+
kf_rem_pio2.c \
15+
kf_sin.c \
16+
kf_tan.c \
17+
log1pf.c \
18+
math.c \
19+
nearbyintf.c \
20+
roundf.c \
21+
sf_cos.c \
22+
sf_erf.c \
23+
sf_frexp.c \
24+
sf_ldexp.c \
25+
sf_modf.c \
26+
sf_sin.c \
27+
sf_tan.c \
28+
wf_lgamma.c \
29+
wf_tgamma.c \
30+
)

0 commit comments

Comments
 (0)