fix pico_set_printf_implementation(TARGET compiler) (#593)

This commit is contained in:
Graham Sanderson 2021-10-12 09:08:15 -05:00 committed by GitHub
parent d50e743e0e
commit a0d4bdf731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -20,7 +20,13 @@
#include "pico/mutex.h" #include "pico/mutex.h"
#include "pico/time.h" #include "pico/time.h"
#if LIB_PICO_PRINTF_PICO
#include "pico/printf.h" #include "pico/printf.h"
#else
#define weak_raw_printf printf
#define weak_raw_vprintf vprintf
#endif
#if PICO_ENTER_USB_BOOT_ON_EXIT #if PICO_ENTER_USB_BOOT_ON_EXIT
#include "pico/bootrom.h" #include "pico/bootrom.h"

View File

@ -10,7 +10,9 @@
#include "pico.h" #include "pico.h"
#include "pico/mutex.h" #include "pico/mutex.h"
#if LIB_PICO_PRINTF_PICO
#include "pico/printf.h" #include "pico/printf.h"
#endif
#include "pico/stdio.h" #include "pico/stdio.h"
#include "pico/stdio/driver.h" #include "pico/stdio/driver.h"
#include "pico/time.h" #include "pico/time.h"