From 1f1360eff940ef55fc7a25b3809e5da24261603e Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Fri, 15 Aug 2014 13:57:37 +0200 Subject: [PATCH] [SQUASH ME] test: fixed according to updated GPIO interface --- tests/periph_spi/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/periph_spi/main.c b/tests/periph_spi/main.c index 926a35c64b..e876636acb 100644 --- a/tests/periph_spi/main.c +++ b/tests/periph_spi/main.c @@ -130,8 +130,10 @@ void print_bytes(char* title, char* chars, int length) printf("\n\n"); } -void slave_on_cs(void) +void slave_on_cs(void *arg) { + (void)arg; + LD3_ON; spi_transmission_begin(spi_dev, 'F'); state = 0; @@ -197,7 +199,7 @@ void cmd_init_slave(int argc, char **argv) if (res < 0) { printf("spi_init_slave: error initializing SPI_%i device (code: %i)\n", spi_dev, res); } - res = gpio_init_int(spi_cs, GPIO_NOPULL, GPIO_FALLING, slave_on_cs); + res = gpio_init_int(spi_cs, GPIO_NOPULL, GPIO_FALLING, slave_on_cs, 0); if (res < 0){ printf("gpio_init_int: error initializing GPIO_%i as CS line (code %i)\n", spi_cs, res); }