quick fixes for Contiki platforms sky and wismote

This commit is contained in:
Olaf Bergmann committed 2014-06-18 16:43:06 +02:00
1 parent 302944cb76
commit ebc4eaccee
1 file changed
+10 -1
+10 -1
View File
@@ -6,6 +6,10 @@
#include "contiki-net.h"
#define WITH_CONTIKI 1
#define COAP_RESOURCES_NOHASH 1
#define PACKAGE_STRING "libcoap"
#define PACKAGE_NAME "libcoap"
#define COAP_MAX_PDU_SIZE 64
@@ -67,12 +71,17 @@
#define HAVE_UNISTD_H
#endif /* defined(PLATFORM) && PLATFORM == PLATFORM_MC1322X */
#if defined(TMOTE_SKY)
#if defined(TMOTE_SKY) || defined(CONTIKI_TARGET_SKY) || defined(CONTIKI_TARGET_WISMOTE)
/* Need to set the byte order for TMote Sky explicitely */
#define BYTE_ORDER UIP_LITTLE_ENDIAN
#undef COAP_MAX_PDU_SIZE
#define COAP_MAX_PDU_SIZE 100
#define COAP_MAX_BLOCK_SZX 2
typedef int ssize_t;
#define HAVE_LIMITS_H 1
#undef HAVE_ASSERT_H
#endif /* defined(TMOTE_SKY) */