Skip to content

Commit

Permalink
Merge pull request #11651 from bergzand/pr/usb/periph_sensebox
Browse files Browse the repository at this point in the history
sensebox: add usbdev feature
  • Loading branch information
leandrolanzieri committed Jun 7, 2019
2 parents f5d4d41 + 2bf58a7 commit a32c22e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/sensebox_samd21/Makefile.features
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions boards/sensebox_samd21/include/periph_conf.h
Expand Up @@ -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
Expand Down

0 comments on commit a32c22e

Please sign in to comment.