forked from microsoft/uf2-samdx1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from ladyada/master
feather m4 adalogger
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CHIP_FAMILY = samd51 | ||
CHIP_VARIANT = SAMD51J20A |
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,30 @@ | ||
#ifndef BOARD_CONFIG_H | ||
#define BOARD_CONFIG_H | ||
|
||
#define VENDOR_NAME "Adafruit Industries" | ||
#define PRODUCT_NAME "Feather M4 Adalogger" | ||
#define VOLUME_LABEL "FEATHERBOOT" | ||
#define INDEX_URL "http://adafru.it/5330" | ||
#define BOARD_ID "SAMD51J20A-FeatherM4-v0" | ||
|
||
#define USB_VID 0x239A | ||
#define USB_PID 0x0115 | ||
|
||
#define LED_PIN PIN_PA23 | ||
|
||
#define BOARD_NEOPIXEL_PIN PIN_PB02 | ||
#define BOARD_NEOPIXEL_POWERPIN PIN_PB01 | ||
#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_PAD0 | ||
#define BOOT_USART_PAD3 PINMUX_PA07D_SERCOM0_PAD3 | ||
#define BOOT_USART_PAD2 PINMUX_UNUSED | ||
#define BOOT_USART_PAD1 PINMUX_UNUSED | ||
#define BOOT_USART_PAD0 PINMUX_PA04D_SERCOM0_PAD0 | ||
#define BOOT_GCLK_ID_CORE SERCOM0_GCLK_ID_CORE | ||
#define BOOT_GCLK_ID_SLOW SERCOM0_GCLK_ID_SLOW | ||
|
||
#endif |