1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #8677 from aabadie/pr/drivers/params/dsp0401

drivers/dsp0401: use new driver params scheme
This commit is contained in:
Martine Lenders 2018-03-07 14:24:13 +01:00 committed by GitHub
commit 2933858067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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