From dfba52b93950961ee1829df4be3c2bcdc76b3893 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sun, 8 Nov 2020 16:14:02 +0100 Subject: [PATCH] registering callbacks --- cube/User/Src/wizHelper.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cube/User/Src/wizHelper.c b/cube/User/Src/wizHelper.c index bdab2c0..f0afff2 100644 --- a/cube/User/Src/wizHelper.c +++ b/cube/User/Src/wizHelper.c @@ -59,6 +59,12 @@ int wizInit() { wizReset(false); activeDelay(2); + coloredMsg(LOG_RED, "wizI, registering callbacks"); + reg_wizchip_cs_cbfunc(wizchip_cs_select, wizchip_cs_deselect); + reg_wizchip_spi_cbfunc(wizchip_spi_readbyte, wizchip_spi_writebyte); + // reg_wizchip_spiburst_cbfunc(void (*spi_rb)(uint8_t* pBuf, uint16_t len), void (*spi_wb)(uint8_t* pBuf, uint16_t len)); + + coloredMsg(LOG_RED, "wizI, initializing Ethernet module"); int8_t res = wizchip_init(NULL, NULL); coloredMsg(LOG_RED, "wizI, module driver returned %d", res);