1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

Merge pull request #14355 from kaspar030/develhelp_stack_guard

cpu/cortexm_common: use mpu stack guard if DEVELHELP is enabled
This commit is contained in:
Koen Zandberg 2020-08-18 14:32:22 +02:00 committed by GitHub
commit 99365873fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -18,3 +18,8 @@ FEATURES_OPTIONAL += cortexm_fpu
ifneq (,$(filter cortexm_fpu,$(FEATURES_USED)))
DEFAULT_MODULE += cortexm_fpu
endif
# Enable the MPU stack guard if develhelp is enabled
ifeq (1, $(DEVELHELP))
FEATURES_OPTIONAL += cortexm_mpu
endif

View File

@ -33,3 +33,8 @@ USEMODULE += $(filter cortexm_svc, $(FEATURES_USED))
ifeq (, $(filter no_idle_thread, $(FEATURES_USED)))
USEMODULE += core_idle_thread
endif
# use mpu_stack_guard if the feature is used
ifneq (,$(filter cortexm_mpu,$(FEATURES_USED)))
USEMODULE += mpu_stack_guard
endif