Revert "boards: bsim: fix bug with single settings file for few bsim devices"
This reverts commit 4b5cd92312
.
global_device_nbr is used by many bsim tests.
And many of those are now off tree in preparation of the LE-Audio
work. Removing this for cleanliness now is not nice on others.
=> Revert
Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
parent
2b91ebe16e
commit
26d7d7c8c8
7 changed files with 26 additions and 40 deletions
|
@ -226,15 +226,5 @@ void nrfbsim_cleanup_args(void)
|
|||
bs_cleanup_dynargs(&args_struct);
|
||||
}
|
||||
|
||||
char *get_simid(void)
|
||||
{
|
||||
return arg.s_id;
|
||||
}
|
||||
|
||||
unsigned int get_device_nbr(void)
|
||||
{
|
||||
return arg.global_device_nbr;
|
||||
}
|
||||
|
||||
NATIVE_TASK(nrfbsim_register_args, PRE_BOOT_1, 0);
|
||||
NATIVE_TASK(nrfbsim_cleanup_args, ON_EXIT, 10);
|
||||
|
|
|
@ -26,8 +26,6 @@ struct NRF_bsim_args_t {
|
|||
|
||||
struct NRF_bsim_args_t *nrfbsim_argsparse(int argc, char *argv[]);
|
||||
void bs_add_extra_dynargs(bs_args_struct_t *args_struct_toadd);
|
||||
char *get_simid(void);
|
||||
unsigned int get_device_nbr(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -57,6 +57,8 @@ void posix_exit(int exit_code)
|
|||
exit(inner_main_clean_up(exit_code));
|
||||
}
|
||||
|
||||
uint global_device_nbr;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
/*
|
||||
|
@ -77,6 +79,7 @@ int main(int argc, char *argv[])
|
|||
struct NRF_bsim_args_t *args;
|
||||
|
||||
args = nrfbsim_argsparse(argc, argv);
|
||||
global_device_nbr = args->global_device_nbr;
|
||||
|
||||
bs_read_function_names_from_Tsymbols(argv[0]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue