From f64e1c54b706b21ac319e6b80113092b564a92e3 Mon Sep 17 00:00:00 2001 From: liuzhifu Date: Tue, 20 Sep 2016 15:36:49 +0800 Subject: [PATCH] lwip: add license and add lwip_debug.h --- components/lwip/api/lwip_debug.c | 17 ++++++++++--- .../lwip/include/lwip/lwip/lwip_debug.h | 24 +++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 components/lwip/include/lwip/lwip/lwip_debug.h diff --git a/components/lwip/api/lwip_debug.c b/components/lwip/api/lwip_debug.c index 6a8f91c40f..1e5fed40d3 100644 --- a/components/lwip/api/lwip_debug.c +++ b/components/lwip/api/lwip_debug.c @@ -1,6 +1,18 @@ -#ifndef _LWIP_DEBUG_ -#define _LWIP_DEBUG_ +// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "lwip/lwip_debug.h" #include "lwip/api.h" #include "lwip/netbuf.h" #include "lwip/tcp.h" @@ -112,4 +124,3 @@ void dbg_lwip_udp_rxtx_show(void) printf("TBC\n"); } -#endif diff --git a/components/lwip/include/lwip/lwip/lwip_debug.h b/components/lwip/include/lwip/lwip/lwip_debug.h new file mode 100644 index 0000000000..abfcd2c1c3 --- /dev/null +++ b/components/lwip/include/lwip/lwip/lwip_debug.h @@ -0,0 +1,24 @@ +// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +#ifndef _LWIP_DEBUG_H +#define _LWIP_DEBUG_H + +void dbg_lwip_tcp_pcb_show(void); +void dbg_lwip_udp_pcb_show(void); +void dbg_lwip_tcp_rxtx_show(void); +void dbg_lwip_udp_rxtx_show(void); + +#endif