From 2bf58a716652d9fc92ebeed480b2472e0633378b Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Thu, 6 Jun 2019 17:15:59 +0200 Subject: [PATCH] sensebox: add usbdev feature --- boards/sensebox_samd21/Makefile.features | 1 + boards/sensebox_samd21/include/periph_conf.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/boards/sensebox_samd21/Makefile.features b/boards/sensebox_samd21/Makefile.features index 0d0fd1a992..cfa9fb2443 100644 --- a/boards/sensebox_samd21/Makefile.features +++ b/boards/sensebox_samd21/Makefile.features @@ -5,6 +5,7 @@ FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += periph_usbdev # The board MPU family (used for grouping by the CI system) FEATURES_MCU_GROUP = cortex_m0_2 diff --git a/boards/sensebox_samd21/include/periph_conf.h b/boards/sensebox_samd21/include/periph_conf.h index e1d21a97af..403416a1bd 100644 --- a/boards/sensebox_samd21/include/periph_conf.h +++ b/boards/sensebox_samd21/include/periph_conf.h @@ -241,6 +241,20 @@ static const adc_conf_chan_t adc_channels[] = { #define ADC_NUMOF ADC_0_CHANNELS /** @} */ +/** + * @name USB peripheral configuration + * @{ + */ +static const sam0_common_usb_config_t sam_usbdev_config[] = { + { + .dm = GPIO_PIN(PA, 24), + .dp = GPIO_PIN(PA, 25), + .d_mux = GPIO_MUX_G, + .device = &USB->DEVICE, + } +}; +/** @} */ + #ifdef __cplusplus } #endif