From 98e0386636509e7c6b3d472d2b81201691a23a8d Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 14 Nov 2017 15:00:10 -0800 Subject: [PATCH] Add board.mk files for every board. --- boards/circuitplay_m0/board.mk | 2 ++ boards/circuitplay_m0/board_config.h | 1 - boards/feather_m0/board.mk | 2 ++ boards/feather_m0/board_config.h | 2 -- boards/gemma_m0/board.mk | 2 ++ boards/gemma_m0/board_config.h | 2 -- boards/generic/board.mk | 2 ++ boards/metro_m4/board.mk | 4 +--- boards/metro_m4/board_config.h | 6 ++---- boards/mkr1000/board.mk | 2 ++ boards/mkr1000/board_config.h | 2 -- boards/sparkfun-samd21-dev/board.mk | 2 ++ boards/sparkfun-samd21-dev/board_config.h | 2 -- boards/sparkfun-samd21-mini/board.mk | 2 ++ boards/sparkfun-samd21-mini/board_config.h | 2 -- boards/trinket_m0/board.mk | 2 ++ boards/trinket_m0/board_config.h | 1 - boards/zero/board.mk | 2 ++ boards/zero/board_config.h | 2 -- 19 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 boards/circuitplay_m0/board.mk create mode 100644 boards/feather_m0/board.mk create mode 100644 boards/gemma_m0/board.mk create mode 100644 boards/generic/board.mk create mode 100644 boards/mkr1000/board.mk create mode 100644 boards/sparkfun-samd21-dev/board.mk create mode 100644 boards/sparkfun-samd21-mini/board.mk create mode 100644 boards/trinket_m0/board.mk create mode 100644 boards/zero/board.mk diff --git a/boards/circuitplay_m0/board.mk b/boards/circuitplay_m0/board.mk new file mode 100644 index 00000000..0a90fdf6 --- /dev/null +++ b/boards/circuitplay_m0/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21G18A diff --git a/boards/circuitplay_m0/board_config.h b/boards/circuitplay_m0/board_config.h index a844cb06..730cdd1c 100644 --- a/boards/circuitplay_m0/board_config.h +++ b/boards/circuitplay_m0/board_config.h @@ -1,7 +1,6 @@ #ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H -#define __SAMD21G18A__ 1 #define CRYSTALLESS 1 #define VENDOR_NAME "Adafruit Industries" diff --git a/boards/feather_m0/board.mk b/boards/feather_m0/board.mk new file mode 100644 index 00000000..0a90fdf6 --- /dev/null +++ b/boards/feather_m0/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21G18A diff --git a/boards/feather_m0/board_config.h b/boards/feather_m0/board_config.h index a7df4b00..fcef3430 100644 --- a/boards/feather_m0/board_config.h +++ b/boards/feather_m0/board_config.h @@ -1,8 +1,6 @@ #ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H -#define __SAMD21G18A__ 1 - #define VENDOR_NAME "Adafruit Industries" #define PRODUCT_NAME "Feather M0" #define VOLUME_LABEL "FEATHERBOOT" diff --git a/boards/gemma_m0/board.mk b/boards/gemma_m0/board.mk new file mode 100644 index 00000000..26d9e3d8 --- /dev/null +++ b/boards/gemma_m0/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21E18A diff --git a/boards/gemma_m0/board_config.h b/boards/gemma_m0/board_config.h index 7aaccb8c..548b6966 100644 --- a/boards/gemma_m0/board_config.h +++ b/boards/gemma_m0/board_config.h @@ -1,8 +1,6 @@ #ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H -#define __SAMD21E18A__ 1 -//#define __SAMD21G18A__ 1 #define CRYSTALLESS 1 #define VENDOR_NAME "Adafruit Industries" diff --git a/boards/generic/board.mk b/boards/generic/board.mk new file mode 100644 index 00000000..0a90fdf6 --- /dev/null +++ b/boards/generic/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21G18A diff --git a/boards/metro_m4/board.mk b/boards/metro_m4/board.mk index a3c446f1..c17f5fba 100644 --- a/boards/metro_m4/board.mk +++ b/boards/metro_m4/board.mk @@ -1,4 +1,2 @@ CHIP_FAMILY = samd51 -# We target the smallest flash/ram variants of the SAMD51 so we apply to all of -# them. -CHIP_VARIANT = SAMD51J18A +CHIP_VARIANT = SAMD51J19A diff --git a/boards/metro_m4/board_config.h b/boards/metro_m4/board_config.h index 559225e0..4d7a90ee 100644 --- a/boards/metro_m4/board_config.h +++ b/boards/metro_m4/board_config.h @@ -1,16 +1,14 @@ #ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H -#define __SAMD21J19A__ 1 - #define VENDOR_NAME "Adafruit Industries" #define PRODUCT_NAME "Metro M4" #define VOLUME_LABEL "METROM4BOOT" #define INDEX_URL "http://adafru.it/3505" -#define BOARD_ID "SAMD21G19A-Metro-v0" +#define BOARD_ID "SAMD51J19A-Metro-v0" #define USB_VID 0x239A -#define USB_PID 0x0013 +#define USB_PID 0x0021 #define LED_PIN PIN_PA21 #define LED_TX_PIN PIN_PA27 diff --git a/boards/mkr1000/board.mk b/boards/mkr1000/board.mk new file mode 100644 index 00000000..0a90fdf6 --- /dev/null +++ b/boards/mkr1000/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21G18A diff --git a/boards/mkr1000/board_config.h b/boards/mkr1000/board_config.h index f9cd29f1..a78ed589 100644 --- a/boards/mkr1000/board_config.h +++ b/boards/mkr1000/board_config.h @@ -1,8 +1,6 @@ #ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H -#define __SAMD21G18A__ 1 - #define VENDOR_NAME "Arduino LLC" #define PRODUCT_NAME "Arduino MKR1000" #define VOLUME_LABEL "MKR1000" diff --git a/boards/sparkfun-samd21-dev/board.mk b/boards/sparkfun-samd21-dev/board.mk new file mode 100644 index 00000000..0a90fdf6 --- /dev/null +++ b/boards/sparkfun-samd21-dev/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21G18A diff --git a/boards/sparkfun-samd21-dev/board_config.h b/boards/sparkfun-samd21-dev/board_config.h index b02d9b92..5c5cb428 100644 --- a/boards/sparkfun-samd21-dev/board_config.h +++ b/boards/sparkfun-samd21-dev/board_config.h @@ -1,8 +1,6 @@ #ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H -#define __SAMD21G18A__ 1 - #define VENDOR_NAME "Sparkfun" #define PRODUCT_NAME "SAMD21 Dev Breakout" #define VOLUME_LABEL "SPARKFUN" diff --git a/boards/sparkfun-samd21-mini/board.mk b/boards/sparkfun-samd21-mini/board.mk new file mode 100644 index 00000000..0a90fdf6 --- /dev/null +++ b/boards/sparkfun-samd21-mini/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21G18A diff --git a/boards/sparkfun-samd21-mini/board_config.h b/boards/sparkfun-samd21-mini/board_config.h index bde8a2bd..beacecb8 100644 --- a/boards/sparkfun-samd21-mini/board_config.h +++ b/boards/sparkfun-samd21-mini/board_config.h @@ -1,8 +1,6 @@ #ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H -#define __SAMD21G18A__ 1 - #define VENDOR_NAME "Sparkfun" #define PRODUCT_NAME "SAMD21 Mini Breakout" #define VOLUME_LABEL "SPARKFUN" diff --git a/boards/trinket_m0/board.mk b/boards/trinket_m0/board.mk new file mode 100644 index 00000000..26d9e3d8 --- /dev/null +++ b/boards/trinket_m0/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21E18A diff --git a/boards/trinket_m0/board_config.h b/boards/trinket_m0/board_config.h index ea1001da..952bebf2 100644 --- a/boards/trinket_m0/board_config.h +++ b/boards/trinket_m0/board_config.h @@ -1,7 +1,6 @@ #ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H -#define __SAMD21E18A__ 1 #define CRYSTALLESS 1 #define VENDOR_NAME "Adafruit Industries" diff --git a/boards/zero/board.mk b/boards/zero/board.mk new file mode 100644 index 00000000..0a90fdf6 --- /dev/null +++ b/boards/zero/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21G18A diff --git a/boards/zero/board_config.h b/boards/zero/board_config.h index 5a775095..fd5818c9 100644 --- a/boards/zero/board_config.h +++ b/boards/zero/board_config.h @@ -1,8 +1,6 @@ #ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H -#define __SAMD21G18A__ 1 - #define VENDOR_NAME "Arduino LLC" #define PRODUCT_NAME "Arduino Zero" #define VOLUME_LABEL "ARDUINO-M0"