Skip to content

Commit 8afd041

Browse files
authored
Merge pull request #17 from kurisaW/mem-dep
fix heap mem dependence
2 parents 44d75c7 + 651b32d commit 8afd041

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

rt-thread/bsp/_template/cubemx_config/rtconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
// <i>Dynamic Heap Management
107107
#define RT_USING_HEAP
108108
#define RT_USING_SMALL_MEM
109+
#define RT_USING_SMALL_MEM_AS_HEAP
109110
// </c>
110111
// <c1>using tiny size of memory
111112
// <i>using tiny size of memory

rt-thread/bsp/_template/rtconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
// <i>Dynamic Heap Management
107107
#define RT_USING_HEAP
108108
#define RT_USING_SMALL_MEM
109+
#define RT_USING_SMALL_MEM_AS_HEAP
109110
// </c>
110111
// <c1>using tiny size of memory
111112
// <i>using tiny size of memory

rt-thread/libcpu/arm/cortex-m33/cpuport.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry,
196196
* 0: Non-secure.
197197
* 1: Secure.
198198
*/
199-
#ifdef ARCH_ARM_CORTEX_SECURE
200199
stack_frame->lr = 0xfffffffdL;
201-
#else
202-
stack_frame->lr = 0xffffffbcL;
203-
#endif
204200
stack_frame->psplim = 0x00;
205201
/*
206202
* CONTROL register bit assignments

0 commit comments

Comments
 (0)