1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers
bors[bot] d1edbd94d6
Merge #19881 #19892
19881: drivers/stmpe811: fix initialization if callback function parameter is NULL r=benpicco a=gschorcht

### Contribution description

This PR fixes the `stmpe811` driver initialization if the callback function parameter `cb` is `NULL. This might be the case for example if the application uses the touch device in polling mode.

If the interrupt 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`.

To be able to test the polling mode, this PR also includes a change of the `tests/drivers/stmpe811` application which introduces the environment variables `STMPE811_POLLING_MODE` `STMPE811_POLLING_PERIOD` and in the makefile.

### Testing procedure

1. Use a `stm32f429i-disc1` board and test it in polling mode:
   ```
   STMPE811_POLLING_MODE=1 BOARD=stm32f429i-disc1 make -C tests/drivers/stmpe811 flash term
   ```
   It should work as expected.
   ```
   main(): This is RIOT! (Version: 2023.10-devel-119-g26e7a-drivers/stmpe811_fix_cb_null)
   STMPE811 test application
   +------------Initializing------------+
   Initialization successful
   Pressed!
   X: 113, Y:135
   X: 113, Y:135
   X: 113, Y:136
   Released!
   ```

2. Checkout master branch and cerry-pick commit 691a5e6308426ddc685e5a2c297238529211c258. The test application `tests/drivers/stmpe811` will crash once a touch event occur:
   ```
   main(): This is RIOT! (Version: 2023.10-devel-117-g91441)
   STMPE811 test application
   +------------Initializing------------+
   Initialization successful
   Stack pointer corrupted, reset to top of stack
   FSR/FAR:
    CFSR: 0x00020000
    HFSR: 0x40000000
    DFSR: 0x00000008
    AFSR: 0x00000000
   Misc
   EXC_RET: 0xfffffff1
   *** RIOT kernel panic:
   HARD FAULT HANDLER
   ```

### Issues/PRs references

19892: pkg/tinydtls: allow to set buffer size from application again r=benpicco a=leandrolanzieri

### Contribution description

Currently the buffer size on tinydtls is set in its Makefile whenever `gcoap` module is present. This limits the ability of the user to override the value. This adds a pre-check of the `CFLAGS` to see if it was set before.

### Testing procedure

Try setting `CFLAGS += -DDTLS_MAX_BUF=<some_value>` on `examples/gcoap_dtls`, you should be able to override the default value without errors.


### Issues/PRs references
Reported in #19838


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2023-08-23 22:43:56 +00:00
..
ad7746 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
adcxx1c examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ads101x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
adt7310 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
adxl345 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
aip31068 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
apa102 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
apds99xx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
apds99xx_full examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
at examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
at24cxxx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
at24mac examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
at25xxx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
at30tse75x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
at86rf2xx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
at86rf2xx_aes examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
at86rf215 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ata8520e examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
atwinc15x0 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
bh1750 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
bh1900nux examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
bme680 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
bmp180 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
bmx055 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
bmx280 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
bq2429x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
candev examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
cc110x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
cc2420 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
cc2538_rf tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
ccs811 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ccs811_full examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
cst816s examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
dac_dds tests/driver_dac_dds: make use of imath 2023-06-05 19:09:02 +02:00
dcf77 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
dfplayer examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
dht examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
disp_dev tests/drivers/disp_dev: fix off by one in display area 2023-07-22 18:37:02 +02:00
dose examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ds18 tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
ds75lx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ds1307 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ds3231 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ds3234 tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
dsp0401 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
dynamixel examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
edbg_eui tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
enc28j60 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
encx24j600 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
epd_bw_spi examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
epd_bw_spi_disp_dev examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
esp_eth tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
ethos examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
feetech examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ft5x06 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
fxos8700 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
gp2y10xx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
grove_ledbar examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
hd44780 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
hdc1000 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
hih6130 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
hm330x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
hmc5883l examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
hsc examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
hts221 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ili9341 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ina2xx tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
ina3221 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
io1_xplained examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ir_nec examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
isl29020 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
isl29125 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
itg320x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
jc42 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
kw2xrf tests/drivers: fix broken symlinks and paths 2023-05-12 16:36:40 +02:00
l3g4200d examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
l3gxxxx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
lc709203f examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
lis2dh12 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
lis3dh examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
lis3mdl examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
lm75 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
lpd8808 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
lpsxxx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
lsm6dsl examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
lsm303dlhc examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ltc4150 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mag3110 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
matrix_keypad examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mcp47xx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mfrc522 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mhz19 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mma8x5x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mma7660 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
motor_driver tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
mpl3115a2 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mpu9x50 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mq3 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mrf24j40 tests/drivers: fix broken symlinks and paths 2023-05-12 16:36:40 +02:00
mtd_at24cxxx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mtd_at25xxx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mtd_flashpage tests: update tests for MSP430 CPU 2023-06-19 14:49:55 +02:00
mtd_mapper examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
mtd_raw examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
my9221 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
nrf24l01p_lowlevel examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
nrf24l01p_ng examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
nrf802154 tests/drivers/nrf802154: build for nrf52840dk by default 2023-05-12 16:36:40 +02:00
nrfmin tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
nvram_spi examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
opt3001 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
pca9633 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
pca9685 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
pcd8544 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
pcf857x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ph_oem examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
pir examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
pn532 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
pulse_counter examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
qmc5883l examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
rn2xx3 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sam0_eth tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
saul examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
saul_drivers tests: move remaining driver related applications to tests/drivers 2023-05-10 11:58:32 +02:00
scd30 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sdcard_spi examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sdmmc tests: add test app for periph_sdmmc 2023-08-08 10:03:57 +02:00
sdp3x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sds011 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
seesaw_soil examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
servo examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sgp30 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sht1x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sht2x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sht3x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
shtcx tests/drivers/shtcx: don't repeat last string on error 2023-08-02 15:58:05 +02:00
si70xx examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
si114x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
si1133 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sm_pwm_01c examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
soft_spi examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
soft_uart examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sps30 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
srf02 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
srf04 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
srf08 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
st7735 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
stm32_eth tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
stmpe811 tests/drivers/stmpe811: introduce STMPE811_POLLING_MODE 2023-08-13 17:11:54 +02:00
sx126x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sx127x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
sx1280 treewide: replace occurrences of tests/driver_ with new path 2023-05-06 15:38:21 +02:00
tcs37727 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
tmp00x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
touch_dev examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
tps6274x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
tsl2561 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
tsl4531x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
vcnl40x0 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
veml6070 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
vl6180x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
w5100 examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
ws281x examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
xbee examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
Makefile.drivers_common tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00