summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2022-06-21 17:32:48 +0200
committerDamien George <damien@micropython.org>2022-10-06 23:10:49 +1100
commit00dcf0464318764066f81f90992d5bfc40acebf1 (patch)
treec6ec74a78d85b7f505640f5c123d8956025d7fd3
parentd9338aabc5647979f4a0ec3cb0a7e987a2a2249f (diff)
samd/mcu: Add floating point suport for SAMD21 devices.
For consistency it should be there.
-rw-r--r--ports/samd/mcu/samd21/mpconfigmcu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/samd/mcu/samd21/mpconfigmcu.h b/ports/samd/mcu/samd21/mpconfigmcu.h
index ecb125bbd..9329a6eb8 100644
--- a/ports/samd/mcu/samd21/mpconfigmcu.h
+++ b/ports/samd/mcu/samd21/mpconfigmcu.h
@@ -7,7 +7,10 @@
#define MICROPY_EMIT_THUMB (0)
#define MICROPY_EMIT_INLINE_THUMB (0)
-#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE)
+#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
+#define MICROPY_PY_BUILTINS_COMPLEX (0)
+#define MICROPY_PY_MATH (0)
+#define MICROPY_PY_CMATH (0)
#define MICROPY_HW_FLASH_STORAGE_BASE (0x30000)
#define MICROPY_HW_FLASH_STORAGE_BYTES (0xFFFF)