shell: Add dedicated section for shell instances
Addded dedicated section for shell instances. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
b6372ea406
commit
8a63c9c8c8
2 changed files with 8 additions and 1 deletions
|
@ -629,7 +629,7 @@ extern void shell_print_stream(const void *user_ctx, const char *data,
|
|||
SHELL_STATS_DEFINE(_name); \
|
||||
static K_THREAD_STACK_DEFINE(_name##_stack, CONFIG_SHELL_STACK_SIZE); \
|
||||
static struct k_thread _name##_thread; \
|
||||
static const struct shell _name = { \
|
||||
static const Z_STRUCT_SECTION_ITERABLE(shell, _name) = { \
|
||||
.default_prompt = _prompt, \
|
||||
.iface = _transport_iface, \
|
||||
.ctx = &UTIL_CAT(_name, _ctx), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue