diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2017-09-05 14:34:25 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2017-09-05 14:34:25 +0900 |
commit | af5982507f5f6831b202d1014138a92b8a243183 (patch) | |
tree | 7b8e6ad6008d5a93783fe7b27e10dd9afe4a9788 /example-cdc/stack-def.h | |
parent | a1b993c2e24d2e94fe5284cdbfec712b6d358785 (diff) |
Define threads stack size by stack-def.h.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'example-cdc/stack-def.h')
-rw-r--r-- | example-cdc/stack-def.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/example-cdc/stack-def.h b/example-cdc/stack-def.h new file mode 100644 index 0000000..cc7babb --- /dev/null +++ b/example-cdc/stack-def.h @@ -0,0 +1,24 @@ +#if defined(STACK_MAIN) +/* Idle+Exception handlers */ +char __main_stack_end__[0] __attribute__ ((section(".main_stack"))); +char main_base[0x0100] __attribute__ ((section(".main_stack"))); + +/* Main program */ +char __process0_stack_end__[0] __attribute__ ((section(".process_stack.0"))); +char process0_base[0x0400] __attribute__ ((section(".process_stack.0"))); +#endif + +/* First thread program */ +#if defined(STACK_PROCESS_1) +char process1_base[0x0200] __attribute__ ((section(".process_stack.1"))); +#endif + +/* Second thread program */ +#if defined(STACK_PROCESS_2) +char process2_base[0x0200] __attribute__ ((section(".process_stack.2"))); +#endif + +/* Third thread program */ +#if defined(STACK_PROCESS_3) +char process3_base[0x0200] __attribute__ ((section(".process_stack.3"))); +#endif |