From c39e6cb5eb3586a8c473ed28c7d90516d2356532 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sun, 8 Nov 2020 16:51:53 +0100 Subject: [PATCH] changes in wizHelper --- cube/User/Src/wizHelper.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cube/User/Src/wizHelper.c b/cube/User/Src/wizHelper.c index ddb2bf6..4890b57 100644 --- a/cube/User/Src/wizHelper.c +++ b/cube/User/Src/wizHelper.c @@ -62,20 +62,20 @@ int wizInit() { coloredMsg(LOG_RED, "wizI, registering callbacks"); reg_wizchip_cs_cbfunc(wiz_cs_select, wiz_cs_deselect); coloredMsg(LOG_GREEN, "wizI, cs funcs registed"); -// reg_wizchip_spi_cbfunc(wiz_spi_readbyte, wiz_spi_writebyte); -// coloredMsg(LOG_GREEN, wizI, spi funcs registed"); + reg_wizchip_spi_cbfunc(wiz_spi_readbyte, wiz_spi_writebyte); + coloredMsg(LOG_GREEN, "wizI, spi funcs registed"); // 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); + int8_t res = wizchip_init(NULL, NULL); + coloredMsg(LOG_RED, "wizI, module driver returned %d", res); -// wizchip_setnetinfo(&wizNetInfo); -// coloredMsg(LOG_RED, "wizI, netinfo set to Ethernet module"); + wizchip_setnetinfo(&wizNetInfo); + coloredMsg(LOG_RED, "wizI, netinfo set to Ethernet module"); -// schAdd(wizDHCPHandler, NULL, 0, 1000); -// coloredMsg(LOG_RED, "wizI, DHCP handler scheduled"); + schAdd(wizDHCPHandler, NULL, 0, 1000); + coloredMsg(LOG_RED, "wizI, DHCP handler scheduled"); return 0; }