1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/drivers/stmpe811
Gunar Schorcht b921bf460b drivers/stmpe811: init INT pin only if callback is defined
If the INT pin is initialized if the callback function parameter `cb` is `NULL`, the driver crashes the first time an interrupt is triggered. Therefore, the INT pin must be initialized only if also the callback function parameter `cb` is not `NULL`.

Even if the interrupt pin is not initialized here because the callback function parameter `cb` is NULL, the device interrupts are configured here so that they will work when the interrupt pin is initialized later, as is the case when the Touch Device API is used, for example. Since the interrupt state is cleared on each read, this is not a problem even if the interrupt pin is not used at all.
2023-08-13 17:11:54 +02:00
..
include doc: fix unbalaced grouping 2022-09-14 15:05:25 +02:00
Kconfig drivers/stmpe811: don't use a choice to select the bus 2022-01-22 15:14:26 +01:00
Makefile drivers: make use of new driver_with_{disp,touch}_dev.mk 2022-01-06 12:07:07 +01:00
Makefile.dep drivers/stmpe811: migrate to ztimer 2021-12-08 15:15:30 +01:00
Makefile.include drivers/stmpe811: add spi mode 2021-12-03 17:12:03 +01:00
stmpe811_touch_dev.c drivers/stmpe811: improve interrupt callback management 2022-01-07 18:30:34 +01:00
stmpe811.c drivers/stmpe811: init INT pin only if callback is defined 2023-08-13 17:11:54 +02:00