1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/common/sodaq/include/cfg_usbdev_default.h
2020-02-04 21:17:00 +01:00

52 lines
941 B
C

/*
* Copyright (C) 2016 Kees Bakker, SODAQ
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup boards_common_sodaq
* @{
*
* @file
* @brief Default usbdev configuration for SODAQ boards
*
* @author Kees Bakker <kees@sodaq.com>
*/
#ifndef CFG_USBDEV_DEFAULT_H
#define CFG_USBDEV_DEFAULT_H
#include <stdint.h>
#include "cpu.h"
#include "periph_cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @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,
.gclk_src = SAM0_GCLK_MAIN,
}
};
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* CFG_USBDEV_DEFAULT_H */
/** @} */