moved io and signal and IAR-GCC checks from driver files into contiki include file
This commit is contained in:
parent
57ae779373
commit
5b1d9617c4
76 changed files with 72 additions and 370 deletions
|
@ -32,6 +32,30 @@
|
|||
#ifndef MSP430DEF_H
|
||||
#define MSP430DEF_H
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__MSPGCC__)
|
||||
#include <msp430.h>
|
||||
#if __MSPGCC__
|
||||
#include <legacymsp430.h>
|
||||
#endif /* __MSPGCC__ */
|
||||
#else
|
||||
#include <io.h>
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
#ifdef __IAR_SYSTEMS_ICC__
|
||||
#include <intrinsics.h>
|
||||
#include <in430.h>
|
||||
#define dint() __disable_interrupt()
|
||||
#define eint() __enable_interrupt()
|
||||
#define __MSP430F1611__ 1
|
||||
#define __MSP430__ 1
|
||||
#define CC_CONF_INLINE
|
||||
#define BV(x) (1 << x)
|
||||
#else
|
||||
#define CC_CONF_INLINE inline
|
||||
#define MSP430_MEMCPY_WORKAROUND 1
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue