Loading...
Searching...
No Matches
pwm_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Marian Buschsieweke
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
9#pragma once
10
20
21#include "board.h"
22#include "saul/periph.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28static const saul_pwm_rgb_params_t saul_pwm_rgb_params[] =
29{
30 {
31 .name = "LED",
32 .channels = {
33 { PWM_DEV(0), 3, SAUL_PWM_INVERTED },
34 { PWM_DEV(0), 2, SAUL_PWM_INVERTED },
35 { PWM_DEV(0), 4, SAUL_PWM_INVERTED }
36 }
37 }
38};
39
40#define SAUL_PWM_NO_DIMMER
41
42#ifdef __cplusplus
43}
44#endif
45
#define PWM_DEV(x)
Default PWM access macro.
Definition pwm.h:77
Parameter definitions for mapping peripherals directly to SAUL.
@ SAUL_PWM_INVERTED
Physical values are inverted from average voltage levels (ie.
Definition periph.h:82
Support for the Serpente board.
PWM channels mapped to RGB LED registration entries.
Definition periph.h:167