summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/samd/boards/MINISAM_M4/mpconfigboard.h7
-rw-r--r--ports/samd/boards/MINISAM_M4/mpconfigboard.mk5
2 files changed, 12 insertions, 0 deletions
diff --git a/ports/samd/boards/MINISAM_M4/mpconfigboard.h b/ports/samd/boards/MINISAM_M4/mpconfigboard.h
new file mode 100644
index 000000000..0847a45bf
--- /dev/null
+++ b/ports/samd/boards/MINISAM_M4/mpconfigboard.h
@@ -0,0 +1,7 @@
+#define MICROPY_HW_BOARD_NAME "Mini SAM M4"
+#define MICROPY_HW_MCU_NAME "SAMD51G19A"
+
+#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
+#define MICROPY_PY_BUILTINS_COMPLEX (0)
+#define MICROPY_PY_MATH (0)
+#define MICROPY_PY_CMATH (0)
diff --git a/ports/samd/boards/MINISAM_M4/mpconfigboard.mk b/ports/samd/boards/MINISAM_M4/mpconfigboard.mk
new file mode 100644
index 000000000..54ed3273d
--- /dev/null
+++ b/ports/samd/boards/MINISAM_M4/mpconfigboard.mk
@@ -0,0 +1,5 @@
+# https://www.minifigboards.com/mini-sam-m4/mini-sam-m4-hardware/
+MCU_SERIES = SAMD51
+CMSIS_MCU = SAMD51G19A
+LD_FILES = boards/samd51g19a.ld sections.ld
+TEXT0 = 0x4000