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]
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