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 
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:45
@ PA
port A
@ GPIO_MUX_G
select peripheral function G
#define SAM0_GCLK_MAIN
120 MHz main clock
Definition: periph_cpu.h:73
USB peripheral parameters.