Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
cfg_usbdev_default.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2016 Kees Bakker, SODAQ
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
#include <stdint.h>
19
20
#include "cpu.h"
21
#include "periph_cpu.h"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
static
const
sam0_common_usb_config_t
sam_usbdev_config[] = {
32
{
33
.
dm
=
GPIO_PIN
(
PA
, 24),
34
.dp =
GPIO_PIN
(
PA
, 25),
35
.d_mux =
GPIO_MUX_G
,
36
.device = &USB->DEVICE,
37
.gclk_src =
SAM0_GCLK_MAIN
,
38
}
39
};
42
#ifdef __cplusplus
43
}
44
#endif
45
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition:
periph_cpu.h:45
PA
@ PA
port A
Definition:
periph_cpu_common.h:98
GPIO_MUX_G
@ GPIO_MUX_G
select peripheral function G
Definition:
periph_cpu_common.h:249
SAM0_GCLK_MAIN
#define SAM0_GCLK_MAIN
120 MHz main clock
Definition:
periph_cpu.h:73
sam0_common_usb_config_t
USB peripheral parameters.
Definition:
periph_cpu_common.h:1017
sam0_common_usb_config_t::dm
gpio_t dm
D- line gpio
Definition:
periph_cpu_common.h:1018
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1