mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 17:10:24 +08:00
stmhal: Use stackctrl framework.
This commit is contained in:
parent
23668698cb
commit
7a8ab5a730
@ -40,6 +40,7 @@
|
|||||||
#include "parse.h"
|
#include "parse.h"
|
||||||
#include "obj.h"
|
#include "obj.h"
|
||||||
#include "runtime.h"
|
#include "runtime.h"
|
||||||
|
#include "stackctrl.h"
|
||||||
#include "gc.h"
|
#include "gc.h"
|
||||||
#include "gccollect.h"
|
#include "gccollect.h"
|
||||||
#include "pybstdio.h"
|
#include "pybstdio.h"
|
||||||
@ -186,6 +187,11 @@ static const char fresh_readme_txt[] =
|
|||||||
int main(void) {
|
int main(void) {
|
||||||
// TODO disable JTAG
|
// TODO disable JTAG
|
||||||
|
|
||||||
|
stack_ctrl_init();
|
||||||
|
// Stack limit should be less than real stack size, so we
|
||||||
|
// had chance to recover from limit hit.
|
||||||
|
stack_set_limit(&_ram_end - &_heap_end - 512);
|
||||||
|
|
||||||
/* STM32F4xx HAL library initialization:
|
/* STM32F4xx HAL library initialization:
|
||||||
- Configure the Flash prefetch, instruction and Data caches
|
- Configure the Flash prefetch, instruction and Data caches
|
||||||
- Configure the Systick to generate an interrupt each 1 msec
|
- Configure the Systick to generate an interrupt each 1 msec
|
||||||
|
Loading…
Reference in New Issue
Block a user