mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-10 21:24:12 +01:00
Include libsam headers as external "C"-decl
This commit is contained in:
parent
cd94333c41
commit
bd9da76fbe
@ -24,13 +24,13 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "libsam/chip.h"
|
|
||||||
#include "binary.h"
|
#include "binary.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"{
|
extern "C"{
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|
||||||
|
#include "libsam/chip.h"
|
||||||
#include "wiring_constants.h"
|
#include "wiring_constants.h"
|
||||||
|
|
||||||
#define clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L )
|
#define clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L )
|
||||||
@ -85,7 +85,7 @@ typedef enum _EExt_Interrupts
|
|||||||
typedef void (*voidFuncPtr)( void ) ;
|
typedef void (*voidFuncPtr)( void ) ;
|
||||||
|
|
||||||
/* Define attribute */
|
/* Define attribute */
|
||||||
#if defined ( __CC_ARM ) /* Keil µVision 4 */
|
#if defined ( __CC_ARM ) /* Keil <EFBFBD>Vision 4 */
|
||||||
#define WEAK (__attribute__ ((weak)))
|
#define WEAK (__attribute__ ((weak)))
|
||||||
#elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
|
#elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
|
||||||
#define WEAK __weak
|
#define WEAK __weak
|
||||||
|
Loading…
Reference in New Issue
Block a user