7 Commits

Author SHA1 Message Date
cbf5b6e908 Merge pull request #96 from Wiznet/FIxedwiz_clrinterrupt()
Modify wizchip_clrinterrupt() to set Sn_IR for clearing SIR.
2020-03-02 17:21:16 +09:00
a9141a7ade Modify wizchip_clrinterrupt() to set Sn_IR for clearing SIR. 2020-02-27 12:58:29 +09:00
0bad15ab48 Added each of the devices have to has a different XID. 2020-02-18 12:54:51 +09:00
de18368e5d Modify getSn_TXBUF_SIZE(s)*1024 - > getSn_TxMAX(s)
It is not compatable to W5100.
It is only valid on W5500
2020-02-17 16:29:08 +09:00
1fadc591bc Merge pull request #95 from MrDiba/patch-1
Added a break to remove compiler warning.
2020-02-03 17:04:12 +09:00
18aeb30431 Added a break to remove compiler warning.
Compiler warned that there was no break at the end of the case statement. Added the break.
2020-01-27 16:30:24 +01:00
96857e86aa Merge pull request #93 from Wiznet/addApplicationmulticast
add multicast example
2019-12-27 16:10:15 +09:00
4 changed files with 14 additions and 3 deletions

View File

@ -117,6 +117,7 @@ int8_t socket(uint8_t sn, uint8_t protocol, uint16_t port, uint8_t flag)
uint32_t taddr;
getSIPR((uint8_t*)&taddr);
if(taddr == 0) return SOCKERR_SOCKINIT;
break;
}
case Sn_MR_UDP :
case Sn_MR_MACRAW :

View File

@ -521,7 +521,12 @@ void wizchip_clrinterrupt(intr_kind intr)
setIR( ((((uint16_t)ir) << 8) | (((uint16_t)sir) & 0x00FF)) );
#else
setIR(ir);
setSIR(sir);
//M20200227 : For clear
//setSIR(sir);
for(ir=0; ir<8; ir++){
if(sir & (0x01 <<ir) ) setSn_IR(ir, 0xff);
}
#endif
}

View File

@ -946,7 +946,12 @@ void DHCP_init(uint8_t s, uint8_t * buf)
DHCP_SOCKET = s; // SOCK_DHCP
pDHCPMSG = (RIP_MSG*)buf;
DHCP_XID = 0x12345678;
{
DHCP_XID += DHCP_CHADDR[3];
DHCP_XID += DHCP_CHADDR[4];
DHCP_XID += DHCP_CHADDR[5];
DHCP_XID += (DHCP_CHADDR[3] ^ DHCP_CHADDR[4] ^ DHCP_CHADDR[5]);
}
// WIZchip Netinfo Clear
setSIPR(zeroip);
setGAR(zeroip);

View File

@ -169,7 +169,7 @@ void httpServer_run(uint8_t seqnum)
gettime = get_httpServer_timecount();
// Check the TX socket buffer for End of HTTP response sends
while(getSn_TX_FSR(s) != (getSn_TXBUF_SIZE(s)*1024))
while(getSn_TX_FSR(s) != (getSn_TxMAX(s)))
{
if((get_httpServer_timecount() - gettime) > 3)
{