Include libsam headers as external "C"-decl

This commit is contained in:
Cristian Maglie 2011-11-18 11:32:28 +01:00
parent cd94333c41
commit bd9da76fbe
1 changed files with 2 additions and 2 deletions

View File

@ -24,13 +24,13 @@
#include <string.h>
#include <math.h>
#include "libsam/chip.h"
#include "binary.h"
#ifdef __cplusplus
extern "C"{
#endif // __cplusplus
#include "libsam/chip.h"
#include "wiring_constants.h"
#define clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L )
@ -85,7 +85,7 @@ typedef enum _EExt_Interrupts
typedef void (*voidFuncPtr)( void ) ;
/* Define attribute */
#if defined ( __CC_ARM ) /* Keil µVision 4 */
#if defined ( __CC_ARM ) /* Keil <EFBFBD>Vision 4 */
#define WEAK (__attribute__ ((weak)))
#elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
#define WEAK __weak