Loading...
Searching...
No Matches
dsp0401_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "dsp0401.h"
20#include "periph/gpio.h"
21#include "periph/pwm.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef DSP0401_PARAM_SDI_PIN
32#define DSP0401_PARAM_SDI_PIN GPIO_PIN(0, 10) /* D2 */
33#endif
34#ifndef DSP0401_PARAM_CLK_PIN
35#define DSP0401_PARAM_CLK_PIN GPIO_PIN(1, 3) /* D3 */
36#endif
37#ifndef DSP0401_PARAM_LAT_PIN
38#define DSP0401_PARAM_LAT_PIN GPIO_PIN(1, 5) /* D4 */
39#endif
40#ifndef DSP0401_PARAM_PWM_DEV
41#define DSP0401_PARAM_PWM_DEV PWM_DEV(1)
42#endif
43#ifndef DSP0401_PARAM_PWM_CHAN
44#define DSP0401_PARAM_PWM_CHAN (0U)
45#endif
46#ifndef DSP0401_PARAM_BRIGHTNESS
47#define DSP0401_PARAM_BRIGHTNESS (255U)
48#endif
49#ifndef DSP0401_PARAM_MODULE_COUNT
50#define DSP0401_PARAM_MODULE_COUNT (1U)
51#endif
52
53#ifndef DSP0401_PARAMS
54#define DSP0401_PARAMS { .sdi = DSP0401_PARAM_SDI_PIN, \
55 .clk = DSP0401_PARAM_CLK_PIN, \
56 .lat = DSP0401_PARAM_LAT_PIN, \
57 .pwm = DSP0401_PARAM_PWM_DEV, \
58 .pwm_channel = DSP0401_PARAM_PWM_CHAN, \
59 .brightness = DSP0401_PARAM_BRIGHTNESS, \
60 .module_count = DSP0401_PARAM_MODULE_COUNT }
61#endif
63
68{
69 DSP0401_PARAMS,
70};
71
72#ifdef __cplusplus
73}
74#endif
75
Device driver interface for the DSP0401 alphanumeric display.
static const dsp0401_params_t dsp0401_params[]
Configure DSP0401.
Low-level GPIO peripheral driver interface definitions.
Low-level PWM peripheral driver interface definitions.
Device initialization parameters.
Definition dsp0401.h:46