Added temporary definition of P1SEL2 for those mspgcc4 without complete port register definitions.

This commit is contained in:
enricmcalvo 2010-11-14 21:59:02 +00:00
parent 62d7832fff
commit f4c1953563

View File

@ -62,6 +62,12 @@
#define L_ON(x) (LEDS_PxOUT &= ~x) #define L_ON(x) (LEDS_PxOUT &= ~x)
#define L_OFF(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);*/ /* Used in accm_read_axis(), eg accm_read_axis(X_AXIS);*/
enum ADXL345_AXIS { enum ADXL345_AXIS {
X_AXIS = 0, X_AXIS = 0,