1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests: adapted other tests to GPIO changes

This commit is contained in:
Hauke Petersen 2016-02-20 17:22:48 +01:00
parent 013eed7fa0
commit 0e4446e261
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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);