From 0dfd83938fa388ed43074b8890f9ba20be386f92 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Sat, 23 Nov 2024 10:49:25 +0100 Subject: [PATCH] {cpu,drivers}/periph_gpio_ll: add missing include For `gpio_ll_print_conf()` we need to include ``, when not using `fmt.h`. --- cpu/esp32/periph/gpio_ll.c | 5 ++--- cpu/gd32v/periph/gpio_ll.c | 3 ++- cpu/nrf5x_common/periph/gpio_ll.c | 3 ++- cpu/sam0_common/periph/gpio_ll.c | 3 ++- cpu/stm32/periph/gpio_ll.c | 3 ++- drivers/periph_common/gpio_ll.c | 5 ++--- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/cpu/esp32/periph/gpio_ll.c b/cpu/esp32/periph/gpio_ll.c index 93146c1d05a1..81a5e22d1fe0 100644 --- a/cpu/esp32/periph/gpio_ll.c +++ b/cpu/esp32/periph/gpio_ll.c @@ -24,9 +24,7 @@ #include #include #include -#include -#include "log.h" #include "irq.h" #include "periph/gpio_ll.h" @@ -39,8 +37,9 @@ #include "esp_idf_api/gpio.h" #ifdef MODULE_FMT -#include "fmt.h" +# include "fmt.h" #else +# include static inline void print_str(const char *str) { fputs(str, stdout); diff --git a/cpu/gd32v/periph/gpio_ll.c b/cpu/gd32v/periph/gpio_ll.c index 8a59b1df64c4..d1d5bf203405 100644 --- a/cpu/gd32v/periph/gpio_ll.c +++ b/cpu/gd32v/periph/gpio_ll.c @@ -28,8 +28,9 @@ #include "debug.h" #ifdef MODULE_FMT -#include "fmt.h" +# include "fmt.h" #else +# include static inline void print_str(const char *str) { fputs(str, stdout); diff --git a/cpu/nrf5x_common/periph/gpio_ll.c b/cpu/nrf5x_common/periph/gpio_ll.c index c556f8ac921b..5035a1a0793c 100644 --- a/cpu/nrf5x_common/periph/gpio_ll.c +++ b/cpu/nrf5x_common/periph/gpio_ll.c @@ -37,8 +37,9 @@ #include "periph_conf.h" #ifdef MODULE_FMT -#include "fmt.h" +# include "fmt.h" #else +# include static inline void print_str(const char *str) { fputs(str, stdout); diff --git a/cpu/sam0_common/periph/gpio_ll.c b/cpu/sam0_common/periph/gpio_ll.c index d375faeda9db..f78d798fc974 100644 --- a/cpu/sam0_common/periph/gpio_ll.c +++ b/cpu/sam0_common/periph/gpio_ll.c @@ -45,8 +45,9 @@ #include "periph/gpio_ll.h" #ifdef MODULE_FMT -#include "fmt.h" +# include "fmt.h" #else +# include static inline void print_str(const char *str) { fputs(str, stdout); diff --git a/cpu/stm32/periph/gpio_ll.c b/cpu/stm32/periph/gpio_ll.c index ae2a8c8413c1..e4561fb813de 100644 --- a/cpu/stm32/periph/gpio_ll.c +++ b/cpu/stm32/periph/gpio_ll.c @@ -34,8 +34,9 @@ #include "periph/gpio_ll.h" #ifdef MODULE_FMT -#include "fmt.h" +# include "fmt.h" #else +# include static inline void print_str(const char *str) { fputs(str, stdout); diff --git a/drivers/periph_common/gpio_ll.c b/drivers/periph_common/gpio_ll.c index 30f3209bf01f..82e2cadeafe4 100644 --- a/drivers/periph_common/gpio_ll.c +++ b/drivers/periph_common/gpio_ll.c @@ -6,8 +6,6 @@ * directory for more details. */ -#include - #include "periph/gpio_ll.h" /* Optimizing for low stack usage by not using printf(), which on newlib is @@ -19,8 +17,9 @@ * printf(). */ #ifdef MODULE_FMT -#include "fmt.h" +# include "fmt.h" #else +# include static inline void print_str(const char *str) { fputs(str, stdout);