mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/msp430_common: use malloc_thread_safe
This should fix concurrent dynamic memory allocation.
This commit is contained in:
parent
44c4f1e307
commit
dfb67cef91
@ -13,6 +13,7 @@ config CPU_ARCH_MSP430
|
||||
select HAS_PERIPH_FLASHPAGE
|
||||
select HAS_PERIPH_FLASHPAGE_PAGEWISE
|
||||
select HAS_PERIPH_PM
|
||||
select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG
|
||||
|
||||
config CPU_CORE_MSP430
|
||||
bool
|
||||
|
@ -6,3 +6,6 @@ DEFAULT_MODULE += newlib
|
||||
ifneq (,$(filter newlib,$(USEMODULE)))
|
||||
USEMODULE += newlib_nano
|
||||
endif
|
||||
|
||||
# Make calls to malloc and friends thread-safe
|
||||
USEMODULE += malloc_thread_safe
|
||||
|
Loading…
Reference in New Issue
Block a user