Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
33
extern
"C"
{
34
#endif
35
40
static
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
47
GPIO_UNDEF
,
48
#endif
49
/* configure LED1 as PWM */
50
#ifdef LED1_PIN
51
LED1_PIN
,
52
#else
53
GPIO_UNDEF
,
54
#endif
55
/* configure LED2 as PWM */
56
#ifdef LED2_PIN
57
LED2_PIN
,
58
#else
59
GPIO_UNDEF
,
60
#endif
61
/* configure LED3 as PWM */
62
#ifdef LED3_PIN
63
LED3_PIN,
64
#else
65
GPIO_UNDEF
,
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 */
LED1_PIN
#define LED1_PIN
TX LED yellow.
Definition
board.h:35
LED2_PIN
#define LED2_PIN
RX LED yellow.
Definition
board.h:36
GPIO_UNDEF
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition
periph_cpu_common.h:54
cfg_clock_32_1.h
Common clock configuration for the nRF52 based boards.
pwm_conf_t
PWM device configuration.
Definition
periph_cpu_common.h:323
Generated on Fri Nov 15 2024 22:46:35 by
1.9.8