File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 40
40
#ifdef __cplusplus
41
41
extern "C" {
42
42
#endif // __cplusplus
43
+ // Weak empty variant initialization function.
44
+ // May be redefined by variant files.
45
+ extern void initVariant () __attribute__((weak ));
46
+
43
47
extern void setup (void ) ;
44
48
extern void loop (void ) ;
45
49
Original file line number Diff line number Diff line change 20
20
#define ARDUINO_MAIN
21
21
#include " Arduino.h"
22
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
23
// Force init to be called *first*, i.e. before static object allocation.
30
24
// Otherwise, statically allocated objects that need HAL may fail.
31
25
__attribute__ ((constructor(101 ))) void premain()
You can’t perform that action at this time.
0 commit comments