Skip to content

Commit e846a18

Browse files
stephanosiocarlescufi
authored andcommitted
tests: benchmarks: footprint: Migrate to K_THREAD_STACK_DECLARE
This commit updates all deprecated `K_THREAD_STACK_EXTERN` macro usages to use the `K_THREAD_STACK_DECLARE` macro instead. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent d6de29c commit e846a18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/benchmarks/footprints/src/footprint.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
#include <zephyr/kernel.h>
1111
#include <zephyr/app_memory/app_memdomain.h>
1212

13-
K_THREAD_STACK_EXTERN(my_stack_area);
14-
K_THREAD_STACK_EXTERN(my_stack_area_0);
13+
#define STACK_SIZE 512
14+
15+
K_THREAD_STACK_DECLARE(my_stack_area, STACK_SIZE);
16+
K_THREAD_STACK_DECLARE(my_stack_area_0, STACK_SIZE);
1517
extern struct k_thread my_thread;
1618
extern struct k_thread my_thread_0;
1719

18-
#define STACK_SIZE 512
19-
2020
#ifdef CONFIG_USERSPACE
2121
#define FP_DMEM K_APP_DMEM(footprint_mem_partition)
2222
#define FP_BMEM K_APP_BMEM(footprint_mem_partition)

0 commit comments

Comments
 (0)