[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] help me please
From: |
见永 吴 |
Subject: |
[lwip-users] help me please |
Date: |
Mon, 26 Dec 2005 12:46:20 +0800 (CST) |
Hi all:
This is the first time i come here ^_^.
Now i am porting lwip over Arm+ucos and version of
lwip is 1.1.0.I have many problems
and need your help!
First,in header file debug.h,there are such
definitions about LWIP_ASSERT and LWIP_DEBUG
as follows:
#ifndef LWIP_NOASSERT
# define LWIP_ASSERT(x,y) do { if(!(y))
LWIP_PLATFORM_ASSERT(x); } while(0)
#else
# define LWIP_ASSERT(x,y)
#endif
#ifdef LWIP_DEBUG
/** print debug message only if debug message
type is enabled...
* AND is of correct type AND is at least
DBG_LEVEL */
# define LWIP_DEBUGF(debug,x) do { if
(((debug) & DBG_ON) &&
((debug) & DBG_TYPES_ON) &&
((int)((debug) & DBG_MASK_LEVEL) >=
DBG_MIN_LEVEL))
{ LWIP_PLATFORM_DIAG(x); if ((debug) & DBG_HALT)
while(1); } } while(0)
# define LWIP_ERROR(x) do {
LWIP_PLATFORM_DIAG(x); } while(0)
#else /* LWIP_DEBUG */
# define LWIP_DEBUGF(debug,x)
# define LWIP_ERROR(x)
#endif
Here,i can't find the detail definiton of
LWIP_PLATFORM_ASSERT function and LWIP_PLATFORM_DIAG
in source file.Must i
implement them by myself?If i must,how to implement
them and in which file?
Second, can someone give me an examle of ethernet
driver?
Thank you!
__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] help me please,
见永 吴 <=