From 74c9b3eca3f23ed7ab99f7aa932f3e7f111b2fbf Mon Sep 17 00:00:00 2001 From: BalanceTWK Date: Tue, 27 Nov 2018 11:57:17 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=20?= =?UTF-8?q?=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ioLibrary/Ethernet/wizchip_conf.c | 5 ++++- src/wiz_device.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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;