forked from arduino/TFTP-Bootloader
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up support for W5200 and W5500
- Loading branch information
1 parent
65cf743
commit 180be74
Showing
9 changed files
with
147 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef net_h | ||
#define net_h | ||
|
||
#if defined(__WIZ_W5100__) | ||
#include "w5100.h" | ||
#elif defined(__WIZ_W5200__) | ||
#include "w5200.h" | ||
#elif defined(__WIZ_W5500__) | ||
#include "w5500.h" | ||
#else | ||
#error "Unknown PHY. Cannot find the proper network driver." | ||
#endif | ||
|
||
/* Network settings */ | ||
#define IP_ADDR 192,168,1,128 | ||
#define SUB_MASK 255,255,255,0 | ||
#define GW_ADDR 192,168,1,254 | ||
#define MAC_ADDR 0xDE,0xAD,0xBE,0xEF,0xFE,0xED | ||
|
||
void netInit(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.