Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
dfplayer_params.h
Go to the documentation of this file.
1
/*
2
* Copyright 2019 Marian Buschsieweke
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef DFPLAYER_PARAMS_H
20
#define DFPLAYER_PARAMS_H
21
22
#include "board.h"
23
#include "
dfplayer_types.h
"
24
#include "
kernel_defines.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
#ifndef DFPLAYER_PARAM_UART
35
#define DFPLAYER_PARAM_UART (UART_DEV(0))
36
#endif
37
38
#ifndef DFPLAYER_PARAM_BUSY_PIN
39
#define DFPLAYER_PARAM_BUSY_PIN (GPIO_UNDEF)
40
#endif
41
42
#ifndef DFPLAYER_PARAM_VOLUME
43
#define DFPLAYER_PARAM_VOLUME (15)
44
#endif
45
46
#ifndef DFPLAYER_PARAMS
47
#define DFPLAYER_PARAMS {\
48
.uart = DFPLAYER_PARAM_UART, \
49
.busy_pin = DFPLAYER_PARAM_BUSY_PIN, \
50
.volume = DFPLAYER_PARAM_VOLUME, \
51
}
52
#endif
53
58
static
const
dfplayer_params_t
dfplayer_params
[] =
59
{
60
DFPLAYER_PARAMS
61
};
62
66
#define DFPLAYER_NUMOF ARRAY_SIZE(dfplayer_params)
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* DFPLAYER_PARAMS_H */
73
kernel_defines.h
Common macros and compiler attributes/pragmas configuration.
dfplayer_params
static const dfplayer_params_t dfplayer_params[]
DFPlayer Mini configuration.
Definition:
dfplayer_params.h:58
dfplayer_types.h
Types used in the DFPlayer Mini Device Driver.
dfplayer_params_t
Initialization parameters of a DFPlayer Mini device descriptor.
Definition:
dfplayer_types.h:136
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17