diff --git a/examples/leds_shell/Makefile b/examples/leds_shell/Makefile index 64ee5ebc12..70b9ef2400 100644 --- a/examples/leds_shell/Makefile +++ b/examples/leds_shell/Makefile @@ -19,4 +19,10 @@ QUIET ?= 1 USEMODULE += shell USEMODULE += periph_gpio +# Prevents native and native64 program from segfault when gpio set/clear are +# used without a gpiochip +ifneq (,$(filter native native64,$(BOARD))) + USEMODULE += periph_gpio_mock +endif + include $(RIOTBASE)/Makefile.include