moved io and signal and IAR-GCC checks from driver files into contiki include file

This commit is contained in:
Joakim Eriksson 2011-09-26 10:38:41 +02:00
parent 57ae779373
commit 5b1d9617c4
76 changed files with 72 additions and 370 deletions

View file

@ -32,18 +32,9 @@
*/
#ifndef __HWCONF_H__
#define __HWCONF_H__
#include "contiki.h"
#include "sys/cc.h"
#ifdef __GNUC__
#include <io.h>
#include <signal.h>
#endif
#ifdef __IAR_SYSTEMS_ICC__
#include <msp430.h>
#endif
#define HWCONF_PIN(name, port, bit) \
static CC_INLINE void name##_SELECT() {P##port##SEL &= ~(1 << bit);} \
static CC_INLINE void name##_SELECT_IO() {P##port##SEL &= ~(1 << bit);} \