periph_conf_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2018 Freie Universität Berlin
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 
21 #ifndef PERIPH_CONF_COMMON_H
22 #define PERIPH_CONF_COMMON_H
23 
24 #include "periph_cpu.h"
25 #include "cfg_clock_32_1.h"
26 #include "cfg_i2c_default.h"
27 #include "cfg_rtt_default.h"
28 #include "cfg_timer_default.h"
29 
30 #include "board.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
40 static const pwm_conf_t pwm_config[] = {
41  { NRF_PWM0, {
42  /* configure LED0 as PWM */
43 #ifdef LED0_PIN
44  LED0_PIN,
45 #else
46  GPIO_UNDEF,
47 #endif
48  /* configure LED1 as PWM */
49 #ifdef LED1_PIN
50  LED1_PIN,
51 #else
52  GPIO_UNDEF,
53 #endif
54  /* configure LED2 as PWM */
55 #ifdef LED2_PIN
56  LED2_PIN,
57 #else
58  GPIO_UNDEF,
59 #endif
60  /* configure LED3 as PWM */
61 #ifdef LED3_PIN
62  LED3_PIN,
63 #else
64  GPIO_UNDEF,
65 #endif
66  } },
67 };
68 #define PWM_NUMOF ARRAY_SIZE(pwm_config)
69 
74 #define NRF5X_ENABLE_DCDC
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* PERIPH_CONF_COMMON_H */
81 
cfg_clock_32_1.h
Common clock configuration for the nRF52 based boards.
pwm_conf_t
PWM device configuration.
Definition: periph_cpu_common.h:153
GPIO_UNDEF
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition: periph_cpu_common.h:52