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 50bc786 commit c5e9cfdCopy full SHA for c5e9cfd
cores/arduino/main.cpp
@@ -1,5 +1,5 @@
1
/*
2
- Copyright (c) 2014 Arduino. All right reserved.
+ Copyright (c) 2015 Arduino LLC. All right reserved.
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
@@ -19,13 +19,20 @@
19
#define ARDUINO_MAIN
20
#include "Arduino.h"
21
22
+// Weak empty variant initialization function.
23
+// May be redefined by variant files.
24
+void initVariant() __attribute__((weak));
25
+void initVariant() { }
26
+
27
28
* \brief Main entry point of Arduino application
29
*/
30
int main( void )
31
{
32
init();
33
34
+ initVariant();
35
36
delay(1);
37
#if defined(USBCON)
38
USBDevice.init();
0 commit comments