pwm_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2020 Benjamin Valentin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "board.h"
19 #include "saul/periph.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
28 #define SAUL_PWM_NO_DIMMER
29 
34 {
35  {
36  .name = "RGB",
37  .channels = {
38  { PWM_DEV(0), 0, SAUL_PWM_INVERTED },
39  { PWM_DEV(0), 1, SAUL_PWM_INVERTED },
40  { PWM_DEV(0), 2, SAUL_PWM_INVERTED }
41  }
42  }
43 };
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
#define PWM_DEV(x)
Default PWM access macro.
Definition: pwm.h:77
static const saul_pwm_rgb_params_t saul_pwm_rgb_params[]
The on-board RGB LED.
Definition: pwm_params.h:33
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 RGB LED registration entries.
Definition: periph.h:167
const char * name
Name of the device connected to these channels.
Definition: periph.h:168
Board specific definitions for the Zigduino board.