PPPoE application with W5500
Dependencies: W5500Interface mbed pppoe
- How to connect PPPoE with WIZ550 ioShield and mbed platform (Korean version)
- How to connect ioShield to mbed platform(ST nucleo) of ST Microelectronics via SPI (Korean version)
- Example PPPoE server(RB750) setting (Korean version)
http://hjjeon0608.wordpress.com/2014/10/28/rb750pppoe-server-setting%ED%95%98%EA%B8%B0/
- W5500(PPPoE client) setting (Korean version)
http://hjjeon0608.wordpress.com/2014/10/29/temp/
- PPPoE library
http://developer.mbed.org/teams/EthernetInterfaceW5500-makers/code/pppoe/
Diff: pppoe/PPPoE.cpp
- Revision:
- 3:39ed2b6d91b0
- Parent:
- 1:8ef7820bf777
diff -r d081c17abd1b -r 39ed2b6d91b0 pppoe/PPPoE.cpp --- a/pppoe/PPPoE.cpp Thu Oct 16 01:32:50 2014 +0000 +++ b/pppoe/PPPoE.cpp Thu Oct 16 06:36:45 2014 +0000 @@ -1322,12 +1322,12 @@ dummyPort = 0; mFlag = 0x80; //MAC filter enable in MACRAW - + switch(eth->getSn_SR(sock_num)) { - case SOCK_CLOSED: + case WIZnet_Chip::SOCK_CLOSED: eth->close(sock_num); // Close the SOCKET - Socket_macraw(sock_num, dummyPort, mFlag); // Open the SOCKET with MACRAW mode + eth->Socket_macraw(sock_num, dummyPort, mFlag); // Open the SOCKET with MACRAW mode #ifdef __DEF_PPP_DBG1__ printf("No.%d socket is opened with MACRAW and flag is 0x%2x\r\n", sock_num, mFlag); #endif