Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
pwm_params.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2020 Christian Amsüss <chrysn@fsfe.org>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#include "
board.h
"
19
#include "
saul/periph.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#define SAUL_PWM_NO_DIMMER
26
27
static
const
saul_pwm_rgb_params_t
saul_pwm_rgb_params[] =
28
{
29
{
30
.name =
"LED"
,
31
.channels = {
32
{
PWM_DEV
(0), 0,
SAUL_PWM_INVERTED
},
33
{
PWM_DEV
(0), 1,
SAUL_PWM_INVERTED
},
34
{
PWM_DEV
(0), 2,
SAUL_PWM_INVERTED
}
35
}
36
}
37
};
38
39
#ifdef __cplusplus
40
}
41
#endif
42
board.h
Common board specific configuration for the Particle Mesh.
PWM_DEV
#define PWM_DEV(x)
Default PWM access macro.
Definition
pwm.h:77
periph.h
Parameter definitions for mapping peripherals directly to SAUL.
SAUL_PWM_INVERTED
@ SAUL_PWM_INVERTED
Physical values are inverted from average voltage levels (ie.
Definition
periph.h:82
saul_pwm_rgb_params_t
PWM channels mapped to RGB LED registration entries.
Definition
periph.h:167
Generated on Wed Aug 27 2025 20:40:39 by
1.13.2