From f59e910fd20c1ef946ef324f0cdc7f2a546e10a6 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 15 Jun 2022 09:59:29 +0200 Subject: [PATCH] tests/periph_gpio_ll: Account for extra thread needed for ESP32 --- tests/periph_gpio_ll/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/periph_gpio_ll/Makefile b/tests/periph_gpio_ll/Makefile index aa6bb2b182..f106f192f3 100644 --- a/tests/periph_gpio_ll/Makefile +++ b/tests/periph_gpio_ll/Makefile @@ -44,7 +44,13 @@ CFLAGS += -DPIN_IN_0=$(PIN_IN_0) CFLAGS += -DPIN_IN_1=$(PIN_IN_1) CFLAGS += -DPIN_OUT_0=$(PIN_OUT_0) CFLAGS += -DPIN_OUT_1=$(PIN_OUT_1) -# We only need 1 thread (+ the Idle thread on some platforms) and we really want -# this app working on all boards. -CFLAGS += -DMAXTHREADS=2 CFLAGS += -DLOW_ROM=$(LOW_ROM) + +ifneq ($(CPU_FAM),esp32) + # We only need 1 thread (+ the Idle thread on some platforms) and we really + # want this app working on all boards. + CFLAGS += -DMAXTHREADS=2 +else + # ESP32 uses an extra thread for esp_timer + CFLAGS += -DMAXTHREADS=3 +endif