Skip to content

Commit 0dfd839

Browse files
committed
{cpu,drivers}/periph_gpio_ll: add missing include
For `gpio_ll_print_conf()` we need to include `<stdio.h>`, when not using `fmt.h`.
1 parent 6f3f425 commit 0dfd839

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

cpu/esp32/periph/gpio_ll.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
#include <assert.h>
2525
#include <errno.h>
2626
#include <stdbool.h>
27-
#include <string.h>
2827

29-
#include "log.h"
3028
#include "irq.h"
3129
#include "periph/gpio_ll.h"
3230

@@ -39,8 +37,9 @@
3937
#include "esp_idf_api/gpio.h"
4038

4139
#ifdef MODULE_FMT
42-
#include "fmt.h"
40+
# include "fmt.h"
4341
#else
42+
# include <stdio.h>
4443
static inline void print_str(const char *str)
4544
{
4645
fputs(str, stdout);

cpu/gd32v/periph/gpio_ll.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
#include "debug.h"
2929

3030
#ifdef MODULE_FMT
31-
#include "fmt.h"
31+
# include "fmt.h"
3232
#else
33+
# include <stdio.h>
3334
static inline void print_str(const char *str)
3435
{
3536
fputs(str, stdout);

cpu/nrf5x_common/periph/gpio_ll.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
#include "periph_conf.h"
3838

3939
#ifdef MODULE_FMT
40-
#include "fmt.h"
40+
# include "fmt.h"
4141
#else
42+
# include <stdio.h>
4243
static inline void print_str(const char *str)
4344
{
4445
fputs(str, stdout);

cpu/sam0_common/periph/gpio_ll.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@
4545
#include "periph/gpio_ll.h"
4646

4747
#ifdef MODULE_FMT
48-
#include "fmt.h"
48+
# include "fmt.h"
4949
#else
50+
# include <stdio.h>
5051
static inline void print_str(const char *str)
5152
{
5253
fputs(str, stdout);

cpu/stm32/periph/gpio_ll.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
#include "periph/gpio_ll.h"
3535

3636
#ifdef MODULE_FMT
37-
#include "fmt.h"
37+
# include "fmt.h"
3838
#else
39+
# include <stdio.h>
3940
static inline void print_str(const char *str)
4041
{
4142
fputs(str, stdout);

drivers/periph_common/gpio_ll.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* directory for more details.
77
*/
88

9-
#include <stdio.h>
10-
119
#include "periph/gpio_ll.h"
1210

1311
/* Optimizing for low stack usage by not using printf(), which on newlib is
@@ -19,8 +17,9 @@
1917
* printf().
2018
*/
2119
#ifdef MODULE_FMT
22-
#include "fmt.h"
20+
# include "fmt.h"
2321
#else
22+
# include <stdio.h>
2423
static inline void print_str(const char *str)
2524
{
2625
fputs(str, stdout);

0 commit comments

Comments
 (0)