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 4040#ifdef __cplusplus
4141extern "C" {
4242#endif // __cplusplus
43+ // Weak empty variant initialization function.
44+ // May be redefined by variant files.
45+ extern void initVariant () __attribute__((weak ));
46+
4347extern void setup (void ) ;
4448extern void loop (void ) ;
4549
Original file line number Diff line number Diff line change 2020#define ARDUINO_MAIN
2121#include " Arduino.h"
2222
23-
24- // Weak empty variant initialization function.
25- // May be redefined by variant files.
26- void initVariant () __attribute__((weak));
27- void initVariant () { }
28-
2923// Force init to be called *first*, i.e. before static object allocation.
3024// Otherwise, statically allocated objects that need HAL may fail.
3125__attribute__ ((constructor(101 ))) void premain()
You can’t perform that action at this time.
0 commit comments