Rev 670 | Rev 700 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 670 | Rev 680 | ||
|---|---|---|---|
| Line 26... | Line 26... | ||
| 26 | #include <enc28j60.h> |
26 | #include <enc28j60.h> |
| 27 | #include <timeout.h> |
27 | #include <timeout.h> |
| 28 | #include <avr_compat.h> |
28 | #include <avr_compat.h> |
| 29 | #include <net.h> |
29 | #include <net.h> |
| 30 | 30 | ||
| 31 | // please modify the following two lines. mac and ip have to be unique |
- | |
| 32 | // in your local area network. You can not have the same numbers in |
- | |
| 33 | // two devices: |
- | |
| 34 | static uint8_t mymac[6] = { |
31 | static uint8_t mymac[6] = {ENC28J60_MAC1,ENC28J60_MAC2,ENC28J60_MAC3,ENC28J60_MAC4,ENC28J60_MAC5,ENC28J60_MAC6}; |
| 35 | //static uint8_t myip[4] = {192,168,0,50}; |
32 | //static uint8_t myip[4] = {192,168,0,50}; |
| 36 | static uint8_t myip[4] = { |
33 | static uint8_t myip[4] = {ENC28J60_IP1,ENC28J60_IP2,ENC28J60_IP3,ENC28J60_IP4}; |
| 37 | static uint16_t rmDumperPrt =1200; // remote port for dumping data |
34 | static uint16_t rmDumperPrt =1200; // remote port for dumping data |
| 38 | static uint16_t rmCan2SerPrt =1100; // remote port for Can2Serial-data |
35 | static uint16_t rmCan2SerPrt =1100; // remote port for Can2Serial-data |
| 39 | //static uint16_t locDumperPrt =1200; // listen port |
36 | //static uint16_t locDumperPrt =1200; // listen port |
| 40 | static uint16_t locCan2SerPrt =1100; // listen port for Can2Serial-data |
37 | static uint16_t locCan2SerPrt =1100; // listen port for Can2Serial-data |
| 41 | static uint8_t gotdumpserver = 0; |
38 | static uint8_t gotdumpserver = 0; |
| 42 | static uint8_t gotcan2serserver = 0; |
39 | static uint8_t gotcan2serserver = 0; |
| 43 | 40 | ||
| 44 | // how did I get the mac addr? Translate the first 3 numbers into ascii is: TUX |
- | |
| 45 | 41 | ||
| 46 | static uint8_t remotemac[6]; |
42 | static uint8_t remotemac[6]; |
| 47 | static uint8_t remoteip[4]; |
43 | static uint8_t remoteip[4]; |
| 48 | 44 | ||
| 49 | static uint8_t prgremotemac[6]; |
45 | static uint8_t prgremotemac[6]; |