From 9dafb384cf192d513add23b475e3ada518d40039 Mon Sep 17 00:00:00 2001 From: Mike Causer Date: Fri, 18 Dec 2020 10:44:35 +1100 Subject: [PATCH] Add support for the Seeed Wio Terminal --- boards/wio_terminal/board.mk | 2 ++ boards/wio_terminal/board_config.h | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 boards/wio_terminal/board.mk create mode 100644 boards/wio_terminal/board_config.h diff --git a/boards/wio_terminal/board.mk b/boards/wio_terminal/board.mk new file mode 100644 index 00000000..a67f5cf3 --- /dev/null +++ b/boards/wio_terminal/board.mk @@ -0,0 +1,2 @@ +CHIP_FAMILY = samd51 +CHIP_VARIANT = SAMD51P19A diff --git a/boards/wio_terminal/board_config.h b/boards/wio_terminal/board_config.h new file mode 100644 index 00000000..2f4aaba7 --- /dev/null +++ b/boards/wio_terminal/board_config.h @@ -0,0 +1,26 @@ +#ifndef BOARD_CONFIG_H +#define BOARD_CONFIG_H + +#define VENDOR_NAME "Seeed Studio" +#define PRODUCT_NAME "Wio Terminal" +#define VOLUME_LABEL "Arduino" +#define INDEX_URL "https://www.seeedstudio.com" +#define BOARD_ID "SAMD51P19A-WioTerminal-v0" + +#define USB_VID 0x2886 +#define USB_PID 0x002D + +#define LED_PIN PIN_PA15 + +#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