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:
commit
2933858067
@ -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