1 /************************************************************************/
2 /* Contiki-specific parameters                                          */
3 /************************************************************************/
4 
5 #ifndef _PLATFORM_H_
6 #define _PLATFORM_H_ 1
7 
8 #ifdef CONTIKI
9 #include "contiki.h"
10 #include "contiki-lib.h"
11 #include "contiki-net.h"
12 
13 #include "contiki-conf.h"
14 
15 /* global constants for constrained devices running Contiki */
16 #ifndef DTLS_PEER_MAX
17 /** The maximum number DTLS peers (i.e. sessions). */
18 #  define DTLS_PEER_MAX 1
19 #endif
20 
21 #ifndef DTLS_HANDSHAKE_MAX
22 /** The maximum number of concurrent DTLS handshakes. */
23 #  define DTLS_HANDSHAKE_MAX 1
24 #endif
25 
26 #ifndef DTLS_SECURITY_MAX
27 /** The maximum number of concurrently used cipher keys */
28 #  define DTLS_SECURITY_MAX (DTLS_PEER_MAX + DTLS_HANDSHAKE_MAX)
29 #endif
30 
31 #ifndef DTLS_HASH_MAX
32 /** The maximum number of hash functions that can be used in parallel. */
33 #  define DTLS_HASH_MAX (3 * DTLS_PEER_MAX)
34 #endif
35 
36 /************************************************************************/
37 /* Specific Contiki platforms                                           */
38 /************************************************************************/
39 
40 #if CONTIKI_TARGET_ECONOTAG
41 #  include "platform-specific/config-econotag.h"
42 #endif /* CONTIKI_TARGET_ECONOTAG */
43 
44 #ifdef CONTIKI_TARGET_CC2538DK
45 #  include "platform-specific/config-cc2538dk.h"
46 #endif /* CONTIKI_TARGET_CC2538DK */
47 
48 #ifdef CONTIKI_TARGET_WISMOTE
49 #  include "platform-specific/config-wismote.h"
50 #endif /* CONTIKI_TARGET_WISMOTE */
51 
52 #ifdef CONTIKI_TARGET_SKY
53 #  include "platform-specific/config-sky.h"
54 #endif /* CONTIKI_TARGET_SKY */
55 
56 #ifdef CONTIKI_TARGET_MINIMAL_NET
57 #  include "platform-specific/config-minimal-net.h"
58 #endif /* CONTIKI_TARGET_MINIMAL_NET */
59 
60 #endif /* CONTIKI */
61 
62 #endif /* _PLATFORM_H_ */
63