registering callbacks
This commit is contained in:
parent
ba1bcee18c
commit
dfba52b939
@ -59,6 +59,12 @@ int wizInit() {
|
|||||||
wizReset(false);
|
wizReset(false);
|
||||||
activeDelay(2);
|
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");
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user