Added RAW sockets.
Fork of WIZnetInterface by
Revision 32:3d4ff7ac16dc, committed 2018-03-21
- Comitter:
- Dollyparton
- Date:
- Wed Mar 21 16:33:27 2018 +0000
- Parent:
- 31:e49acd942048
- Child:
- 33:f6c870bd206a
- Commit message:
- V0.9
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 Dec 20 14:32:58 2017 +0000
+++ b/arch/int/W7500x_toe.cpp Wed Mar 21 16:33:27 2018 +0000
@@ -147,7 +147,7 @@
int WIZnet_Chip::get_DHAR0(int socket)
{
//sreg<uint32_t>(socket, Sn_RCR, 0x0000000);
- reg_wr<uint32_t>(Sn_RCR, 0x00000008);
+ //reg_wr<uint32_t>(Sn_RCR, 0x00000008);
return( sreg<uint32_t>(socket, Sn_DHAR0));
}
@@ -325,7 +325,7 @@
int WIZnet_Chip::sendRaw(int socket, const char * str, int len)
-{
+{
if (socket < 0) {
return -1;
}
@@ -337,6 +337,7 @@
*(volatile uint8_t *)(sn_tx_base + ((ptr+i)&0xFFFF)) = str[i];
sreg<uint16_t>(socket, Sn_TX_WR, ptr + len);
+
scmd(socket, SEND_MAC);
uint8_t tmp_Sn_IR;
