1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/dsp0401: use new driver params scheme

This commit is contained in:
Alexandre Abadie 2018-02-28 16:36:27 +01:00
parent 2e066e8693
commit f48d0e6b69

View File

@ -54,15 +54,15 @@ extern "C" {
#define DSP0401_PARAM_MODULE_COUNT (1U)
#endif
#define DSP0401_PARAMS_DEFAULT { \
.sdi = DSP0401_PARAM_SDI_PIN, \
.clk = DSP0401_PARAM_CLK_PIN, \
.lat = DSP0401_PARAM_LAT_PIN, \
.pwm = DSP0401_PARAM_PWM_DEV, \
.pwm_channel = DSP0401_PARAM_PWM_CHAN, \
.brightness = DSP0401_PARAM_BRIGHTNESS, \
.module_count = DSP0401_PARAM_MODULE_COUNT }
#ifndef DSP0401_PARAMS
#define DSP0401_PARAMS { .sdi = DSP0401_PARAM_SDI_PIN, \
.clk = DSP0401_PARAM_CLK_PIN, \
.lat = DSP0401_PARAM_LAT_PIN, \
.pwm = DSP0401_PARAM_PWM_DEV, \
.pwm_channel = DSP0401_PARAM_PWM_CHAN, \
.brightness = DSP0401_PARAM_BRIGHTNESS, \
.module_count = DSP0401_PARAM_MODULE_COUNT }
#endif
/**@}*/
/**
@ -70,7 +70,7 @@ extern "C" {
*/
static const dsp0401_params_t dsp0401_params[] =
{
DSP0401_PARAMS_DEFAULT,
DSP0401_PARAMS,
};
#ifdef __cplusplus