Skip to content

ports/samd: Add Adafruit Feather M0 Express, and Mini SAM M4 #4994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ports/samd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build-*/
2 changes: 1 addition & 1 deletion ports/samd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $(error Invalid BOARD specified: $(BOARD_DIR))
endif

include ../../py/mkenv.mk
include $(BOARD_DIR)/board.mk
include $(BOARD_DIR)/mpconfigboard.mk

# Qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h
Expand Down
2 changes: 2 additions & 0 deletions ports/samd/boards/ADAFRUIT_FEATHER_M0_EXPRESS/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define MICROPY_HW_BOARD_NAME "Feather M0 Express"
#define MICROPY_HW_MCU_NAME "SAMD21G18A"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21G18A
LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MCU_SERIES = SAMD51
CMSIS_MCU = SAMD51G19A
LD_FILES = $(BOARD_DIR)/link.ld sections.ld
LD_FILES = boards/samd51g19a.ld sections.ld
TEXT0 = 0x4000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21E18A
LD_FILES = $(BOARD_DIR)/link.ld sections.ld
LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000
7 changes: 7 additions & 0 deletions ports/samd/boards/MINISAM_M4/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -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)
5 changes: 5 additions & 0 deletions ports/samd/boards/MINISAM_M4/mpconfigboard.mk
Original file line number Diff line number Diff line change
@@ -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