mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests: add nimble_autoconn_ccnl test
This commit is contained in:
parent
046c6f3e8e
commit
28acb901ab
27
tests/nimble_autoconn_ccnl/Makefile
Normal file
27
tests/nimble_autoconn_ccnl/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
BOARD ?= nrf52dk
|
||||
include ../Makefile.tests_common
|
||||
|
||||
# include shell support
|
||||
USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
USEMODULE += ps
|
||||
|
||||
# Include GNRC and RPL
|
||||
USEMODULE += gnrc_netdev_default
|
||||
USEMODULE += auto_init_gnrc_netif
|
||||
|
||||
# Setup CCN-lite
|
||||
USEPKG += ccn-lite
|
||||
CFLAGS += -DUSE_LINKLAYER
|
||||
CFLAGS += -DUSE_RONR
|
||||
CFLAGS += -DCCNL_UAPI_H_
|
||||
CFLAGS += -DUSE_SUITE_NDNTLV
|
||||
CFLAGS += -DNEEDS_PREFIX_MATCHING
|
||||
CFLAGS += -DNEEDS_PACKET_CRAFTING
|
||||
|
||||
# Setup Nimble
|
||||
USEMODULE += nimble_autoconn_ndnsp
|
||||
|
||||
TEST_ON_CI_WHITELIST += nrf52dk
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
36
tests/nimble_autoconn_ccnl/main.c
Normal file
36
tests/nimble_autoconn_ccnl/main.c
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup examples
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Run NDN-over-BLE using the 'autoconn' BLE connection manager
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "shell.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
puts("NDN-over-BLE with autoconn BLE connection manager");
|
||||
|
||||
/* start shell */
|
||||
puts("All up, running the shell now");
|
||||
char line_buf[SHELL_DEFAULT_BUFSIZE];
|
||||
shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE);
|
||||
|
||||
/* should never be reached */
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user