summaryrefslogtreecommitdiff
path: root/hid/pico/src/ph_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'hid/pico/src/ph_spi.c')
-rw-r--r--hid/pico/src/ph_spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hid/pico/src/ph_spi.c b/hid/pico/src/ph_spi.c
index ef74bd7e..0a016f80 100644
--- a/hid/pico/src/ph_spi.c
+++ b/hid/pico/src/ph_spi.c
@@ -51,8 +51,9 @@ static void (*_data_cb)(const u8 *) = NULL;
static void _xfer_isr(void);
-void ph_spi_init(void (*data_cb)(const u8 *)) {
+void ph_spi_init(void (*data_cb)(const u8 *), void (*timeout_cb)(void)) {
_data_cb = data_cb;
+ (void)timeout_cb;
spi_init(_BUS, _FREQ);
spi_set_slave(_BUS, true);