diff options
Diffstat (limited to 'app/platform/stm32f0-gcc/startup/stack.cpp')
-rw-r--r-- | app/platform/stm32f0-gcc/startup/stack.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/platform/stm32f0-gcc/startup/stack.cpp b/app/platform/stm32f0-gcc/startup/stack.cpp new file mode 100644 index 0000000..d10595c --- /dev/null +++ b/app/platform/stm32f0-gcc/startup/stack.cpp @@ -0,0 +1,7 @@ +// stack definition code + +// top of stack +extern unsigned __stacktop; + +// initial stack pointer is first address of program +__attribute__((section(".stack"), used)) unsigned *__stack_init = &__stacktop; |