Fix errors and some compiler warnings with HAL_STM32 PlatformIO build (#12869)

This commit is contained in:
Karl Andersson
2019-01-11 02:01:31 +01:00
committed by Scott Lahteine
parent e6484d9dab
commit 8ae6f1e556
5 changed files with 14 additions and 16 deletions

View File

@@ -56,7 +56,9 @@
#define NANOSECONDS_PER_CYCLE (1000000000.0 / F_CPU)
// Remove compiler warning on an unused variable
#define UNUSED(x) ((void)(x))
#if !defined(ARDUINO_ARCH_STM32) || defined(STM32GENERIC)
#define UNUSED(x) ((void)(x))
#endif
// Macros to make a string from a macro
#define STRINGIFY_(M) #M