Skip to content
Snippets Groups Projects
Verified Commit c73f352b authored by rahix's avatar rahix
Browse files

fix(pycardium): Actually enable stack limit


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 2974bf7b
No related branches found
No related tags found
No related merge requests found
...@@ -12,10 +12,8 @@ extern void *__HeapBase, *__HeapLimit; ...@@ -12,10 +12,8 @@ extern void *__HeapBase, *__HeapLimit;
int main(void) int main(void)
{ {
if (0) { mp_stack_set_top(&__StackTop);
mp_stack_set_top(&__StackTop); mp_stack_set_limit((mp_int_t)&__StackLimit);
mp_stack_set_limit((mp_int_t)&__StackLimit);
}
/* TMR5 is used to notify on keyboard interrupt */ /* TMR5 is used to notify on keyboard interrupt */
NVIC_EnableIRQ(TMR5_IRQn); NVIC_EnableIRQ(TMR5_IRQn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment