Skip to content

Commit 530fedf

Browse files
authored
Merge pull request #163 from ladyada/matrixportal
woops forgot these
2 parents 360feb0 + d8d063d commit 530fedf

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

boards/matrixportal_m4/board.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CHIP_FAMILY = samd51
2+
CHIP_VARIANT = SAMD51J19A

boards/matrixportal_m4/board_config.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#ifndef BOARD_CONFIG_H
2+
#define BOARD_CONFIG_H
3+
4+
#define VENDOR_NAME "Adafruit Industries"
5+
#define PRODUCT_NAME "Matrix Portal M4"
6+
#define VOLUME_LABEL "MATRIXBOOT"
7+
#define INDEX_URL "http://adafru.it/4745"
8+
#define BOARD_ID "SAMD51J19A-MatrixPortal-v0"
9+
10+
#define USB_VID 0x239A
11+
#define USB_PID 0x00C9
12+
13+
//#define LED_PIN PIN_PA23
14+
15+
#define BOARD_NEOPIXEL_PIN PIN_PA23
16+
#define BOARD_NEOPIXEL_COUNT 1
17+
18+
#define BOOT_USART_MODULE SERCOM1
19+
#define BOOT_USART_MASK APBAMASK
20+
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM0
21+
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
22+
#define BOOT_USART_PAD3 PINMUX_UNUSED
23+
#define BOOT_USART_PAD2 PINMUX_UNUSED
24+
#define BOOT_USART_PAD1 PINMUX_PA01D_SERCOM1_PAD1
25+
#define BOOT_USART_PAD0 PINMUX_PA00D_SERCOM1_PAD0
26+
#define BOOT_GCLK_ID_CORE SERCOM1_GCLK_ID_CORE
27+
#define BOOT_GCLK_ID_SLOW SERCOM1_GCLK_ID_SLOW
28+
29+
#endif

0 commit comments

Comments
 (0)