Skip to content

Commit 25d2652

Browse files
committed
Merge branch 'master' into matthijskooijman-ide-1.5.x-timer-variant
Conflicts: app/src/processing/app/debug/Compiler.java hardware/arduino/sam/cores/arduino/main.cpp
1 parent efecb0c commit 25d2652

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cores/arduino/main.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,20 @@ extern void SysTick_Handler( void )
3131
}
3232
*/
3333

34+
// Weak empty variant initialization function.
35+
// May be redefined by variant files.
36+
void initVariant() __attribute__((weak));
37+
void initVariant() { }
38+
3439
/*
3540
* \brief Main entry point of Arduino application
3641
*/
3742
int main( void )
3843
{
3944
init();
4045

46+
initVariant();
47+
4148
delay(1);
4249

4350
#if defined(USBCON)

cores/arduino/wiring.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ extern "C" {
2626
/**
2727
*
2828
*/
29+
extern void initVariant( void ) ;
2930
extern void init( void ) ;
3031

3132
/**

0 commit comments

Comments
 (0)