1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sensebox: add usbdev feature

This commit is contained in:
Koen Zandberg 2019-06-06 17:15:59 +02:00
parent e1f6b08d7a
commit 2bf58a7166
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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