Loading...
Searching...
No Matches
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
10#pragma once
11
27
28#include "modules.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
46#ifndef CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP
47#define CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP (3U)
48#endif
49
57#ifndef CONFIG_GNRC_MAC_DISPATCH_BUFFER_SIZE_EXP
58#define CONFIG_GNRC_MAC_DISPATCH_BUFFER_SIZE_EXP (3U)
59#endif
60
64#ifndef CONFIG_GNRC_MAC_NEIGHBOR_COUNT
65#define CONFIG_GNRC_MAC_NEIGHBOR_COUNT (8U)
66#endif
67
75#ifndef CONFIG_GNRC_MAC_TX_QUEUE_SIZE_EXP
76#define CONFIG_GNRC_MAC_TX_QUEUE_SIZE_EXP (3U)
77#endif
78
82#ifdef DOXYGEN
83#define CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD
84#endif
85
93#ifndef GNRC_MAC_ENABLE_DUTYCYCLE_RECORD
94#if IS_ACTIVE(CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD)
95#define GNRC_MAC_ENABLE_DUTYCYCLE_RECORD (0)
96#else
97#define GNRC_MAC_ENABLE_DUTYCYCLE_RECORD (1U)
98#endif
99#endif
101
105#ifndef GNRC_MAC_RX_QUEUE_SIZE
106#define GNRC_MAC_RX_QUEUE_SIZE (1 << CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP)
107#endif
108
112#ifndef GNRC_MAC_DISPATCH_BUFFER_SIZE
113#define GNRC_MAC_DISPATCH_BUFFER_SIZE (1 << CONFIG_GNRC_MAC_DISPATCH_BUFFER_SIZE_EXP)
114#endif
115
120#ifndef GNRC_MAC_TX_QUEUE_SIZE
121#define GNRC_MAC_TX_QUEUE_SIZE (1 << CONFIG_GNRC_MAC_TX_QUEUE_SIZE_EXP)
122#endif
123
124#ifdef __cplusplus
125}
126#endif
127
Common macros and compiler attributes/pragmas configuration.