Skip to content

Commit

Permalink
Merge pull request #160 from xorbit/master
Browse files Browse the repository at this point in the history
Add board Silicognition LLC M4-Shim
  • Loading branch information
dhalbert authored Jan 31, 2021
2 parents d42bf4c + 870bebd commit 360feb0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/silicognition-m4-shim/board.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CHIP_FAMILY = samd51
CHIP_VARIANT = SAMD51J19A
29 changes: 29 additions & 0 deletions boards/silicognition-m4-shim/board_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef BOARD_CONFIG_H
#define BOARD_CONFIG_H

#define VENDOR_NAME "Silicognition LLC"
#define PRODUCT_NAME "M4-Shim"
#define VOLUME_LABEL "M4SHIMBOOT"
#define INDEX_URL "https://github.com/xorbit/M4-Shim"
#define BOARD_ID "SAMD51J19A-M4SHIM-v0"

#define USB_VID 0x1209
#define USB_PID 0xF501

#define LED_PIN PIN_PA23

#define BOARD_NEOPIXEL_PIN PIN_PB03
#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

0 comments on commit 360feb0

Please sign in to comment.