-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
906 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CHIP_FAMILY = samd51 | ||
# We target the smallest flash/ram variants of the SAMD51 so we apply to all of | ||
# them. | ||
CHIP_VARIANT = SAMD51J18A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
#ifndef BOARD_CONFIG_H | ||
#define BOARD_CONFIG_H | ||
|
||
#define __SAMD21G18A__ 1 | ||
#define __SAMD21J19A__ 1 | ||
|
||
#define VENDOR_NAME "Adafruit Industries" | ||
#define PRODUCT_NAME "Metro M0" | ||
#define VOLUME_LABEL "METROBOOT" | ||
#define PRODUCT_NAME "Metro M4" | ||
#define VOLUME_LABEL "METROM4BOOT" | ||
#define INDEX_URL "http://adafru.it/3505" | ||
#define BOARD_ID "SAMD21G18A-Metro-v0" | ||
#define BOARD_ID "SAMD21G19A-Metro-v0" | ||
|
||
#define USB_VID 0x239A | ||
#define USB_PID 0x0013 | ||
|
||
#define LED_PIN PIN_PA17 | ||
#define LED_PIN PIN_PA21 | ||
#define LED_TX_PIN PIN_PA27 | ||
#define LED_RX_PIN PIN_PA31 | ||
#define LED_RX_PIN PIN_PB06 | ||
|
||
#define BOARD_NEOPIXEL_PIN PIN_PA30 | ||
#define BOARD_NEOPIXEL_COUNT 1 | ||
//#define BOARD_NEOPIXEL_PIN PIN_PB17 | ||
//#define BOARD_NEOPIXEL_COUNT 1 | ||
|
||
#define BOOT_USART_MODULE SERCOM0 | ||
#define BOOT_USART_MASK APBAMASK | ||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM0 | ||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD3_TX_PAD2 | ||
#define BOOT_USART_PAD3 PINMUX_UNUSED | ||
#define BOOT_USART_PAD2 PINMUX_UNUSED | ||
#define BOOT_USART_PAD1 PINMUX_PA10C_SERCOM0_PAD2 | ||
#define BOOT_USART_PAD0 PINMUX_PA11C_SERCOM0_PAD3 | ||
#define BOOT_GCLK_ID_CORE SERCOM0_GCLK_ID_CORE | ||
#define BOOT_GCLK_ID_SLOW SERCOM0_GCLK_ID_SLOW | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.