hi all… i got a problem with my TCPCONFIG…i am using the RCM4400 rabbit core module…when i try to compile the pingme.c the compiler sendme this messages:
line 5 : WARNING CUSTOM_CONFIG.LIB : Invalid redefinition of macro ‘TCPCONFIG’.
line 124 : ERROR WIFI_MAC_MGMT.LIB : ) is missing/expected.
line 124 : WARNING WIFI_MAC_MGMT.LIB : Insufficient arguments.
line 124 : WARNING WIFI_MAC_MGMT.LIB : Conversion to incompatible pointer type
line 124 : WARNING WIFI_MAC_MGMT.LIB : Wrong type for parameter 3.
line 124 : ERROR WIFI_MAC_MGMT.LIB : Invalid expression.
line 138 : WARNING WIFI_MAC_MGMT.LIB : Conversion to incompatible pointer type
line 139 : WARNING WIFI_MAC_MGMT.LIB : Conversion to incompatible pointer type
line 139 : WARNING WIFI_MAC_MGMT.LIB : Conversion to incompatible pointer type
line 139 : WARNING WIFI_MAC_MGMT.LIB : Conversion to incompatible pointer type
i can’t open the wifi_mac_mgmt.lib…but i think the problem it’s my custom_config.lib, can somebody helpme out?.. my library it’s the next:
/*** BeginHeader */
#define CUSTOM_CONFIG_H
#define TCPCONFIG custom_config
#if TCPCONFIG >= 100
#define _PRIMARY_STATIC_IP "192.168.1.103"
#define _PRIMARY_NETMASK "255.255.255.0"
#define MY_NAMESERVER “192.168.1.1”
#define MY_GATEWAY “192.168.1.1”
#define _WIFI_KEY0 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x23, 0x45, 0x67, 0x89
#define _WIFI_KEY1 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x23, 0x45, 0x67, 0x89
#define _WIFI_KEY2 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x23, 0x45, 0x67, 0x89
#define _WIFI_KEY3 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x23, 0x45, 0x67, 0x89
#define _WIFI_MODE WIFICONF_INFRASTRUCT
#ifndef _WIFI_MODE
#define _WIFI_MODE WIFICONF_INFRASTRUCT
#endif
#define _WIFI_SSID = "rabbit"
#ifndef _WIFI_SSID
#if WIFI_ONBOARD
#warnt “_WIFI_SSID has not been defined. Using a default of "rabbitTest."”
#warns " Perform a function lookup (cntl-H) on TCPCONFIG for more information."
#endif
#define _WIFI_SSID “rabbitTest”
#endif
#define _WIFI_OWNCHANNEL "0"
#ifndef _WIFI_OWNCHANNEL
#define _WIFI_OWNCHANNEL “0”
#endif
#ifndef _WIFI_OWNSSID
#define _WIFI_OWNSSID “rabbitTest”
#endif
#define _WIFI_CHANNEL_MASK WIFICONF_CHANMASK_AMERICAS
#ifndef _WIFI_CHANNEL_MASK
#define _WIFI_CHANNEL_MASK WIFICONF_CHANMASK_AMERICAS
#endif
#define _WIFI_TX_POWER WIFICONF_TXPOWER_AMERICAS “13”
#ifndef _WIFI_TX_POWER
#define _WIFI_TX_POWER WIFICONF_TXPOWER_AMERICAS
#endif
#ifndef _WIFI_FRAG_THRESH
#define _WIFI_FRAG_THRESH "0"
#endif
#ifndef _WIFI_RTS_THRESH
#define _WIFI_RTS_THRESH "0"
#endif
#define _WIFI_WEP_FLAG WIFICONF_WEP_ENABLE
#ifndef _WIFI_WEP_FLAG
#define _WIFI_WEP_FLAG WIFICONF_WEP_DISABLE
#endif
#define _WIFI_AUTH_MODE WIFICONF_AUTH_ALL
#ifndef _WIFI_AUTH_MODE
#define _WIFI_AUTH_MODE WIFICONF_AUTH_ALL
#endif
#define _WIFI_USEKEY “0”
#ifndef _WIFI_USEKEY
#define _WIFI_USEKEY “0”
#endif
#define _WIFI_TX_RATE WIFICONF_RATE_11MBPS
#if TCPCONFIG >= 100
#define USE_WIFI 1
#define IFCONFIG_WIFI0 \
IFS_IPADDR,aton(_PRIMARY_STATIC_IP), \
IFS_NETMASK,aton(_PRIMARY_NETMASK), \
IFS_UP
const char _wifi_key0[] = { _WIFI_KEY0 };
const char _wifi_key1[] = { _WIFI_KEY1 };
const char _wifi_key2[] = { _WIFI_KEY2 };
const char _wifi_key3[] = { _WIFI_KEY3 };
#define WIFI_INIT \
wifi_ioctl(IF_WIFI0,WIFI_MODE, _WIFI_MODE,0); \
wifi_ioctl(IF_WIFI0,WIFI_SSID, _WIFI_SSID,0); \
wifi_ioctl(IF_WIFI0,WIFI_OWNCHAN, _WIFI_OWNCHANNEL,0); \
wifi_ioctl(IF_WIFI0,WIFI_TX_POWER, _WIFI_TX_POWER,0); \
wifi_ioctl(IF_WIFI0,WIFI_FRAG_THRESH, _WIFI_FRAG_THRESH,0); \
wifi_ioctl(IF_WIFI0,WIFI_RTS_THRESH, _WIFI_RTS_THRESH,0); \
wifi_ioctl(IF_WIFI0,WIFI_WEP_FLAG, _WIFI_WEP_FLAG,0); \
wifi_ioctl(IF_WIFI0,WIFI_AUTH, _WIFI_AUTH_MODE,0); \
wifi_ioctl(IF_WIFI0,WIFI_WEP_USEKEY, _WIFI_USEKEY,0); \
wifi_ioctl(IF_WIFI0,WIFI_WEP_KEY0,_wifi_key0,sizeof(_wifi_key0)); \
wifi_ioctl(IF_WIFI0,WIFI_WEP_KEY1,_wifi_key1,sizeof(_wifi_key1)); \
wifi_ioctl(IF_WIFI0,WIFI_WEP_KEY2,_wifi_key2,sizeof(_wifi_key2)); \
wifi_ioctl(IF_WIFI0,WIFI_WEP_KEY3,_wifi_key3,sizeof(_wifi_key3)); \
wifi_setchannelmask(_WIFI_CHANNEL_MASK);
#endif
#endif
/*** EndHeader */