19#ifndef STMPE811_PARAMS_H
20#define STMPE811_PARAMS_H
37#if IS_USED(MODULE_STMPE811_SPI)
39#ifndef STMPE811_PARAM_SPI_DEV
40#define STMPE811_PARAM_SPI_DEV SPI_DEV(0)
42#ifndef STMPE811_PARAM_CLK
43#define STMPE811_PARAM_CLK SPI_CLK_1MHZ
45#ifndef STMPE811_PARAM_CS
46#define STMPE811_PARAM_CS GPIO_PIN(0, 0)
50#ifndef STMPE811_PARAM_I2C_DEV
51#define STMPE811_PARAM_I2C_DEV I2C_DEV(0)
53#ifndef STMPE811_PARAM_ADDR
54#define STMPE811_PARAM_ADDR (STMPE811_I2C_ADDR_DEFAULT)
58#ifndef STMPE811_PARAM_INT_PIN
59#define STMPE811_PARAM_INT_PIN GPIO_PIN(0, 15)
61#ifndef STMPE811_PARAM_XMAX
62#define STMPE811_PARAM_XMAX (320U)
64#ifndef STMPE811_PARAM_YMAX
65#define STMPE811_PARAM_YMAX (240U)
67#ifndef STMPE811_PARAM_XYCONV
68#define STMPE811_PARAM_XYCONV (STMPE811_MIRROR_X | STMPE811_MIRROR_Y | STMPE811_SWAP_XY)
71#ifndef STMPE811_PARAMS
72#if IS_USED(MODULE_STMPE811_SPI)
73#define STMPE811_PARAMS { .spi = STMPE811_PARAM_SPI_DEV, \
74 .clk = STMPE811_PARAM_CLK, \
75 .cs = STMPE811_PARAM_CS, \
76 .int_pin = STMPE811_PARAM_INT_PIN, \
77 .xmax = STMPE811_PARAM_XMAX, \
78 .ymax = STMPE811_PARAM_YMAX, \
79 .xyconv = STMPE811_PARAM_XYCONV, \
82#define STMPE811_PARAMS { .i2c = STMPE811_PARAM_I2C_DEV, \
83 .addr = STMPE811_PARAM_ADDR, \
84 .int_pin = STMPE811_PARAM_INT_PIN, \
85 .xmax = STMPE811_PARAM_XMAX, \
86 .ymax = STMPE811_PARAM_YMAX, \
87 .xyconv = STMPE811_PARAM_XYCONV, \
104#ifndef STMPE811_PARAM_SCREEN_IDS
105#define STMPE811_PARAM_SCREEN_IDS 0
Common macros and compiler attributes/pragmas configuration.
static const uint8_t stmpe811_screen_ids[]
Configure screen identifiers.
#define STMPE811_PARAM_SCREEN_IDS
Default screen identifiers.
static const stmpe811_params_t stmpe811_params[]
Configure STMPE811.
Device initialization parameters.