Loading...
Searching...
No Matches
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
33extern "C" {
34#endif
35
40static const pwm_conf_t pwm_config[] = {
41 /* Beware: Keep pwm_params.h in sync with the definitions here */
42 { NRF_PWM0, {
43 /* configure LED0 as PWM */
44#ifdef LED0_PIN
45 LED0_PIN,
46#else
48#endif
49 /* configure LED1 as PWM */
50#ifdef LED1_PIN
52#else
54#endif
55 /* configure LED2 as PWM */
56#ifdef LED2_PIN
58#else
60#endif
61 /* configure LED3 as PWM */
62#ifdef LED3_PIN
63 LED3_PIN,
64#else
66#endif
67 } },
68};
69#define PWM_NUMOF ARRAY_SIZE(pwm_config)
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* PERIPH_CONF_COMMON_H */
#define LED1_PIN
TX LED yellow.
Definition board.h:35
#define LED2_PIN
RX LED yellow.
Definition board.h:36
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Common clock configuration for the nRF52 based boards.
PWM device configuration.