pwm_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Christian Amsüss <chrysn@fsfe.org>
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 
21 #include "board.h"
22 #include "saul/periph.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #define SAUL_PWM_NO_DIMMER
29 
31 {
32  {
33  .name = "LED",
34  .channels = {
35  { PWM_DEV(0), 0, SAUL_PWM_INVERTED },
36  { PWM_DEV(0), 1, SAUL_PWM_INVERTED },
37  { PWM_DEV(0), 2, SAUL_PWM_INVERTED }
38  }
39  }
40 };
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
#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:36
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.