Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
cfg_usbdev_default.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2016 Kees Bakker, SODAQ
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef CFG_USBDEV_DEFAULT_H
20
#define CFG_USBDEV_DEFAULT_H
21
22
#include <stdint.h>
23
24
#include "cpu.h"
25
#include "periph_cpu.h"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
35
static
const
sam0_common_usb_config_t
sam_usbdev_config[] = {
36
{
37
.
dm
=
GPIO_PIN
(
PA
, 24),
38
.dp =
GPIO_PIN
(
PA
, 25),
39
.d_mux =
GPIO_MUX_G
,
40
.device = &USB->DEVICE,
41
.gclk_src =
SAM0_GCLK_MAIN
,
42
}
43
};
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* CFG_USBDEV_DEFAULT_H */
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition
periph_cpu.h:46
PA
@ PA
port A
Definition
periph_cpu_common.h:99
GPIO_MUX_G
@ GPIO_MUX_G
select peripheral function G
Definition
periph_cpu_common.h:250
SAM0_GCLK_MAIN
#define SAM0_GCLK_MAIN
120 MHz main clock
Definition
periph_cpu.h:74
sam0_common_usb_config_t
USB peripheral parameters.
Definition
periph_cpu_common.h:1001
sam0_common_usb_config_t::dm
gpio_t dm
D- line gpio
Definition
periph_cpu_common.h:1002
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8