config.h
Aller à la documentation de ce fichier.00001 #ifndef __CONFIG_H__
00002 #define __CONFIG_H__
00003
00004 #include "xparameters.h"
00005
00007 #define SERVER
00008
00010 #define CLIENT
00011
00013 #define LOOPBACK
00014
00016 #define SERVER_CLOSE 0
00017
00019 #define CLIENT_CLOSE 0
00020
00022 #define LOCAL_MAC {0x00, 0x01, 0x02, 0x03, 0x04, 0x05}
00023
00025 #define LOCAL_IP {192, 168, 1, 133}
00026
00028 #define LOCAL_SUBNET {255, 255, 255, 0}
00029
00031 #define LOCAL_GATEWAY {192, 168, 1, 254}
00032
00034 #define LOCAL_PORT 80
00035
00037 #define REMOTE_IP {192, 168, 1, 132}
00038
00040 #define REMOTE_PORT 80
00041
00043 #define POLL_INTERVAL 5
00044
00046 #define EMAC XPAR_ETHERNET_MAC_DEVICE_ID
00047
00049
00050
00052
00053
00054
00055
00056
00057
00058 #ifdef XPAR_XEMAC_NUM_INSTANCES
00059
00060 #define XEmacLiteIf_Config XEmacIf_Config
00061 #define XEmacLiteIf_ConfigTable XEmacIf_ConfigTable
00062 #define xemacliteif_setmac xemacif_setmac
00063 #define xemacliteif_init xemacif_init
00064 #define xemacliteif_input xemacif_input
00065
00066 #endif
00067
00068
00069
00070
00071
00072 #if defined(EMAC) & defined(SLIP)
00073 #error EMAC et SLIP définis en même temps !
00074 #endif
00075
00076 #if defined(EMAC) & defined(LOOP)
00077 #error EMAC et LOOP définis en même temps !
00078 #endif
00079
00080 #if defined(SLIP) & defined(LOOP)
00081 #error SLIP et LOOP définis en même temps !
00082 #endif
00083
00084 #endif //__CONFIG_H__