sys/shell: remove sc_interactive_sync
This commit is contained in:
parent
906b27745f
commit
d57c39f09f
@ -96,10 +96,6 @@ ifneq (,$(filter nimble_netif,$(USEMODULE)))
|
|||||||
SRC += sc_nimble_netif.c
|
SRC += sc_nimble_netif.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter test_utils_interactive_sync,$(USEMODULE)))
|
|
||||||
SRC += sc_interactive_sync.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq (,$(filter suit_coap,$(USEMODULE)))
|
ifneq (,$(filter suit_coap,$(USEMODULE)))
|
||||||
SRC += sc_suit.c
|
SRC += sc_suit.c
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -1,49 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2019 Inria
|
|
||||||
*
|
|
||||||
* 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 sys_shell_commands
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file
|
|
||||||
* @brief Shell commands interactive sync util
|
|
||||||
*
|
|
||||||
* @author Francisco Molina <francois-xavier.molina@inria.fr>
|
|
||||||
* @}
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "test_utils/interactive_sync.h"
|
|
||||||
|
|
||||||
#if defined(__AVR__)
|
|
||||||
#include <avr/pgmspace.h>
|
|
||||||
/* For small AVR targets the extra strings generated by test interactive
|
|
||||||
can make the application overflow the .data section (RAM), we use puts_P()
|
|
||||||
to write those constant string to .txt section (FLASH)*/
|
|
||||||
#define PUTS(_s) puts_P(PSTR(_s))
|
|
||||||
#else
|
|
||||||
#define PUTS(_s) puts(_s)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int _test_start(int argc, char **argv)
|
|
||||||
{
|
|
||||||
(void) argc;
|
|
||||||
(void) argv;
|
|
||||||
PUTS("START");
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int _test_ready(int argc, char **argv)
|
|
||||||
{
|
|
||||||
(void) argc;
|
|
||||||
(void) argv;
|
|
||||||
PUTS("READY");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -159,11 +159,6 @@ extern int _loramac_handler(int argc, char **argv);
|
|||||||
extern int _nimble_netif_handler(int argc, char **argv);
|
extern int _nimble_netif_handler(int argc, char **argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MODULE_TEST_UTILS_INTERACTIVE_SYNC
|
|
||||||
extern int _test_start(int argc, char **argv);
|
|
||||||
extern int _test_ready(int argc, char **argv);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MODULE_SUIT_COAP
|
#ifdef MODULE_SUIT_COAP
|
||||||
extern int _suit_handler(int argc, char **argv);
|
extern int _suit_handler(int argc, char **argv);
|
||||||
#endif
|
#endif
|
||||||
@ -275,10 +270,6 @@ const shell_command_t _shell_command_list[] = {
|
|||||||
#ifdef MODULE_NIMBLE_NETIF
|
#ifdef MODULE_NIMBLE_NETIF
|
||||||
{ "ble", "Manage BLE connections for NimBLE", _nimble_netif_handler },
|
{ "ble", "Manage BLE connections for NimBLE", _nimble_netif_handler },
|
||||||
#endif
|
#endif
|
||||||
#ifdef MODULE_TEST_UTILS_INTERACTIVE_SYNC
|
|
||||||
{ "r", "Test sync, Ready query", _test_ready },
|
|
||||||
{ "s", "Test sync, Start test trigger", _test_start },
|
|
||||||
#endif
|
|
||||||
#ifdef MODULE_SUIT_COAP
|
#ifdef MODULE_SUIT_COAP
|
||||||
{ "suit", "Trigger a SUIT firmware update", _suit_handler },
|
{ "suit", "Trigger a SUIT firmware update", _suit_handler },
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user