lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] lwIPv1.3.0 memory


From: Bill Yang
Subject: RE: [lwip-users] lwIPv1.3.0 memory
Date: Wed, 3 Mar 2010 18:58:02 -0700

Hi Benoit,

Thank you for your replying and comment on my first question. 

I still wonder if some one can answer my other two questions as I copy below. I 
am new to learn lwIP stuff. I watched several days and saw some guys are 
professional with lwIP. If you guys think my questions are too simple to 
answer, please forgive me, because I really need a help at this point.

Q2: Can I undifine the MEM_SIZE and define MEM_USE_POOLS  1 in lwipopts.h? 
which I tried to only use memory pool instead of heap in lwIP.  

(3) When I defined MEM_USE_POOLS  1 and MEMP_USE_CUSTOM_POOLS  1 and added 
lwippools.h to compile, I got below compile errors.

#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"
    ) ,  ..\Common\ethernet\lwip-1.3.0\src\include\lwip/memp.h(60): error:  
#29: expected an expression
    /* 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"
    )   ..\Common\ethernet\lwip-1.3.0\src\include\lwip/memp.h(69): error:  #29: 
expected an expression
} memp_pool_helper_t;

Q3: Just point to me what " expected an expression " means? How to solve it?

Thanks,
 
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


Benoît CAMUS
Leroy Automatique Industrielle
Bd du Libre échange - 31650 Saint-Orens
Standard : 05.62.24.05.50
e-mail : address@hidden



_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]