From f4c1953563c2adb0fd9929f0e32ca152cf8d41eb Mon Sep 17 00:00:00 2001 From: enricmcalvo Date: Sun, 14 Nov 2010 21:59:02 +0000 Subject: [PATCH] Added temporary definition of P1SEL2 for those mspgcc4 without complete port register definitions. --- platform/z1/dev/adxl345.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/z1/dev/adxl345.h b/platform/z1/dev/adxl345.h index 3216b3dc9..e9a9021d8 100644 --- a/platform/z1/dev/adxl345.h +++ b/platform/z1/dev/adxl345.h @@ -62,6 +62,12 @@ #define L_ON(x) (LEDS_PxOUT &= ~x) #define L_OFF(x) (LEDS_PxOUT |= x) +//XXX Temporary place for defines that are lacking in mspgcc4's gpio.h +#ifndef P1SEL2_ + #define P1SEL2_ 0x0041 /* Port 1 Selection 2 */ + sfrb(P1SEL2, P1SEL2_); +#endif + /* Used in accm_read_axis(), eg accm_read_axis(X_AXIS);*/ enum ADXL345_AXIS { X_AXIS = 0,