From 6c59ef668fea220f3070293974e7fdf8f78a9f8b Mon Sep 17 00:00:00 2001 From: joxe Date: Tue, 10 Oct 2006 21:33:26 +0000 Subject: [PATCH] added SELECT_IO and SELECT_PM macros --- cpu/msp430/dev/hwconf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu/msp430/dev/hwconf.h b/cpu/msp430/dev/hwconf.h index 8272984b1..7f280155a 100644 --- a/cpu/msp430/dev/hwconf.h +++ b/cpu/msp430/dev/hwconf.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: hwconf.h,v 1.1 2006/06/17 22:41:21 adamdunkels Exp $ + * @(#)$Id: hwconf.h,v 1.2 2006/10/10 21:33:26 joxe Exp $ */ #ifndef __HWCONF_H__ #define __HWCONF_H__ @@ -39,6 +39,8 @@ #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);} \ +static CC_INLINE void name##_SELECT_PM() {P##port##SEL |= 1 << bit;} \ static CC_INLINE void name##_SET() {P##port##OUT |= 1 << bit;} \ static CC_INLINE void name##_CLEAR() {P##port##OUT &= ~(1 << bit);} \ static CC_INLINE int name##_READ() {return (P##port##IN & (1 << bit));} \