diff --git a/ioLibrary/Ethernet/wizchip_conf.c b/ioLibrary/Ethernet/wizchip_conf.c index d721649..0e38e63 100644 --- a/ioLibrary/Ethernet/wizchip_conf.c +++ b/ioLibrary/Ethernet/wizchip_conf.c @@ -418,7 +418,10 @@ void wizchip_sw_reset(void) int8_t wizchip_init(uint8_t* txsize, uint8_t* rxsize) { - int8_t i,j; +#if _WIZCHIP_ < W5200 // add condition for w5100 + int8_t j; +#endif + int8_t i; int8_t tmp = 0; wizchip_sw_reset(); if(txsize) diff --git a/src/wiz_device.c b/src/wiz_device.c index 07d5099..a2cdc42 100644 --- a/src/wiz_device.c +++ b/src/wiz_device.c @@ -49,7 +49,7 @@ static void wiz_data_thread_entry(void *parameter) while (1) { - if (rt_mb_recv(wiz_rx_mb, (rt_uint32_t*) &dev, RT_WAITING_FOREVER) == RT_EOK) + if (rt_mb_recv(wiz_rx_mb, (rt_ubase_t*) &dev, RT_WAITING_FOREVER) == RT_EOK) { uint8_t ir, sir, sn_ir; int8_t socket = -1;