1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/common/particle-mesh/include/pwm_params.h
chrysn d8ff6cd7b1 boards/c/particle-mesh: Use LEDs in SAUL as PWM rather than GPIO
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2020-10-17 11:20:30 +02:00

49 lines
927 B
C

/*
* Copyright (C) 2020 Christian Amsüss <chrysn@fsfe.org>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup boards_common_particle-mesh
* @{
*
* @file
* @brief Configuration of SAUL mapped PWM channels
*
* @author Christian Amsüss <chrysn@fsfe.org>
*/
#ifndef PWM_PARAMS_H
#define PWM_PARAMS_H
#include "board.h"
#include "saul/periph.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SAUL_PWM_NO_DIMMER
static const saul_pwm_rgb_params_t saul_pwm_rgb_params[] =
{
{
.name = "LED",
.channels = {
{ PWM_DEV(0), 0, SAUL_PWM_INVERTED },
{ PWM_DEV(0), 1, SAUL_PWM_INVERTED },
{ PWM_DEV(0), 2, SAUL_PWM_INVERTED }
}
}
};
#ifdef __cplusplus
}
#endif
#endif /* PWM_PARAMS_H */
/** @} */