Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 825de7b

Browse files
committed
[bsp] Tweak STM32 config
1 parent c890a47 commit 825de7b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎library.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=RT-Thread
2-
version=0.9.2
2+
version=0.9.3
33
author=onelife <onelife.real@gmail.com>, Bernard Xiong <bernard.xiong@gmail.com>
44
maintainer=onelife <onelife.real@gmail.com>
55
sentence=Real Time Operating System porting for Arduino SAM and SAMD boards

‎src/rtconfig.h‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@
125125
#ifdef ARDUINO_ARCH_STM32
126126
# define CONFIG_NO_ERRNO
127127
# define RT_TICK_PER_SECOND (1000)
128-
# define CONFIG_USING_DRIVER_RTC (1)
128+
# define CONFIG_HEAP_SIZE (60 * 1024)
129+
# define CONFIG_ARDUINO_STACK_SIZE (8 * 512)
130+
# define CONFIG_USING_DRIVER_RTC (1) /* Require STM32duino_RTC library */
129131
#endif /* ARDUINO_ARCH_STM32 */
130132

131133

@@ -158,7 +160,7 @@
158160
#endif
159161

160162
#ifndef CONFIG_HEAP_SIZE
161-
# ifdefARDUINO_ARCH_SAM
163+
#if defined(ARDUINO_ARCH_SAM) || defined(ARDUINO_ARCH_STM32)
162164
# define CONFIG_HEAP_SIZE (40 * 1024)
163165
# else
164166
# define CONFIG_HEAP_SIZE (20 * 1024)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /