Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
stmpe811_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 Inria
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 STMPE811_PARAMS_H
20
#define STMPE811_PARAMS_H
21
22
#include "board.h"
23
#include "
stmpe811.h
"
24
#include "
stmpe811_constants.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
36
#ifndef STMPE811_PARAM_I2C_DEV
37
#define STMPE811_PARAM_I2C_DEV I2C_DEV(0)
38
#endif
39
#ifndef STMPE811_PARAM_ADDR
40
#define STMPE811_PARAM_ADDR (STMPE811_I2C_ADDR_DEFAULT)
41
#endif
42
#ifndef STMPE811_PARAM_INT_PIN
43
#define STMPE811_PARAM_INT_PIN GPIO_PIN(0, 15)
44
#endif
45
#ifndef STMPE811_PARAM_XMAX
46
#define STMPE811_PARAM_XMAX (240U)
47
#endif
48
#ifndef STMPE811_PARAM_YMAX
49
#define STMPE811_PARAM_YMAX (320U)
50
#endif
51
52
#ifndef STMPE811_PARAMS
53
#define STMPE811_PARAMS { .i2c = STMPE811_PARAM_I2C_DEV, \
54
.addr = STMPE811_PARAM_ADDR, \
55
.int_pin = STMPE811_PARAM_INT_PIN, \
56
.xmax = STMPE811_PARAM_XMAX, \
57
.ymax = STMPE811_PARAM_YMAX, \
58
}
59
#endif
60
65
static
const
stmpe811_params_t
stmpe811_params
[] =
66
{
67
STMPE811_PARAMS
68
};
69
70
#ifdef __cplusplus
71
}
72
#endif
73
74
#endif
/* STMPE811_PARAMS_H */
75
stmpe811_params_t
Device initialization parameters.
Definition:
stmpe811.h:72
stmpe811_params
static const stmpe811_params_t stmpe811_params[]
Configure STMPE811.
Definition:
stmpe811_params.h:65
stmpe811.h
stmpe811_constants.h
Constants for STMPE811.
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17