Skip to content

USB Host + MSC #1196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove debug code
  • Loading branch information
rhapsodyv committed Dec 29, 2020
commit a0c46a2962e632fa29a726c3e0ce5990da00cd46
11 changes: 3 additions & 8 deletions cores/arduino/stm32/usb_host/usbh_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,13 @@ extern "C" {

/* DEBUG macros */

extern void spi_debug(const char *msg, ...);

#if (USBH_DEBUG_LEVEL > 0U)
#define USBH_UsrLog(...) do { \
printf(__VA_ARGS__); \
printf("\n"); \
} while (0)
#else
#define USBH_UsrLog(MSG, ...) spi_debug(MSG __VA_OPT__(,) __VA_ARGS__);
//do {} while (0)
#define USBH_UsrLog(MSG, ...) do {} while (0)
#endif

#if (USBH_DEBUG_LEVEL > 1U)
Expand All @@ -160,8 +157,7 @@ extern void spi_debug(const char *msg, ...);
printf("\n"); \
} while (0)
#else
#define USBH_ErrLog(MSG, ...) spi_debug(MSG __VA_OPT__(,) __VA_ARGS__);
//do {} while (0)
#define USBH_ErrLog(MSG, ...) do {} while (0)
#endif

#if (USBH_DEBUG_LEVEL > 2U)
Expand All @@ -171,8 +167,7 @@ extern void spi_debug(const char *msg, ...);
printf("\n"); \
} while (0)
#else
#define USBH_DbgLog(MSG, ...) spi_debug(MSG __VA_OPT__(,) __VA_ARGS__);
//do {} while (0)
#define USBH_DbgLog(MSG, ...) do {} while (0)
#endif

/**
Expand Down