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
9#pragma once
10
20
21#include "board.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef LPD8808_PARAM_LED_CNT
32#define LPD8808_PARAM_LED_CNT (64) /* most have 64 per meter... */
33#endif
34#ifndef LPD8808_PARAM_PIN_CLK
35#define LPD8808_PARAM_PIN_CLK (GPIO_PIN(0, 0))
36#endif
37#ifndef LPD8808_PARAM_PIN_DAT
38#define LPD8808_PARAM_PIN_DAT (GPIO_PIN(0, 1))
39#endif
40
41#ifndef LPD8808_PARAMS
42#define LPD8808_PARAMS { .led_cnt = LPD8808_PARAM_LED_CNT, \
43 .pin_clk = LPD8808_PARAM_PIN_CLK, \
44 .pin_dat = LPD8808_PARAM_PIN_DAT }
45#endif
47
52{
53 LPD8808_PARAMS
54};
55
56#ifdef __cplusplus
57}
58#endif
59
static const lpd8808_params_t lpd8808_params[]
LPD8808 parameter allocation.
Parameters needed for configuration.
Definition lpd8808.h:42