From 6231d228a1561ef083cb5fcc66ca9e5c206ca64a Mon Sep 17 00:00:00 2001 From: robert-hh Date: Mon, 18 Nov 2024 15:38:45 +0100 Subject: [PATCH] boards/xplained-pro: Provide board files for SAMD21 Xplained Pro. Signed-off-by: robert-hh --- boards/xplained-pro/board.mk | 2 ++ boards/xplained-pro/board_config.h | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 boards/xplained-pro/board.mk create mode 100644 boards/xplained-pro/board_config.h diff --git a/boards/xplained-pro/board.mk b/boards/xplained-pro/board.mk new file mode 100644 index 00000000..a6f17b59 --- /dev/null +++ b/boards/xplained-pro/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd21 +CHIP_VARIANT = SAMD21J18A diff --git a/boards/xplained-pro/board_config.h b/boards/xplained-pro/board_config.h new file mode 100644 index 00000000..6b312ba3 --- /dev/null +++ b/boards/xplained-pro/board_config.h @@ -0,0 +1,18 @@ +#ifndef BOARD_CONFIG_H +#define BOARD_CONFIG_H + +#define __SAMD21J18A__ 1 + +#define VENDOR_NAME "Microchip" +#define PRODUCT_NAME "SAMD21 Xplained Pro" +#define VOLUME_LABEL "SAMD21XPL" + +#define USB_VID 0x04D8 // Microchip +#define USB_PID 0x2402 // Generic HID device + +#define BOARD_ID "SAMD21J18A-Xplained-Pro" + +#define LED_PIN PIN_PB30 + + +#endif