Skip to content

Commit

Permalink
gnrc/tests/lwmac : Add Macros
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaim committed May 23, 2020
1 parent 14393a0 commit e2d42ba
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/gnrc_lwmac/main.c
Expand Up @@ -32,9 +32,23 @@

#include "net/gnrc/pktdump.h"
#include "net/gnrc.h"
#include "net/gnrc/lwmac/lwmac.h"
#include "net/gnrc/lwmac/types.h"

#define STR(x) #x
#define SHOW_DEFINE(x) printf("%s=%s\n", #x, STR(x))

int main(void)
{
SHOW_DEFINE(CONFIG_GNRC_LWMAC_WAKEUP_INTERVAL_US);
SHOW_DEFINE(CONFIG_GNRC_LWMAC_TIME_BETWEEN_WR_US);
SHOW_DEFINE(CONFIG_GNRC_LWMAC_WR_PREPARATION_US);
SHOW_DEFINE(CONFIG_GNRC_LWMAC_DATA_DELAY_US);
SHOW_DEFINE(CONFIG_GNRC_LWMAC_DATA_CSMA_RETRIES);
SHOW_DEFINE(CONFIG_GNRC_LWMAC_MAX_DATA_TX_RETRIES);
SHOW_DEFINE(CONFIG_GNRC_LWMAC_MAX_RX_EXTENSION_NUM);
SHOW_DEFINE(CONFIG_GNRC_LWMAC_BROADCAST_CSMA_RETRIES);
SHOW_DEFINE(CONFIG_GNRC_LWMAC_TIMEOUT_COUNT);
puts("LWMAC test application");

gnrc_netreg_entry_t dump = GNRC_NETREG_ENTRY_INIT_PID(GNRC_NETREG_DEMUX_CTX_ALL,
Expand Down

0 comments on commit e2d42ba

Please sign in to comment.