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:
commit
99365873fd
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user