Skip to content

Commit

Permalink
Merge pull request #20 from ladyada/master
Browse files Browse the repository at this point in the history
crickit & itsybitsy m4
  • Loading branch information
dhalbert authored Apr 22, 2018
2 parents f966246 + 3178c06 commit db34342
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/crickit/board.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CHIP_FAMILY = samd21
CHIP_VARIANT = SAMD21G18A
19 changes: 19 additions & 0 deletions boards/crickit/board_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef BOARD_CONFIG_H
#define BOARD_CONFIG_H

#define VENDOR_NAME "Adafruit Industries"
#define PRODUCT_NAME "crickit"
#define VOLUME_LABEL "CRICKITBOOT"
#define INDEX_URL "http://adafru.it/"
#define BOARD_ID "SAMD21G18A-crickit-v0"

#define USB_VID 0x239A
#define USB_PID 0x002D

#define LED_PIN PIN_PB22

#define BOARD_NEOPIXEL_PIN PIN_PA27
#define BOARD_NEOPIXEL_COUNT 1


#endif
2 changes: 2 additions & 0 deletions boards/itsybitsy_m4/board.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CHIP_FAMILY = samd51
CHIP_VARIANT = SAMD51G19A
29 changes: 29 additions & 0 deletions boards/itsybitsy_m4/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 "Adafruit Industries"
#define PRODUCT_NAME "ItsyBitsy M4 Express"
#define VOLUME_LABEL "ITSYM4BOOT"
#define INDEX_URL "http://adafru.it/"
#define BOARD_ID "SAMD51G19A-Itsy-v0"

#define USB_VID 0x239A
#define USB_PID 0x002B

#define LED_PIN PIN_PA22

#define BOARD_RGBLED_CLOCK_PIN PIN_PB02
#define BOARD_RGBLED_DATA_PIN PIN_PB03

#define BOOT_USART_MODULE SERCOM3
#define BOOT_USART_MASK APBAMASK
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
#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_PA22C_SERCOM3_PAD0
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW

#endif

0 comments on commit db34342

Please sign in to comment.