Added RAW sockets.

Fork of WIZnetInterface by WIZnet

Files at this revision

API Documentation at this revision

Comitter:
Dollyparton
Date:
Fri Mar 23 17:26:29 2018 +0000
Parent:
32:3d4ff7ac16dc
Commit message:
v1.1d

Changed in this revision

arch/int/W7500x_toe.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/arch/int/W7500x_toe.cpp	Wed Mar 21 16:33:27 2018 +0000
+++ b/arch/int/W7500x_toe.cpp	Fri Mar 23 17:26:29 2018 +0000
@@ -208,14 +208,15 @@
 	reg_wr_mac(SHAR, mac);
 	/*
 	 * set RX and TX buffer size */
+	// Geminate Change!
 	//for (int socket = 0; socket < MAX_SOCK_NUM; socket++) {
-	for (int socket = 0; socket < 4; socket++)
+	for (int socket = 0; socket < 2; socket++)
 	{
-	  	sreg<uint8_t>(socket, Sn_RXBUF_SIZE, 2);
-	  	sreg<uint8_t>(socket, Sn_TXBUF_SIZE, 2);
+	  	sreg<uint8_t>(socket, Sn_RXBUF_SIZE, 8);
+	  	sreg<uint8_t>(socket, Sn_TXBUF_SIZE, 8);
 	}
 	
-	for (int socket = 4; socket < MAX_SOCK_NUM; socket++)
+	for (int socket = 2; socket < MAX_SOCK_NUM; socket++)
 	{
 	  	sreg<uint8_t>(socket, Sn_RXBUF_SIZE, 0);
 	  	sreg<uint8_t>(socket, Sn_TXBUF_SIZE, 0);