From 9adc7dc49bc870894d6a267808010e0b6294baa9 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 15 Mar 2007 21:59:44 +0000 Subject: [PATCH] Added LPM and IRQ configuration to make Tmote Sky port build with the Contiki build system --- platform/sky/contiki-conf.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/platform/sky/contiki-conf.h b/platform/sky/contiki-conf.h index 7edf6b9a3..6b002c3c4 100644 --- a/platform/sky/contiki-conf.h +++ b/platform/sky/contiki-conf.h @@ -1,9 +1,15 @@ /* -*- C -*- */ -/* @(#)$Id: contiki-conf.h,v 1.6 2007/02/02 13:26:49 bg- Exp $ */ +/* @(#)$Id: contiki-conf.h,v 1.7 2007/03/15 21:59:44 adamdunkels Exp $ */ #ifndef CONTIKI_CONF_H #define CONTIKI_CONF_H +#define LPM_CONF_OFF LPM4_EXIT + +#define IRQ_PORT1 0x01 +#define IRQ_PORT2 0x02 +#define IRQ_ADC 0x03 + #define CCIF #define CLIF @@ -85,7 +91,7 @@ typedef unsigned long off_t; #define SPI_TXBUF U0TXBUF #define SPI_RXBUF U0RXBUF - /* USART0 Tx buffer ready? */ + /* USART0 Tx buffer ready? */ #define SPI_WAITFOREOTx() while ((U0TCTL & TXEPT) == 0) /* USART0 Rx buffer ready? */ #define SPI_WAITFOREORx() while ((IFG1 & URXIFG0) == 0) @@ -133,7 +139,7 @@ typedef unsigned long off_t; #define SFD_IS_1 (!!(P4IN & BV(SFD))) /* The CC2420 reset pin. */ -#define SET_RESET_INACTIVE() ( P4OUT |= BV(RESET_N) ) +#define SET_RESET_INACTIVE() ( P4OUT |= BV(RESET_N) ) #define SET_RESET_ACTIVE() ( P4OUT &= ~BV(RESET_N) ) /* CC2420 voltage regulator enable pin. */