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
22extern "C" {
23#endif
24
29{
30 {
31 .name = "LD 1",
32 .channel = { PWM_DEV(0), 0, SAUL_PWM_INVERTED },
33 }
34};
35
36static const saul_pwm_rgb_params_t saul_pwm_rgb_params[] =
37{
38 {
39 .name = "LD 2",
40 .channels = {
41 { PWM_DEV(0), 1, SAUL_PWM_INVERTED },
42 { PWM_DEV(0), 2, SAUL_PWM_INVERTED },
43 { PWM_DEV(0), 3, SAUL_PWM_INVERTED }
44 }
45 }
46};
47
48#ifdef __cplusplus
49}
50#endif
51
static const saul_pwm_dimmer_params_t saul_pwm_dimmer_params[]
LED configuration.
Definition pwm_params.h:30
#define PWM_DEV(x)
Default PWM access macro.
Definition pwm.h:77
Board specific configuration for the nRF52840-Dongle.
Parameter definitions for mapping peripherals directly to SAUL.
@ SAUL_PWM_INVERTED
Physical values are inverted from average voltage levels (ie.
Definition periph.h:82
PWM channels mapped to dimmer-style registration entries.
Definition periph.h:140
PWM channels mapped to RGB LED registration entries.
Definition periph.h:167