Added RAW sockets.
Fork of WIZnetInterface by
Diff: arch/int/W7500x_toe.cpp
- Revision:
- 32:3d4ff7ac16dc
- Parent:
- 31:e49acd942048
- Child:
- 33:f6c870bd206a
--- 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;