Loading...
Searching...
No Matches
dsp0401_params.h File Reference

Default configuration for DSP0401. More...

Detailed Description

Default configuration for DSP0401.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file dsp0401_params.h.

#include "board.h"
#include "dsp0401.h"
#include "periph/gpio.h"
#include "periph/pwm.h"
+ Include dependency graph for dsp0401_params.h:

Go to the source code of this file.

Variables

static const dsp0401_params_t dsp0401_params []
 Configure DSP0401.
 

Set default configuration parameters for the DSP0401 (for Nucleo-F411RE)

#define DSP0401_PARAM_SDI_PIN   GPIO_PIN(0, 10) /* D2 */
 
#define DSP0401_PARAM_CLK_PIN   GPIO_PIN(1, 3) /* D3 */
 
#define DSP0401_PARAM_LAT_PIN   GPIO_PIN(1, 5) /* D4 */
 
#define DSP0401_PARAM_PWM_DEV   PWM_DEV(1)
 
#define DSP0401_PARAM_PWM_CHAN   (0U)
 
#define DSP0401_PARAM_BRIGHTNESS   (255U)
 
#define DSP0401_PARAM_MODULE_COUNT   (1U)
 
#define DSP0401_PARAMS
 

Macro Definition Documentation

◆ DSP0401_PARAM_BRIGHTNESS

#define DSP0401_PARAM_BRIGHTNESS   (255U)

Definition at line 51 of file dsp0401_params.h.

◆ DSP0401_PARAM_CLK_PIN

#define DSP0401_PARAM_CLK_PIN   GPIO_PIN(1, 3) /* D3 */

Definition at line 39 of file dsp0401_params.h.

◆ DSP0401_PARAM_LAT_PIN

#define DSP0401_PARAM_LAT_PIN   GPIO_PIN(1, 5) /* D4 */

Definition at line 42 of file dsp0401_params.h.

◆ DSP0401_PARAM_MODULE_COUNT

#define DSP0401_PARAM_MODULE_COUNT   (1U)

Definition at line 54 of file dsp0401_params.h.

◆ DSP0401_PARAM_PWM_CHAN

#define DSP0401_PARAM_PWM_CHAN   (0U)

Definition at line 48 of file dsp0401_params.h.

◆ DSP0401_PARAM_PWM_DEV

#define DSP0401_PARAM_PWM_DEV   PWM_DEV(1)

Definition at line 45 of file dsp0401_params.h.

◆ DSP0401_PARAM_SDI_PIN

#define DSP0401_PARAM_SDI_PIN   GPIO_PIN(0, 10) /* D2 */

Definition at line 36 of file dsp0401_params.h.

◆ DSP0401_PARAMS

#define DSP0401_PARAMS
Value:
{ .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 }

Definition at line 58 of file dsp0401_params.h.

Variable Documentation

◆ dsp0401_params

const dsp0401_params_t dsp0401_params[]
static
Initial value:
=
{
DSP0401_PARAMS,
}

Configure DSP0401.

Definition at line 71 of file dsp0401_params.h.