common/arduino-mkr: add usbdev feature
This commit is contained in:
parent
e1f6b08d7a
commit
3a4dff9ddc
@ -7,6 +7,7 @@ FEATURES_PROVIDED += periph_rtt
|
|||||||
FEATURES_PROVIDED += periph_spi
|
FEATURES_PROVIDED += periph_spi
|
||||||
FEATURES_PROVIDED += periph_timer
|
FEATURES_PROVIDED += periph_timer
|
||||||
FEATURES_PROVIDED += periph_uart
|
FEATURES_PROVIDED += periph_uart
|
||||||
|
FEATURES_PROVIDED += periph_usbdev
|
||||||
|
|
||||||
# Various other features (if any)
|
# Various other features (if any)
|
||||||
FEATURES_PROVIDED += arduino
|
FEATURES_PROVIDED += arduino
|
||||||
|
|||||||
@ -251,6 +251,20 @@ static const i2c_conf_t i2c_config[] = {
|
|||||||
#define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0]))
|
#define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0]))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name RTC configuration
|
* @name RTC configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user