stm32/lwip_inc: Implement LWIP_PLATFORM_DIAG macro in terms of printf.
This allows enabling lwIP debugging output. For example, to enable PPP
debugging add the following to `mpconfigboard.h`:
#define LWIP_DEBUG 1
#define PPP_DEBUG LWIP_DBG_ON
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
a1a16ffd75
commit
aee002dd80
1 changed files with 3 additions and 1 deletions
|
|
@ -2,7 +2,9 @@
|
|||
#define MICROPY_INCLUDED_STM32_LWIP_ARCH_CC_H
|
||||
|
||||
#include <assert.h>
|
||||
#define LWIP_PLATFORM_DIAG(x)
|
||||
#include <stdio.h>
|
||||
|
||||
#define LWIP_PLATFORM_DIAG(x) do { printf x; } while (0)
|
||||
#define LWIP_PLATFORM_ASSERT(x) { assert(1); }
|
||||
|
||||
#define LWIP_NO_CTYPE_H 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue