mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cord/epsim: remove standalone submodule
This commit is contained in:
parent
f8df35dcb3
commit
840c8aeba2
@ -792,11 +792,6 @@ ifneq (,$(filter bluetil_addr,$(USEMODULE)))
|
||||
USEMODULE += fmt
|
||||
endif
|
||||
|
||||
ifneq (,$(filter cord_epsim_standalone,$(USEMODULE)))
|
||||
USEMODULE += cord_epsim
|
||||
USEMODULE += xtimer
|
||||
endif
|
||||
|
||||
ifneq (,$(filter cord_epsim,$(USEMODULE)))
|
||||
USEMODULE += cord_common
|
||||
USEMODULE += gcoap
|
||||
|
@ -6,7 +6,6 @@ PSEUDOMODULES += can_raw
|
||||
PSEUDOMODULES += ccn-lite-utils
|
||||
PSEUDOMODULES += conn_can_isotp_multi
|
||||
PSEUDOMODULES += cord_ep_standalone
|
||||
PSEUDOMODULES += cord_epsim_standalone
|
||||
PSEUDOMODULES += core_%
|
||||
PSEUDOMODULES += cortexm_fpu
|
||||
PSEUDOMODULES += ecc_%
|
||||
|
@ -168,11 +168,6 @@ void auto_init(void)
|
||||
extern void cord_ep_standalone_run(void);
|
||||
cord_ep_standalone_run();
|
||||
#endif
|
||||
#ifdef MODULE_CORD_EPSIM_STANDALONE
|
||||
DEBUG("Auto init cord_epsim module\n");
|
||||
extern void cord_epsim_run(void);
|
||||
cord_epsim_run();
|
||||
#endif
|
||||
#ifdef MODULE_ASYMCUTE
|
||||
DEBUG("Auto init Asymcute\n");
|
||||
asymcute_handler_run();
|
||||
|
@ -2,8 +2,4 @@ MODULE = cord_epsim
|
||||
|
||||
SRC = cord_epsim.c
|
||||
|
||||
ifneq (,$(filter cord_epsim_standalone,$(USEMODULE)))
|
||||
SRC += cord_epsim_standalone.c
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2017 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 net_cord_epsim
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Standalone extension for the simple RD registration endpoint
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "log.h"
|
||||
#include "thread.h"
|
||||
#include "xtimer.h"
|
||||
#include "net/cord/epsim.h"
|
||||
#include "net/cord/config.h"
|
||||
|
||||
#define STACKSIZE (THREAD_STACKSIZE_DEFAULT)
|
||||
#define PRIO (THREAD_PRIORITY_MAIN - 1)
|
||||
#define TNAME "cord_epsim"
|
||||
|
||||
static char _stack[STACKSIZE];
|
||||
|
||||
static void *reg_runner(void *arg)
|
||||
{
|
||||
(void)arg;
|
||||
|
||||
/* wait some seconds to give the address configuration some time to settle */
|
||||
xtimer_sleep(CORD_STARTUP_DELAY);
|
||||
|
||||
while (1) {
|
||||
if (cord_epsim_register() != CORD_EPSIM_OK) {
|
||||
/* if this fails once, it will always fail, so we might as well
|
||||
* quit now */
|
||||
LOG_ERROR("[cord_epsim] error: unable to send registration\n");
|
||||
break;
|
||||
}
|
||||
xtimer_sleep(CORD_UPDATE_INTERVAL);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef MODULE_CORD_EPSIM_STANDALONE
|
||||
void cord_epsim_run(void)
|
||||
{
|
||||
thread_create(_stack, sizeof(_stack), PRIO, THREAD_CREATE_STACKTEST,
|
||||
reg_runner, NULL, TNAME);
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user