Skip to content

Commit a728538

Browse files
authored
Merge pull request #219 from robert-hh/xplained_pro
boards/xplained-pro: Provide board files for SAMD21 Xplained Pro.
2 parents aa52b22 + 6231d22 commit a728538

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

boards/xplained-pro/board.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CHIP_FAMILY = samd21
2+
CHIP_VARIANT = SAMD21J18A

boards/xplained-pro/board_config.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#ifndef BOARD_CONFIG_H
2+
#define BOARD_CONFIG_H
3+
4+
#define __SAMD21J18A__ 1
5+
6+
#define VENDOR_NAME "Microchip"
7+
#define PRODUCT_NAME "SAMD21 Xplained Pro"
8+
#define VOLUME_LABEL "SAMD21XPL"
9+
10+
#define USB_VID 0x04D8 // Microchip
11+
#define USB_PID 0x2402 // Generic HID device
12+
13+
#define BOARD_ID "SAMD21J18A-Xplained-Pro"
14+
15+
#define LED_PIN PIN_PB30
16+
17+
18+
#endif

0 commit comments

Comments
 (0)