[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] Compile Error related to lwippools.h file
From: |
Bill Yang |
Subject: |
RE: [lwip-users] Compile Error related to lwippools.h file |
Date: |
Wed, 24 Feb 2010 14:55:51 -0700 |
Hi,
Re: I used Keil's RVMDK tool train.
Thanks for your help. However, after I created lwippools.h and compiled again.
I got a couple of errors related this in memp.h file showed below.
..\Common\ethernet\lwip-1.3.0\src\include\lwip/memp.h(60): error: #29:
expected an expression
..\Common\ethernet\lwip-1.3.0\src\include\lwip/memp.h(69): error: #29:
expected an expression
I've looked at the line 60 and 69 on the errors, but I could not figure out
what is wrong. If you can help me again, it will be greatly appreciated.
#if MEM_USE_POOLS
/* Use a helper type to get the start and end of the user "memory pools" for
mem_malloc */
typedef enum {
/* Get the first (via:
MEMP_POOL_HELPER_START = ((u8_t) 1*MEMP_POOL_A + 0*MEMP_POOL_B +
0*MEMP_POOL_C + 0)*/
MEMP_POOL_HELPER_FIRST = ((u8_t)
#define LWIP_MEMPOOL(name,num,size,desc)
#define LWIP_MALLOC_MEMPOOL_START 1
#define LWIP_MALLOC_MEMPOOL(num, size) * MEMP_POOL_##size + 0
#define LWIP_MALLOC_MEMPOOL_END
#include "lwip/memp_std.h"
/* Error is here, line 60 */ ) ,
/* Get the last (via:
MEMP_POOL_HELPER_END = ((u8_t) 0 + MEMP_POOL_A*0 + MEMP_POOL_B*0 +
MEMP_POOL_C*1) */
MEMP_POOL_HELPER_LAST = ((u8_t)
#define LWIP_MEMPOOL(name,num,size,desc)
#define LWIP_MALLOC_MEMPOOL_START
#define LWIP_MALLOC_MEMPOOL(num, size) 0 + MEMP_POOL_##size *
#define LWIP_MALLOC_MEMPOOL_END 1
#include "lwip/memp_std.h"
/* Error is here, line 69 */ )
} memp_pool_helper_t;
Bill Yang
Software Engineer
direct: +1 801.433.6354
email: address@hidden
Parvus
RUGGED SOLUTIONS for REAL WORLD APPLICATIONS
USA – 3222 S. Washington St. | Salt Lake City, Utah 84115 | Tel. +1
801.483.1533 | Fax +1 801.483.1523 |
www.parvus.com
A Member of EUROTECH GROUP
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of address@hidden
Sent: Tuesday, February 23, 2010 10:14 AM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] where is lwippools.h file
Bill Yang wrote:
> Hi,
>
> After I enabled the MEM_USE_POOLS and MEMP_USE_CUSTOM_POOLS, so I can use the
> memory pools. However, when I compiled the lwIP stack used in a demo of
> freertos, I got a compiling error said that "lwippools.h": No such file or
> directory as below message.
>
> ..\Common\ethernet\lwip-1.3.0\src\include\lwip/memp_std.h(90): error: #5:
> cannot open source input file "lwippools.h": No such file or directory
>
> I wonder if any one have a sample of lwippools.h, please briefly post here.
> So I can refer it and create one in my project.
>
For such things, there are the example ports for win32 and unix in the
contrib module in CVS. Here's the lwippools.h file of the win32 port:
/* OPTIONAL: Pools to replace heap allocation
* Optional: Pools can be used instead of the heap for mem_malloc. If
* so, these should be defined here, in increasing order according to
* the pool element size.
*
* LWIP_MALLOC_MEMPOOL(number_elements, element_size)
*/
#if MEM_USE_POOLS
LWIP_MALLOC_MEMPOOL_START
LWIP_MALLOC_MEMPOOL(100, 256)
LWIP_MALLOC_MEMPOOL(50, 512)
LWIP_MALLOC_MEMPOOL(20, 1024)
LWIP_MALLOC_MEMPOOL(20, 1536)
LWIP_MALLOC_MEMPOOL_END
#endif /* MEM_USE_POOLS */
/* Optional: Your custom pools can go here if you would like to use
* lwIP's memory pools for anything else.
*/
LWIP_MEMPOOL(SYS_MBOX, 22, 100, "SYS_MBOX")
_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users
- [lwip-users] Recommendations needed for API design, Marcus Bäckman, 2010/02/19
- Re: [lwip-users] Recommendations needed for API design, Kieran Mansley, 2010/02/19
- [lwip-users] Initialization of global Vars, Christian Steffen, 2010/02/22
- Re: [lwip-users] Initialization of global Vars, address@hidden, 2010/02/22
- Re: [lwip-users] Initialization of global Vars, Christian Steffen, 2010/02/23
- RE: [lwip-users] where is lwippools.h file, Bill Yang, 2010/02/23
- Re: [lwip-users] where is lwippools.h file, address@hidden, 2010/02/23
- RE: [lwip-users] Compile Error related to lwippools.h file,
Bill Yang <=
- Re: [lwip-users] Compile Error related to lwippools.h file, address@hidden, 2010/02/25
- RE: [lwip-users] Compile Error related to lwippools.h file, Bill Yang, 2010/02/25
RE: [lwip-users] Recommendations needed for API design, Bill Auerbach, 2010/02/19