forked from microsoft/uf2-samdx1
-
Notifications
You must be signed in to change notification settings - Fork 4
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 microsoft#88 from ladyada/master
add m4 hallowing & m4sk + fixes UART defs on pygamer/pybadge
- Loading branch information
Showing
7 changed files
with
99 additions
and
35 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
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,2 @@ | ||
CHIP_FAMILY = samd51 | ||
CHIP_VARIANT = SAMD51J19A |
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,31 @@ | ||
#ifndef BOARD_CONFIG_H | ||
#define BOARD_CONFIG_H | ||
|
||
#define CRYSTALLESS 1 | ||
|
||
#define VENDOR_NAME "Adafruit Industries" | ||
#define PRODUCT_NAME "HalloWing M4" | ||
#define VOLUME_LABEL "HALLOM4BOOT" | ||
#define INDEX_URL "http://adafru.it/" | ||
#define BOARD_ID "SAMD51J19A-HalloM4-v0" | ||
|
||
#define USB_VID 0x239A | ||
#define USB_PID 0x0049 | ||
|
||
#define LED_PIN PIN_PA23 | ||
|
||
#define BOARD_NEOPIXEL_PIN PIN_PB16 | ||
#define BOARD_NEOPIXEL_COUNT 4 | ||
|
||
#define BOOT_USART_MODULE SERCOM4 | ||
#define BOOT_USART_MASK APBDMASK | ||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM4 | ||
#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_PB13C_SERCOM4_PAD1 | ||
#define BOOT_USART_PAD0 PINMUX_PB12C_SERCOM4_PAD0 | ||
#define BOOT_GCLK_ID_CORE SERCOM4_GCLK_ID_CORE | ||
#define BOOT_GCLK_ID_SLOW SERCOM4_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CHIP_FAMILY = samd51 | ||
CHIP_VARIANT = SAMD51G19A |
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,29 @@ | ||
#ifndef BOARD_CONFIG_H | ||
#define BOARD_CONFIG_H | ||
|
||
#define CRYSTALLESS 1 | ||
|
||
#define VENDOR_NAME "Adafruit Industries" | ||
#define PRODUCT_NAME "Hallowing Mask M4" | ||
#define VOLUME_LABEL "MASKM4BOOT" | ||
#define INDEX_URL "http://adafru.it/" | ||
#define BOARD_ID "SAMD51G19A-Mask-v0" | ||
|
||
#define USB_VID 0x239A | ||
#define USB_PID 0x0047 | ||
|
||
#define LED_PIN PIN_PA27 | ||
|
||
// There isnt a clear UART but we can make one on the D2/D3 ports | ||
#define BOOT_USART_MODULE SERCOM4 | ||
#define BOOT_USART_MASK APBDMASK | ||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM4 | ||
#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_PB09D_SERCOM4_PAD1 | ||
#define BOOT_USART_PAD0 PINMUX_PB08D_SERCOM4_PAD0 | ||
#define BOOT_GCLK_ID_CORE SERCOM4_GCLK_ID_CORE | ||
#define BOOT_GCLK_ID_SLOW SERCOM4_GCLK_ID_SLOW | ||
|
||
#endif |