This repository has been archived by the owner on Jul 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.h.contiki
74 lines (54 loc) · 1.64 KB
/
config.h.contiki
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef _CONFIG_H_
#define _CONFIG_H_
#include "contiki.h"
#include "contiki-lib.h"
#include "contiki-net.h"
#define WITH_CONTIKI 1
#define DEBUG DEBUG_PRINT
#define HAVE_STRNLEN 1
#define HAVE_SNPRINTF 1
#ifndef DTLS_PEER_MAX
/** The maximum number DTLS peers (i.e. sessions). */
# define DTLS_PEER_MAX 1
#endif
#ifndef DTLS_CIPHER_CONTEXT_MAX
/** The maximum number of cipher contexts that can be used in parallel. */
# define DTLS_CIPHER_CONTEXT_MAX (2 * DTLS_PEER_MAX)
#endif
#ifndef DTLS_HASH_MAX
/** The maximum number of hash functions that can be used in parallel. */
# define DTLS_HASH_MAX (3 * DTLS_PEER_MAX)
#endif
/** The maximum buffer size to hold DTLS messages */
#define DTLS_MAX_BUF 100
#include "contiki-conf.h"
#if CONTIKI_TARGET_REDBEE_ECONOTAG
/* Redbee econotags get a special treatment here: endianness is set explicitly */
/* #define BYTE_ORDER UIP_LITTLE_ENDIAN */
#undef HAVE_ASSERT_H
#define assert(x)
#define HAVE_UNISTD_H
#endif /* CONTIKI_TARGET_REDBEE_ECONOTAG */
#ifdef CONTIKI_TARGET_MBXXX
/* ST Microelectronics */
#define BYTE_ORDER 1234
#endif /* CONTIKI_TARGET_MBXXX */
#ifdef CONTIKI_TARGET_MINIMAL_NET
#undef HAVE_ASSERT_H
#define assert(x)
#define HAVE_VPRINTF
#endif /* CONTIKI_TARGET_MINIMAL_NET */
#if defined(TMOTE_SKY)
/* Need to set the byte order for TMote Sky explicitely */
#define BYTE_ORDER UIP_LITTLE_ENDIAN
typedef int ssize_t;
#undef HAVE_ASSERT_H
#endif /* defined(TMOTE_SKY) */
#ifndef BYTE_ORDER
# ifdef UIP_CONF_BYTE_ORDER
# define BYTE_ORDER UIP_CONF_BYTE_ORDER
# else
# error "UIP_CONF_BYTE_ORDER not defined"
# endif /* UIP_CONF_BYTE_ORDER */
#endif /* BYTE_ORDER */
#endif /* _CONFIG_H_ */