Browse Source
Allow either programatically from the test/code or from the command line to chose if this executable exiting should terminate the whole simulation, or if it should only disconnect the device. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>pull/90168/head
2 changed files with 61 additions and 1 deletions
@ -0,0 +1,22 @@ |
|||||||
|
/*
|
||||||
|
* Copyright (c) 2025 Nordic Semiconductor ASA |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
#ifndef BOARDS_NATIVE_BSIM_COMMON_BSIM_CONTROL_H |
||||||
|
#define BOARDS_NATIVE_BSIM_COMMON_BSIM_CONTROL_H |
||||||
|
|
||||||
|
#include <stdint.h> |
||||||
|
#include "bsim_args_runner.h" |
||||||
|
|
||||||
|
#ifdef __cplusplus |
||||||
|
extern "C" { |
||||||
|
#endif |
||||||
|
|
||||||
|
void bsim_set_terminate_on_exit(bool terminate); |
||||||
|
|
||||||
|
#ifdef __cplusplus |
||||||
|
} |
||||||
|
#endif |
||||||
|
|
||||||
|
#endif /* BOARDS_NATIVE_BSIM_COMMON_BSIM_CONTROL_H */ |
Loading…
Reference in new issue