From d8d063dd00a3cc1b72254ce5c77f1d33b7b6bc5f Mon Sep 17 00:00:00 2001 From: lady ada Date: Sun, 21 Feb 2021 13:46:25 -0500 Subject: [PATCH] woops forgot these --- boards/matrixportal_m4/board.mk | 2 ++ boards/matrixportal_m4/board_config.h | 29 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 boards/matrixportal_m4/board.mk create mode 100644 boards/matrixportal_m4/board_config.h diff --git a/boards/matrixportal_m4/board.mk b/boards/matrixportal_m4/board.mk new file mode 100644 index 00000000..c17f5fba --- /dev/null +++ b/boards/matrixportal_m4/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd51 +CHIP_VARIANT = SAMD51J19A diff --git a/boards/matrixportal_m4/board_config.h b/boards/matrixportal_m4/board_config.h new file mode 100644 index 00000000..2e94ecb9 --- /dev/null +++ b/boards/matrixportal_m4/board_config.h @@ -0,0 +1,29 @@ +#ifndef BOARD_CONFIG_H +#define BOARD_CONFIG_H + +#define VENDOR_NAME "Adafruit Industries" +#define PRODUCT_NAME "Matrix Portal M4" +#define VOLUME_LABEL "MATRIXBOOT" +#define INDEX_URL "http://adafru.it/4745" +#define BOARD_ID "SAMD51J19A-MatrixPortal-v0" + +#define USB_VID 0x239A +#define USB_PID 0x00C9 + +//#define LED_PIN PIN_PA23 + +#define BOARD_NEOPIXEL_PIN PIN_PA23 +#define BOARD_NEOPIXEL_COUNT 1 + +#define BOOT_USART_MODULE SERCOM1 +#define BOOT_USART_MASK APBAMASK +#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM0 +#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0 +#define BOOT_USART_PAD3 PINMUX_UNUSED +#define BOOT_USART_PAD2 PINMUX_UNUSED +#define BOOT_USART_PAD1 PINMUX_PA01D_SERCOM1_PAD1 +#define BOOT_USART_PAD0 PINMUX_PA00D_SERCOM1_PAD0 +#define BOOT_GCLK_ID_CORE SERCOM1_GCLK_ID_CORE +#define BOOT_GCLK_ID_SLOW SERCOM1_GCLK_ID_SLOW + +#endif