19 #ifndef DFPLAYER_PARAMS_H
20 #define DFPLAYER_PARAMS_H
34 #ifndef DFPLAYER_PARAM_UART
35 #define DFPLAYER_PARAM_UART (UART_DEV(0))
38 #ifndef DFPLAYER_PARAM_BUSY_PIN
39 #define DFPLAYER_PARAM_BUSY_PIN (GPIO_UNDEF)
42 #ifndef DFPLAYER_PARAM_VOLUME
43 #define DFPLAYER_PARAM_VOLUME (15)
46 #ifndef DFPLAYER_PARAMS
50 #define DFPLAYER_PARAMS {\
51 .uart = DFPLAYER_PARAM_UART, \
52 .busy_pin = DFPLAYER_PARAM_BUSY_PIN, \
53 .volume = DFPLAYER_PARAM_VOLUME, \
69 #define DFPLAYER_NUMOF ARRAY_SIZE(dfplayer_params)
static const dfplayer_params_t dfplayer_params[]
DFPlayer Mini configuration.
#define DFPLAYER_PARAMS
Default initialization parameters of the DFPlayer Mini driver.
Types used in the DFPlayer Mini Device Driver.
Common macros and compiler attributes/pragmas configuration.
Initialization parameters of a DFPlayer Mini device descriptor.