1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/ws281x/include/ws281x_backend.h
2020-03-25 17:25:35 +01:00

60 lines
1.1 KiB
C

/*
* Copyright (C) 2019 Marian Buschsieweke
*
* 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 drivers_ws281x
*
* @{
* @file
* @brief Backend configuration for WS2812/SK6812 RGB LEDs
*
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/
#ifndef WS281X_BACKEND_H
#define WS281X_BACKEND_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Properties of the ATmega backend.
* @{
*/
#ifdef MODULE_WS281X_ATMEGA
#define WS281X_HAVE_INIT (1)
#endif
/** @} */
/**
* @name Properties of the ESP32 backend.
* @{
*/
#ifdef MODULE_WS281X_ESP32
#define WS281X_HAVE_INIT (1)
#endif
/** @} */
/**
* @name Properties of the VT100 terminal backend.
* @{
*/
#ifdef MODULE_WS281X_VT100
#define WS281X_HAVE_PREPARE_TRANSMISSION (1)
#define WS281X_HAVE_END_TRANSMISSION (1)
#endif
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* WS281X_BACKEND_H */
/** @} */