Loading...
Searching...
No Matches
lpd8808_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Hauke Petersen <devel@haukepetersen.de>
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
19#ifndef LPD8808_PARAMS_H
20#define LPD8808_PARAMS_H
21
22#include "board.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef LPD8808_PARAM_LED_CNT
33#define LPD8808_PARAM_LED_CNT (64) /* most have 64 per meter... */
34#endif
35#ifndef LPD8808_PARAM_PIN_CLK
36#define LPD8808_PARAM_PIN_CLK (GPIO_PIN(0, 0))
37#endif
38#ifndef LPD8808_PARAM_PIN_DAT
39#define LPD8808_PARAM_PIN_DAT (GPIO_PIN(0, 1))
40#endif
41
42#ifndef LPD8808_PARAMS
43#define LPD8808_PARAMS { .led_cnt = LPD8808_PARAM_LED_CNT, \
44 .pin_clk = LPD8808_PARAM_PIN_CLK, \
45 .pin_dat = LPD8808_PARAM_PIN_DAT }
46#endif
53{
54 LPD8808_PARAMS
55};
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* LPD8808_PARAMS_H */
static const lpd8808_params_t lpd8808_params[]
LPD8808 parameter allocation.
Parameters needed for configuration.
Definition lpd8808.h:43