1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/net/gnrc_netif_ieee802154/main.c
chudov c52f6e71c2 drivers/at86rf2xx: rx timestamp generation for ATmegaRFR2
Signed-off-by: chudov <chudov@gmail.com>
2023-05-19 15:33:15 +02:00

54 lines
1.3 KiB
C

/*
* Copyright (C) 2019 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @{
*
* @file
* @author Martine Lenders <m.lenders@fu-berlin.de>
*/
#include "net/gnrc.h"
#include "net/gnrc/netif.h"
#include "net/gnrc/pktdump.h"
#if IS_USED(MODULE_SHELL)
#include <stdio.h>
#include <string.h>
#include "thread.h"
#include "shell.h"
#endif
int main(void)
{
#if IS_USED(MODULE_SOCKET_ZEP)
/* This is a test for native with socket_zep */
char addr_str[GNRC_NETIF_L2ADDR_MAXLEN * 3];
gnrc_netif_t *netif = gnrc_netif_iter(NULL);
printf("l2_addr: %s\n", gnrc_netif_addr_to_str(netif->l2addr,
netif->l2addr_len,
addr_str));
#endif
gnrc_netreg_entry_t dump = GNRC_NETREG_ENTRY_INIT_PID(
GNRC_NETREG_DEMUX_CTX_ALL,
gnrc_pktdump_pid
);
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);
#if IS_USED(MODULE_SHELL)
/* this is manual test for real MCU using shell module */
char line_buf[SHELL_DEFAULT_BUFSIZE];
shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE);
#endif
return 0;
}
/** @} */