1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-19 11:33:51 +01:00
RIOT/boards/common/sodaq/include/cfg_usbdev_default.h
2025-07-18 14:23:37 +02:00

47 lines
740 B
C

/*
* SPDX-FileCopyrightText: 2016 Kees Bakker, SODAQ
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup boards_common_sodaq
* @{
*
* @file
* @brief Default usbdev configuration for SODAQ boards
*
* @author Kees Bakker <kees@sodaq.com>
*/
#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
/** @} */