20#ifndef CST816S_PARAMS_H
21#define CST816S_PARAMS_H
35#ifndef CST816S_PARAM_I2C_DEV
36#define CST816S_PARAM_I2C_DEV I2C_DEV(0)
39#ifndef CST816S_PARAM_I2C_ADDR
40#define CST816S_PARAM_I2C_ADDR (0x15)
43#ifndef CST816S_PARAM_IRQ
44#define CST816S_PARAM_IRQ GPIO_PIN(0, 28)
47#ifndef CST816S_PARAM_IRQ_FLANK
48#define CST816S_PARAM_IRQ_FLANK GPIO_FALLING
51#ifndef CST816S_PARAM_RESET
52#define CST816S_PARAM_RESET GPIO_PIN(0, 10)
55#define CST816S_PARAMS \
57 .i2c_dev = CST816S_PARAM_I2C_DEV, \
58 .i2c_addr = CST816S_PARAM_I2C_ADDR, \
59 .irq = CST816S_PARAM_IRQ, \
60 .irq_flank = CST816S_PARAM_IRQ_FLANK, \
61 .reset = CST816S_PARAM_RESET, \
76#define CST816S_NUMOF ARRAY_SIZE(cst816s_params)
81#ifndef CST816S_PARAM_SCREEN_IDS
82#define CST816S_PARAM_SCREEN_IDS 0
Device driver interface for the CST816S touch screen.
#define CST816S_PARAM_SCREEN_IDS
Default screen identifiers.
static const cst816s_params_t cst816s_params[]
Configure CST816S.
static const uint8_t cst816s_screen_ids[]
Configure screen identifiers.