From ec3679fd131725859f8f96b84f79306e206f58f2 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Wed, 27 May 2015 17:23:37 +0200 Subject: [PATCH] kinetis: spi_init_slave add missing callback assignment --- cpu/kinetis_common/spi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpu/kinetis_common/spi.c b/cpu/kinetis_common/spi.c index 6d6b1529ba..f16c6d45d6 100644 --- a/cpu/kinetis_common/spi.c +++ b/cpu/kinetis_common/spi.c @@ -832,6 +832,9 @@ int spi_init_slave(spi_t dev, spi_conf_t conf, char(*cb)(char data)) spi_dev->RSER = (uint32_t)0; + /* set callback */ + spi_config[dev].cb = cb; + return 0; }