mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc/mac : Configure GNRC_MAC_RX_QUEUE_SIZE with exponent
This commit is contained in:
parent
1992f57765
commit
2c1aa8618b
@ -28,11 +28,22 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Default message queue size to use for the incoming packets (as
|
||||
* exponent of 2^n).
|
||||
*
|
||||
* As the queue size ALWAYS needs to be power of two, this option represents the
|
||||
* exponent of 2^n, which will be used as the size of the queue.
|
||||
*/
|
||||
#ifndef CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP
|
||||
#define CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP (3U)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief The default rx queue size for incoming packets
|
||||
*/
|
||||
#ifndef GNRC_MAC_RX_QUEUE_SIZE
|
||||
#define GNRC_MAC_RX_QUEUE_SIZE (8U)
|
||||
#define GNRC_MAC_RX_QUEUE_SIZE (1 << CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user