1 /*
2  * Copyright (c) 2022 grandcentrix GmbH
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #define STACK_SIZE 2048
8 
9 #if defined(CONFIG_USERSPACE)
10 #include <zephyr/app_memory/app_memdomain.h>
11 extern struct k_mem_partition app_partition;
12 extern struct k_mem_domain app_domain;
13 #define APP_BMEM K_APP_BMEM(app_partition)
14 #define APP_DMEM K_APP_DMEM(app_partition)
15 #else
16 #define APP_BMEM
17 #define APP_DMEM
18 #endif
19 
20 #if defined(CONFIG_NET_TC_THREAD_COOPERATIVE)
21 #define THREAD_PRIORITY K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1)
22 #else
23 #define THREAD_PRIORITY K_PRIO_PREEMPT(8)
24 #endif
25 
26 void start_thread(void);
27