We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efecb0c commit 25d2652Copy full SHA for 25d2652
cores/arduino/main.cpp
@@ -31,13 +31,20 @@ extern void SysTick_Handler( void )
31
}
32
*/
33
34
+// Weak empty variant initialization function.
35
+// May be redefined by variant files.
36
+void initVariant() __attribute__((weak));
37
+void initVariant() { }
38
+
39
/*
40
* \brief Main entry point of Arduino application
41
42
int main( void )
43
{
44
init();
45
46
+ initVariant();
47
48
delay(1);
49
50
#if defined(USBCON)
cores/arduino/wiring.h
@@ -26,6 +26,7 @@ extern "C" {
26
/**
27
*
28
29
+extern void initVariant( void ) ;
30
extern void init( void ) ;
0 commit comments