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: 2018 Inria
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
19
#include "periph_cpu.h"
20
#include "
cfg_clock_32_1.h
"
21
#include "cfg_i2c_default.h"
22
#include "cfg_rtt_default.h"
23
#include "cfg_timer_default.h"
24
25
#include "
board.h
"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
35
static
const
spi_conf_t
spi_config[] = {
36
{
37
.dev = NRF_SPIM0,
38
.sclk =
GPIO_PIN
(1, 15),
39
.mosi =
GPIO_PIN
(1, 13),
40
.miso =
GPIO_PIN
(1, 14),
41
}
42
};
43
44
#define SPI_NUMOF ARRAY_SIZE(spi_config)
46
55
56
static
const
pwm_conf_t
pwm_config[] = {
57
{ NRF_PWM0, { LED0_PIN, LED1_PIN,
LED2_PIN
,
GPIO_UNDEF
} }
58
};
59
#define PWM_NUMOF ARRAY_SIZE(pwm_config)
60
62
63
#ifdef __cplusplus
64
}
65
#endif
66
LED2_PIN
#define LED2_PIN
RX LED yellow.
Definition
board.h:32
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition
periph_cpu.h:42
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.
board.h
Common board specific configuration for the Particle Mesh.
pwm_conf_t
PWM device configuration.
Definition
periph_cpu_common.h:319
spi_conf_t
SPI device configuration.
Definition
periph_cpu.h:333
Generated on Mon Sep 15 2025 13:46:10 by
1.13.2