WIZlib Library API  ver 1.0
WIZlib Library API User Menual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
wizconfig.h File Reference

User Configuration Header File Templete. More...

#include "common/types.h"
Include dependency graph for wizconfig.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYSTEM_LITTLE_ENDIAN
 Define Endianness - Little Endian (Default). More...
 
#define SYSTEM_BIG_ENDIAN
 Define Endianness - Big Endian. More...
 
#define COMPILER_IAR_EWARM
 Indicate your complier is IAR EWARM. More...
 
#define COMPILER_GCC_ARM
 Indicate your complier is GCC ARM. More...
 
#define PLATFORM_W5200_EVB
 Indicate your platform is W5200 EVB. More...
 
#define PLATFORM_W7200_EVB
 Indicate your platform is W7200 EVB. More...
 
#define PLATFORM_W5500_EVB
 Indicate your platform is W5500 EVB. More...
 
#define HOST_STM32F10X
 Indicate your Host Device(MCU) is STM32F10x. More...
 
#define HOST_8051
 Indicate your Host Device(MCU) is 8051. More...
 
#define DEVICE_W5100
 Indicate your Network Device(IINCHIP) is W5100. More...
 
#define DEVICE_W5200
 Indicate your Network Device(IINCHIP) is W5200. More...
 
#define DEVICE_W5300
 Indicate your Network Device(IINCHIP) is W5300. More...
 
#define DEVICE_W5500
 Indicate your Network Device(IINCHIP) is W5500. More...
 
#define TOTAL_SOCK_NUM
 Total Socket number you can use. More...
 
#define TOTAL_SOCK_MEM
 Total Socket memory you can use. More...
 
#define USE_DHCP   VAL_ENABLE
 Include DHCP Module. More...
 
#define DHCP_AUTO
 Set DHCP as Auto (using alarm module). More...
 
#define DHCP_ASYNC
 Use async socket function which does not be blocked. More...
 
#define DEFAULT_MAC_ADDR   "00:08:DC:11:22:33"
 Define default MAC Address.
 
#define DEFAULT_IP_ADDR   "192.168.0.100"
 Define default IP Address.
 
#define DEFAULT_SN_MASK   "255.255.255.0"
 Define default Subnet Mask.
 
#define DEFAULT_GW_ADDR   "192.168.0.1"
 Define default Gateway Address.
 
#define DEFAULT_DNS_ADDR   "168.126.63.1"
 Define default DNS Server Address.
 
#define WIZ_LOG_LEVEL   2
 Log level which is set at wizconfig.h. More...
 
#define PRINT_TIME_LOG
 Define Add systick time stamp to every log print.
 

Detailed Description

User Configuration Header File Templete.

Copy this to your source folder and modify for your project.

Version
1.0
Date
2013/02/22
Revision
2013/02/22 - 1.0 Release
Author
modified by Mike Jeong

Copyright (C) 2013 WIZnet. All rights reserved.

Definition in file wizconfig.h.

Macro Definition Documentation

#define COMPILER_GCC_ARM

Indicate your complier is GCC ARM.

If you are using GCC ARM, define this.

See Also
COMPILER_IAR_EWARM
Remarks
Not implemented yet.

Definition at line 47 of file wizconfig.h.

#define COMPILER_IAR_EWARM

Indicate your complier is IAR EWARM.

If you are using IAR EWARM, define this.

See Also
COMPILER_GCC_ARM

Definition at line 46 of file wizconfig.h.

#define DEVICE_W5100

Indicate your Network Device(IINCHIP) is W5100.

Normally, this is defined automatically by platform definition. but if you does not use defined platform, this definition will be needed.

See Also
DEVICE_W5200, DEVICE_W5300, DEVICE_W5500

Definition at line 104 of file wizconfig.h.

#define DEVICE_W5200

Indicate your Network Device(IINCHIP) is W5200.

Normally, this is defined automatically by platform definition. but if you does not use defined platform, this definition will be needed.

See Also
DEVICE_W5100, DEVICE_W5300, DEVICE_W5500

Definition at line 105 of file wizconfig.h.

#define DEVICE_W5300

Indicate your Network Device(IINCHIP) is W5300.

Normally, this is defined automatically by platform definition. but if you does not use defined platform, this definition will be needed.

