replaced the TMOTE_SKY macros with CONTIKI_TARGET_SKY, in conformance to the latest target hint rules

This commit is contained in:
zhitao 2008-11-25 09:20:54 +00:00
parent 1389555ad5
commit ae271a7f2f

View File

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* @(#)$Id: ds2411.c,v 1.1 2006/06/17 22:41:16 adamdunkels Exp $ * @(#)$Id: ds2411.c,v 1.2 2008/11/25 09:20:54 zhitao Exp $
*/ */
/* /*
* Device driver for the Dallas Semiconductor DS2411 chip. Heavily * Device driver for the Dallas Semiconductor DS2411 chip. Heavily
@ -59,7 +59,7 @@
unsigned char ds2411_id[8]; unsigned char ds2411_id[8];
#ifdef TMOTE_SKY #ifdef CONTIKI_TARGET_SKY
/* 1-wire is at p2.4 */ /* 1-wire is at p2.4 */
#define PIN BV(4) #define PIN BV(4)
@ -97,7 +97,7 @@ unsigned char ds2411_id[8];
*/ */
#define udelay_6() { _NOP(); _NOP(); _NOP(); _NOP(); _NOP(); } #define udelay_6() { _NOP(); _NOP(); _NOP(); _NOP(); _NOP(); }
#endif /* TMOTE_SKY */ #endif /* CONTIKI_TARGET_SKY */
/* /*
* Recommended delay times in us. * Recommended delay times in us.
@ -213,12 +213,12 @@ ds2411_init()
for (i = 7; i >= 2; i--) for (i = 7; i >= 2; i--)
acc = crc8_add(acc, ds2411_id[i]); acc = crc8_add(acc, ds2411_id[i]);
if (acc == crc) { if (acc == crc) {
#ifdef TMOTE_SKY #ifdef CONTIKI_TARGET_SKY
/* 00:12:75 Moteiv # Moteiv Corporation */ /* 00:12:75 Moteiv # Moteiv Corporation */
ds2411_id[0] = 0x00; ds2411_id[0] = 0x00;
ds2411_id[1] = 0x12; ds2411_id[1] = 0x12;
ds2411_id[2] = 0x75; ds2411_id[2] = 0x75;
#endif /* TMOTE_SKY */ #endif /* CONTIKI_TARGET_SKY */
return 1; /* Success! */ return 1; /* Success! */
} }
} }