From bd9da76fbef27ec151b4b796c3fe11896e98b533 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 18 Nov 2011 11:32:28 +0100 Subject: [PATCH] Include libsam headers as external "C"-decl --- hardware/sam/cores/sam/Arduino.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/sam/cores/sam/Arduino.h b/hardware/sam/cores/sam/Arduino.h index 0d0c34a91..c65d7bfa5 100644 --- a/hardware/sam/cores/sam/Arduino.h +++ b/hardware/sam/cores/sam/Arduino.h @@ -24,13 +24,13 @@ #include #include -#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 �Vision 4 */ #define WEAK (__attribute__ ((weak))) #elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */ #define WEAK __weak