Skip to content

Commit 65b47da

Browse files
committed
Fix STM32 compatibility
Remove workarounf for va_start and va_end not defined See: stm32duino/Arduino_Core_STM32#240 Fix: stm32duino/Arduino_Core_STM32#253 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 8b52467 commit 65b47da

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/DebugUtil.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
#include "DebugUtil.h"
2+
#include "wiring_private.h"
23

34
#if defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_STM32)
45
extern "C" char* sbrk(int incr);
56
extern char *__brkval;
67
#endif
78

8-
//workaround for va_start & va_end for STM32
9-
#if defined(ARDUINO_ARCH_STM32)
10-
#include <stdarg.h>
11-
#define va_start(v,l) __builtin_va_start(v,l)
12-
#define va_end(v) __builtin_va_end(v)
13-
#endif
14-
159
// DebugUtil unique instance creation
1610
DebugUtil DebugUtil::Debug;
1711
DebugUtil& Debug = DebugUtil::Debug;

0 commit comments

Comments
 (0)