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
* SPDX-FileCopyrightText: 2016-2018 Freie Universität Berlin
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
19
20
#include "periph_cpu.h"
21
#include "
cfg_clock_32_1.h
"
22
#include "cfg_i2c_default.h"
23
#include "cfg_rtt_default.h"
24
#include "cfg_timer_default.h"
25
26
#include "board.h"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
36
static
const
pwm_conf_t
pwm_config[] = {
37
/* Beware: Keep pwm_params.h in sync with the definitions here */
38
{ NRF_PWM0, {
39
/* configure LED0 as PWM */
40
#ifdef LED0_PIN
41
LED0_PIN,
42
#else
43
GPIO_UNDEF
,
44
#endif
45
/* configure LED1 as PWM */
46
#ifdef LED1_PIN
47
LED1_PIN,
48
#else
49
GPIO_UNDEF
,
50
#endif
51
/* configure LED2 as PWM */
52
#ifdef LED2_PIN
53
LED2_PIN
,
54
#else
55
GPIO_UNDEF
,
56
#endif
57
/* configure LED3 as PWM */
58
#ifdef LED3_PIN
59
LED3_PIN,
60
#else
61
GPIO_UNDEF
,
62
#endif
63
} },
64
};
65
#define PWM_NUMOF ARRAY_SIZE(pwm_config)
67
68
#ifdef __cplusplus
69
}
70
#endif
71
LED2_PIN
#define LED2_PIN
RX LED yellow.
Definition
board.h:32
GPIO_UNDEF
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition
periph_cpu_common.h:50
cfg_clock_32_1.h
Common clock configuration for the nRF52 based boards.
pwm_conf_t
PWM device configuration.
Definition
periph_cpu_common.h:319
Generated on Mon Sep 15 2025 13:46:10 by
1.13.2