We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea6e7a0 commit 0203e2dCopy full SHA for 0203e2d
cores/arduino/Arduino.h
@@ -40,6 +40,10 @@
40
#ifdef __cplusplus
41
extern "C" {
42
#endif // __cplusplus
43
+// Weak empty variant initialization function.
44
+// May be redefined by variant files.
45
+extern void initVariant() __attribute__((weak));
46
+
47
extern void setup(void) ;
48
extern void loop(void) ;
49
cores/arduino/main.cpp
@@ -20,12 +20,6 @@
20
#define ARDUINO_MAIN
21
#include "Arduino.h"
22
23
-
24
-// Weak empty variant initialization function.
25
-// May be redefined by variant files.
26
-void initVariant() __attribute__((weak));
27
-void initVariant() { }
28
29
// Force init to be called *first*, i.e. before static object allocation.
30
// Otherwise, statically allocated objects that need HAL may fail.
31
__attribute__((constructor(101))) void premain()
0 commit comments