File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,17 @@ extern size_t __malloc_margin;
40
40
#if !defined(RAMEND)
41
41
#define RAMEND 0x20088000
42
42
#endif
43
+
43
44
#elif defined(ARDUINO_ARCH_SAMD)
44
45
#if !defined(RAMEND)
45
46
#define RAMEND 0x20008000
46
47
#endif
48
+
49
+ #elif defined(ARDUINO_ARCH_STM32F1)
50
+ #if !defined(RAMEND)
51
+ #define RAMEND 0x20005000
52
+ #endif
53
+
47
54
#endif
48
55
49
56
// Stack magic pattern
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ class SchedulerClass {
127
127
#else
128
128
static const size_t DEFAULT_MAIN_STACK_SIZE = 256 ;
129
129
#endif
130
+
130
131
#elif defined(ARDUINO_ARCH_SAM)
131
132
/* * Default stack size and stack max. */
132
133
static const size_t DEFAULT_STACK_SIZE = 1024 ;
@@ -139,6 +140,12 @@ class SchedulerClass {
139
140
static const size_t DEFAULT_MAIN_STACK_SIZE = 2048 ;
140
141
static const size_t STACK_MAX = 16384 ;
141
142
143
+ #elif defined(ARDUINO_ARCH_STM32F1)
144
+ /* * Default stack size and stack max. */
145
+ static const size_t DEFAULT_STACK_SIZE = 1024 ;
146
+ static const size_t DEFAULT_MAIN_STACK_SIZE = 2048 ;
147
+ static const size_t STACK_MAX = 16384 ;
148
+
142
149
#else
143
150
#error "Scheduler.h: Arduino board not supported"
144
151
#endif
You can’t perform that action at this time.
0 commit comments