SRCS = $(ASRCS) $(CSRCS) $(MAINSRC)
OBJS = $(AOBJS) $(COBJS)
-# libcoap flags
-CFLAGS += -DWITH_POSIX
-CFLAGS += -D__TINYARA__
-ifeq ($(CONFIG_NETUTILS_LIBCOAP_DEBUG),n)
-CFLAGS += -DNDEBUG
-endif
-ifeq ($(CONFIG_NET_SECURITY_TLS),y)
-CFLAGS += -DWITH_MBEDTLS
-endif
-CFLAGS += -DWITH_TCP
-#CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)$(DELIM)include$(DELIM)netutils$(DELIM)libcoap}
-
ifneq ($(CONFIG_BUILD_KERNEL),y)
OBJS += $(MAINOBJ)
endif
SRCS = $(ASRCS) $(CSRCS) $(MAINSRC)
OBJS = $(AOBJS) $(COBJS)
-# libcoap flags
-CFLAGS += -DWITH_POSIX
-CFLAGS += -D__TINYARA__
-ifeq ($(CONFIG_NETUTILS_LIBCOAP_DEBUG),n)
-CFLAGS += -DNDEBUG
-endif
-ifeq ($(CONFIG_NET_SECURITY_TLS),y)
-CFLAGS += -DWITH_MBEDTLS
-endif
-CFLAGS += -DWITH_TCP
-#CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)$(DELIM)include$(DELIM)netutils$(DELIM)libcoap}
-
ifneq ($(CONFIG_BUILD_KERNEL),y)
OBJS += $(MAINOBJ)
endif
* README for terms of use.
*/
-#include <tinyara/config.h>
-
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
/* config.h.in. Generated from configure.in by autoheader. */
/********************************************************
+ * Tinyara defined configuration
+ *********************************************************/
+#include <tinyara/config.h>
+
+/* Default Configuration : WITH_POSIX and WITH_TCP */
+#define WITH_POSIX
+#define WITH_TCP
+
+#ifndef __TINYARA__
+#define __TINYARA__
+#endif
+
+#ifndef CONFIG_NETUTILS_LIBCOAP_DEBUG
+#define NDEBUG
+#else
+#undef NDEBUG
+#endif
+
+#ifdef CONFIG_NET_SECURITY_TLS
+#define WITH_MBEDTLS
+#else
+#undef WITH_MBEDTLS
+#endif
+
+/********************************************************
* User defined configuration (via Kconfig)
*********************************************************/
/* Define if building universal (internal helper macro) */
#define warn(...)
#define coap_show_pdu(x)
+#define coap_show_pdu2(x)
#define coap_print_addr(...)
#endif
#ifndef _COAP_ENCODE_H_
#define _COAP_ENCODE_H_
-#include <tinyara/config.h>
+#include <apps/netutils/libcoap/config.h>
#if defined (__TINYARA__)
#include <string.h>
+++ /dev/null
-/** Memory pool definitions for the libcoap when used with lwIP (which has its
- * own mechanism for quickly allocating chunks of data with known sizes). Has
- * to be findable by lwIP (ie. an #include <lwippools.h> must either directly
- * include this or include something more generic which includes this), and
- * MEMP_USE_CUSTOM_POOLS has to be set in lwipopts.h. */
-
-#include <net.h>
-#include <subscribe.h>
-#include <resource.h>
-
-#ifndef MEMP_NUM_COAPCONTEXT
-#define MEMP_NUM_COAPCONTEXT 1
-#endif
-
-#ifndef MEMP_NUM_COAPNODE
-#define MEMP_NUM_COAPNODE 4
-#endif
-
-#ifndef MEMP_NUM_COAP_SUBSCRIPTION
-#define MEMP_NUM_COAP_SUBSCRIPTION 4
-#endif
-
-#ifndef MEMP_NUM_COAPRESOURCE
-#define MEMP_NUM_COAPRESOURCE 10
-#endif
-
-#ifndef MEMP_NUM_COAPRESOURCEATTR
-#define MEMP_NUM_COAPRESOURCEATTR 20
-#endif
-
-LWIP_MEMPOOL(COAP_CONTEXT, MEMP_NUM_COAPCONTEXT, sizeof(coap_context_t), "COAP_CONTEXT")
-LWIP_MEMPOOL(COAP_NODE, MEMP_NUM_COAPNODE, sizeof(coap_queue_t), "COAP_NODE")
-LWIP_MEMPOOL(COAP_subscription, MEMP_NUM_COAP_SUBSCRIPTION, sizeof(coap_subscription_t), "COAP_subscription")
-LWIP_MEMPOOL(COAP_RESOURCE, MEMP_NUM_COAPRESOURCE, sizeof(coap_resource_t), "COAP_RESOURCE")
-LWIP_MEMPOOL(COAP_RESOURCEATTR, MEMP_NUM_COAPRESOURCEATTR, sizeof(coap_attr_t), "COAP_RESOURCEATTR")
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-# libcoap flags
-CFLAGS += -DWITH_POSIX
-CFLAGS += -D__TINYARA__
-ifeq ($(CONFIG_NETUTILS_LIBCOAP_DEBUG),n)
-CFLAGS += -DNDEBUG
-endif
-ifeq ($(CONFIG_NET_SECURITY_TLS),y)
-CFLAGS += -DWITH_MBEDTLS
-endif
-CFLAGS += -DWITH_TCP
-#CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)$(DELIM)include$(DELIM)netutils$(DELIM)libcoap}
-
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
BIN = ..\..\libapps$(LIBEXT)
else