See Also
DEVICE_W5100, DEVICE_W5200, DEVICE_W5500

Definition at line 106 of file wizconfig.h.

#define DEVICE_W5500

Indicate your Network Device(IINCHIP) is W5500.

Normally, this is defined automatically by platform definition. but if you does not use defined platform, this definition will be needed.

See Also
DEVICE_W5100, DEVICE_W5200, DEVICE_W5300

Definition at line 107 of file wizconfig.h.

#define DHCP_ASYNC

Use async socket function which does not be blocked.

  • You need to define USE_DHCP as VAL_ENABLE before define this.
  • If you define this, you should call sockwatch_run at main loop continuously.
  • If this is not defined, it works as sync(blocking) function.

Definition at line 152 of file wizconfig.h.

#define DHCP_AUTO

Set DHCP as Auto (using alarm module).

  • You need to define USE_DHCP as VAL_ENABLE before define this.
  • Alarm module is used to calculate timing and to run.
  • By using dhcp_auto_start, you can start DHCP action.
  • If you define this, you should call alarm_run at main loop continuously.
  • If this is not defined and you want to use DHCP, you have to handle it manually by using dhcp_manual.

Definition at line 151 of file wizconfig.h.

#define HOST_8051

Indicate your Host Device(MCU) is 8051.

Normally, this is defined automatically by platform definition. but if you does not use defined platform, this definition will be needed.

See Also
HOST_STM32F10X

Definition at line 80 of file wizconfig.h.

#define HOST_STM32F10X

Indicate your Host Device(MCU) is STM32F10x.

Normally, this is defined automatically by platform definition. but if you does not use defined platform, this definition will be needed.

See Also
HOST_8051

Definition at line 79 of file wizconfig.h.

#define PLATFORM_W5200_EVB

Indicate your platform is W5200 EVB.

If you are using W5200 EVB Board, define this.

See Also
PLATFORM_W7200_EVB, PLATFORM_W5500_EVB

Definition at line 63 of file wizconfig.h.

#define PLATFORM_W5500_EVB

Indicate your platform is W5500 EVB.

If you are using W5500 EVB Board, define this.

See Also
PLATFORM_W7200_EVB, PLATFORM_W5200_EVB

Definition at line 65 of file wizconfig.h.

#define PLATFORM_W7200_EVB

Indicate your platform is W7200 EVB.

If you are using W7200 EVB Board, define this.

See Also
PLATFORM_W5200_EVB, PLATFORM_W5500_EVB

Definition at line 64 of file wizconfig.h.

#define SYSTEM_BIG_ENDIAN

Define Endianness - Big Endian.

If you want to set to Little Endian, remove this and define SYSTEM_LITTLE_ENDIAN

See Also
SYSTEM_LITTLE_ENDIAN

Definition at line 33 of file wizconfig.h.

#define SYSTEM_LITTLE_ENDIAN

Define Endianness - Little Endian (Default).

If you want to set to Big Endian, remove this and define SYSTEM_BIG_ENDIAN

See Also
SYSTEM_BIG_ENDIAN

Definition at line 32 of file wizconfig.h.

#define TOTAL_SOCK_MEM

Total Socket memory you can use.

This is defined automatically by Network Device definition.

See Also
device_mem_init

Definition at line 119 of file wizconfig.h.

#define TOTAL_SOCK_NUM

Total Socket number you can use.

This is defined automatically by Network Device definition.

Definition at line 118 of file wizconfig.h.

#define USE_DHCP   VAL_ENABLE

Include DHCP Module.

If you want to use DHCP function, define this. and add library/protocol/DHCP files to your project. and finally, define DHCP_AUTO, DHCP_ASYNC properly. Ex) If you want to set Auto Async DHCP mode

#define USE_DHCP VAL_ENABLE
#define DHCP_AUTO
#define DHCP_ASYNC

Definition at line 150 of file wizconfig.h.

#define WIZ_LOG_LEVEL   2

Log level which is set at wizconfig.h.

default value is 2.

  • 0: Log Disabled
  • 1: Error Log
  • 2: Error Log + Normal Log
  • 3: Error Log + Normal Log + Debug Log

Definition at line 183 of file wizconfig.h.