Skip to content

Commit

Permalink
{cpu,drivers}/periph_gpio_ll: add missing include
Browse files Browse the repository at this point in the history
For `gpio_ll_print_conf()` we need to include `<stdio.h>`, when not
using `fmt.h`.
  • Loading branch information
maribu committed Nov 26, 2024
1 parent c672afd commit 2d37db2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
5 changes: 2 additions & 3 deletions cpu/esp32/periph/gpio_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <string.h>

#include "log.h"
#include "irq.h"
#include "periph/gpio_ll.h"

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

#ifdef MODULE_FMT
#include "fmt.h"
# include "fmt.h"
#else
# include <stdio.h>
static inline void print_str(const char *str)
{
fputs(str, stdout);
Expand Down
3 changes: 2 additions & 1 deletion cpu/gd32v/periph/gpio_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
#include "debug.h"

#ifdef MODULE_FMT
#include "fmt.h"
# include "fmt.h"
#else
# include <stdio.h>
static inline void print_str(const char *str)
{
fputs(str, stdout);
Expand Down
3 changes: 2 additions & 1 deletion cpu/nrf5x_common/periph/gpio_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
#include "periph_conf.h"

#ifdef MODULE_FMT
#include "fmt.h"
# include "fmt.h"
#else
# include <stdio.h>
static inline void print_str(const char *str)
{
fputs(str, stdout);
Expand Down
3 changes: 2 additions & 1 deletion cpu/sam0_common/periph/gpio_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@
#include "periph/gpio_ll.h"

#ifdef MODULE_FMT
#include "fmt.h"
# include "fmt.h"
#else
# include <stdio.h>
static inline void print_str(const char *str)
{
fputs(str, stdout);
Expand Down
3 changes: 2 additions & 1 deletion cpu/stm32/periph/gpio_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
#include "periph/gpio_ll.h"

#ifdef MODULE_FMT
#include "fmt.h"
# include "fmt.h"
#else
# include <stdio.h>
static inline void print_str(const char *str)
{
fputs(str, stdout);
Expand Down
5 changes: 2 additions & 3 deletions drivers/periph_common/gpio_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
* directory for more details.
*/

#include <stdio.h>

#include "periph/gpio_ll.h"

/* Optimizing for low stack usage by not using printf(), which on newlib is
Expand All @@ -19,8 +17,9 @@
* printf().
*/
#ifdef MODULE_FMT
#include "fmt.h"
# include "fmt.h"
#else
# include <stdio.h>
static inline void print_str(const char *str)
{
fputs(str, stdout);
Expand Down

0 comments on commit 2d37db2

Please sign in to comment.