Skip to content

Commit a0d4bdf

Browse files
authored
fix pico_set_printf_implementation(TARGET compiler) (#593)
1 parent d50e743 commit a0d4bdf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/rp2_common/pico_runtime/runtime.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@
2020

2121
#include "pico/mutex.h"
2222
#include "pico/time.h"
23+
24+
#if LIB_PICO_PRINTF_PICO
2325
#include "pico/printf.h"
26+
#else
27+
#define weak_raw_printf printf
28+
#define weak_raw_vprintf vprintf
29+
#endif
2430

2531
#if PICO_ENTER_USB_BOOT_ON_EXIT
2632
#include "pico/bootrom.h"

src/rp2_common/pico_stdio/stdio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
#include "pico.h"
1212
#include "pico/mutex.h"
13+
#if LIB_PICO_PRINTF_PICO
1314
#include "pico/printf.h"
15+
#endif
1416
#include "pico/stdio.h"
1517
#include "pico/stdio/driver.h"
1618
#include "pico/time.h"

0 commit comments

Comments
 (0)