1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

Merge pull request #20796 from krzysztof-cabaj/examples-leds_shell-fix-segfault

examples/leds_shell: use periph_gpio_mock on native
This commit is contained in:
benpicco 2024-07-26 15:45:07 +00:00 committed by GitHub
commit d2fa0c6ce1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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