Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
mhz19_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Koen Zandberg <koen@bergzand.net>
3
* Copyright (C) 2018 Beduino Master Projekt - University of Bremen
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
21
#ifndef MHZ19_PARAMS_H
22
#define MHZ19_PARAMS_H
23
24
#include "board.h"
25
#include "
mhz19.h
"
26
#include "
saul_reg.h
"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
36
#ifdef MODULE_MHZ19_UART
37
#ifndef MHZ19_PARAM_UART_DEV
38
#define MHZ19_PARAM_UART_DEV UART_DEV(1)
39
#endif
40
41
#ifndef MHZ19_PARAMS
42
#define MHZ19_PARAMS { .uart = MHZ19_PARAM_UART_DEV }
43
#endif
44
#endif
/* MODULE_MHZ19_UART */
45
46
#ifdef MODULE_MHZ19_PWM
47
#ifndef MHZ19_PARAM_PIN
48
#define MHZ19_PARAM_PIN (GPIO_PIN(0, 0))
49
#endif
50
51
#ifndef MHZ19_PARAMS
52
#define MHZ19_PARAMS { .pin = MHZ19_PARAM_PIN }
53
#endif
54
#endif
/* MODULE_MHZ19_PWM */
55
56
#ifndef MHZ19_SAUL_INFO
57
#define MHZ19_SAUL_INFO { .name = "mh-z19" }
58
#endif
59
62
static
const
mhz19_params_t
mhz19_params
[] =
63
{
64
MHZ19_PARAMS
65
};
66
74
static
const
saul_reg_info_t
mhz19_saul_info
[] =
75
{
76
MHZ19_SAUL_INFO
77
};
78
79
#ifdef __cplusplus
80
}
81
#endif
82
83
#endif
/* MHZ19_PARAMS_H */
84
mhz19_saul_info
static const saul_reg_info_t mhz19_saul_info[]
Configuration details of SAUL registry entries.
Definition:
mhz19_params.h:74
saul_reg_info_t
Additional data to collect for each entry.
Definition:
saul_reg.h:49
mhz19.h
Interface definition for the MH-Z19 CO2 sensor driver.
saul_reg.h
SAUL registry interface definition.
mhz19_params
static const mhz19_params_t mhz19_params[]
Configure MHZ19.
Definition:
mhz19_params.h:62
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17