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:
parent
2e066e8693
commit
f48d0e6b69
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user