tests: adapted other tests to GPIO changes

pr/gpio
Hauke Petersen 7 years ago
parent 013eed7fa0
commit 0e4446e261

@ -152,7 +152,7 @@ int main(void)
}
puts("Set INT1 callback");
if (gpio_init_int(TEST_LIS3DH_INT1, GPIO_NOPULL, GPIO_RISING, test_int1, (void*)&int1_count) == 0) {
if (gpio_init_int(TEST_LIS3DH_INT1, GPIO_IN, GPIO_RISING, test_int1, (void*)&int1_count) == 0) {
puts("[OK]");
}
else {

@ -182,7 +182,7 @@ int cmd_init_master(int argc, char **argv)
spi_dev, res);
return 1;
}
res = gpio_init(spi_cs, GPIO_DIR_OUT, GPIO_PULLUP);
res = gpio_init(spi_cs, GPIO_OUT);
if (res < 0){
printf("gpio_init: error initializing GPIO_%ld as CS line (code %i)\n",
(long)spi_cs, res);
@ -210,7 +210,7 @@ int cmd_init_slave(int argc, char **argv)
spi_dev, res);
return 1;
}
res = gpio_init_int(spi_cs, GPIO_NOPULL, GPIO_FALLING, slave_on_cs, 0);
res = gpio_init_int(spi_cs, GPIO_IN, GPIO_FALLING, slave_on_cs, 0);
if (res < 0){
printf("gpio_init_int: error initializing GPIO_%ld as CS line (code %i)\n",
(long)spi_cs, res);

Loading…
Cancel
Save