1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

[SAM] Fixing SysTick handler issue

This commit is contained in:
Thibault RICHARD 2012-04-28 19:58:40 +02:00
parent 373c0096c3
commit fc82f1e556
2 changed files with 12 additions and 3 deletions

View File

@ -19,6 +19,15 @@
#define ARDUINO_MAIN #define ARDUINO_MAIN
#include "Arduino.h" #include "Arduino.h"
/*
* Cortex-M3 Systick IT handler
*/
extern void SysTick_Handler( void )
{
// Increment tick count each ms
TimeTick_Increment() ;
}
/* /*
* \brief Main entry point of Arduino application * \brief Main entry point of Arduino application
*/ */

View File

@ -55,13 +55,13 @@ void delayMicroseconds( uint32_t dwUs )
} }
/* /*
* Cortex-M3 Systick IT handler * Cortex-M3 Systick IT handler: MOVED TO MAIN DUE TO WEAK SYMBOL ISSUE NOT RESOLVED
*/ */
extern void SysTick_Handler( void ) /*extern void SysTick_Handler( void )
{ {
// Increment tick count each ms // Increment tick count each ms
TimeTick_Increment() ; TimeTick_Increment() ;
} }*/
#if defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */ #if defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
extern signed int putchar( signed int c ) ; extern signed int putchar( signed int c ) ;