changes in wizHelper
This commit is contained in:
@ -62,20 +62,20 @@ int wizInit() {
|
|||||||
coloredMsg(LOG_RED, "wizI, registering callbacks");
|
coloredMsg(LOG_RED, "wizI, registering callbacks");
|
||||||
reg_wizchip_cs_cbfunc(wiz_cs_select, wiz_cs_deselect);
|
reg_wizchip_cs_cbfunc(wiz_cs_select, wiz_cs_deselect);
|
||||||
coloredMsg(LOG_GREEN, "wizI, cs funcs registed");
|
coloredMsg(LOG_GREEN, "wizI, cs funcs registed");
|
||||||
// reg_wizchip_spi_cbfunc(wiz_spi_readbyte, wiz_spi_writebyte);
|
reg_wizchip_spi_cbfunc(wiz_spi_readbyte, wiz_spi_writebyte);
|
||||||
// coloredMsg(LOG_GREEN, wizI, spi funcs registed");
|
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));
|
// 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");
|
coloredMsg(LOG_RED, "wizI, initializing Ethernet module");
|
||||||
// int8_t res = wizchip_init(NULL, NULL);
|
int8_t res = wizchip_init(NULL, NULL);
|
||||||
// coloredMsg(LOG_RED, "wizI, module driver returned %d", res);
|
coloredMsg(LOG_RED, "wizI, module driver returned %d", res);
|
||||||
|
|
||||||
// wizchip_setnetinfo(&wizNetInfo);
|
wizchip_setnetinfo(&wizNetInfo);
|
||||||
// coloredMsg(LOG_RED, "wizI, netinfo set to Ethernet module");
|
coloredMsg(LOG_RED, "wizI, netinfo set to Ethernet module");
|
||||||
|
|
||||||
// schAdd(wizDHCPHandler, NULL, 0, 1000);
|
schAdd(wizDHCPHandler, NULL, 0, 1000);
|
||||||
// coloredMsg(LOG_RED, "wizI, DHCP handler scheduled");
|
coloredMsg(LOG_RED, "wizI, DHCP handler scheduled");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user