Hello Noam,

 

Thank you for your fast response.

 

Can you please send an example of definitions of LWIP_DEBUG and
LWIP_PLATFORM_DIAG?

 

Yacob Hassidim,

Real Time Embedded Software Engineer

Mobile: 052-3468818

 

From: lwip-users
[mailto:[email protected]] On Behalf Of
Noam Weissman
Sent: Tuesday, February 20, 2018 3:37 PM
To: Mailing list for lwIP users <[email protected]>
Subject: Re: [lwip-users] LwIP configuration for directing LWIP_DEBUGF to
user function

 

Hi Yacob,

 

In file sysy_arch.c you have an include to debug.h

 

If you set LWIP_DEBUG you need to define  LWIP_PLATFORM_DIAG

 

LWIP_PLATFORM_DIAG is your wrapper for printing

 

Normally this is defined in cc.h that is part of your micro porting code.

 

Hope that helped,

Noam.

 

 

 

From: lwip-users [mailto:[email protected]] On
Behalf Of Yacob Hassidim
Sent: Tuesday, February 20, 2018 2:44 PM
To: [email protected] <mailto:[email protected]> 
Subject: [lwip-users] LwIP configuration for directing LWIP_DEBUGF to user
function

 

Hello,

 

I use LwIP version 2.0.0.

 

How to configure LwIP in order to direct LWIP_DEBUGF to user function e.g.
serial_write() ?

 

Thanks.

 

Yacob Hassidim.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to