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
28extern "C" {
29#endif
30
35static 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 */
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
@ PA
port A
@ GPIO_MUX_G
select peripheral function G
#define SAM0_GCLK_MAIN
120 MHz main clock
Definition periph_cpu.h:74
USB peripheral parameters.