mac.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Daniel Krebs
3  * 2016 INRIA
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
24 #include "kernel_defines.h"
25 
26 #ifndef NET_GNRC_MAC_MAC_H
27 #define NET_GNRC_MAC_MAC_H
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
45 #ifndef CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP
46 #define CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP (3U)
47 #endif
48 
56 #ifndef CONFIG_GNRC_MAC_DISPATCH_BUFFER_SIZE_EXP
57 #define CONFIG_GNRC_MAC_DISPATCH_BUFFER_SIZE_EXP (3U)
58 #endif
59 
63 #ifndef CONFIG_GNRC_MAC_NEIGHBOR_COUNT
64 #define CONFIG_GNRC_MAC_NEIGHBOR_COUNT (8U)
65 #endif
66 
74 #ifndef CONFIG_GNRC_MAC_TX_QUEUE_SIZE_EXP
75 #define CONFIG_GNRC_MAC_TX_QUEUE_SIZE_EXP (3U)
76 #endif
77 
81 #ifdef DOXYGEN
82 #define CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD
83 #endif
84 
92 #ifndef GNRC_MAC_ENABLE_DUTYCYCLE_RECORD
93 #if IS_ACTIVE(CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD)
94 #define GNRC_MAC_ENABLE_DUTYCYCLE_RECORD (0)
95 #else
96 #define GNRC_MAC_ENABLE_DUTYCYCLE_RECORD (1U)
97 #endif
98 #endif
99 
104 #ifndef GNRC_MAC_RX_QUEUE_SIZE
105 #define GNRC_MAC_RX_QUEUE_SIZE (1 << CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP)
106 #endif
107 
111 #ifndef GNRC_MAC_DISPATCH_BUFFER_SIZE
112 #define GNRC_MAC_DISPATCH_BUFFER_SIZE (1 << CONFIG_GNRC_MAC_DISPATCH_BUFFER_SIZE_EXP)
113 #endif
114 
119 #ifndef GNRC_MAC_TX_QUEUE_SIZE
120 #define GNRC_MAC_TX_QUEUE_SIZE (1 << CONFIG_GNRC_MAC_TX_QUEUE_SIZE_EXP)
121 #endif
122 
123 #ifdef __cplusplus
124 }
125 #endif
126 
127 #endif /* NET_GNRC_MAC_MAC_H */
128 
Common macros and compiler attributes/pragmas configuration.