changes in wizHelper
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user