P5OUT|=SS;
P5DIR|=MOSI+SCK+SS;
P5DIR&=~MISO;
+
+ //Begin a new transaction.
+ P5OUT&=~SS;
+ P5OUT|=SS;
}
//! Read and write an SPI bit.
spitrans8(0x01);//SET STATUS
spitrans8(c);
P5OUT|=SS; //Raise !SS to end transaction.
- return c;
+ //return c;
}
//! Handles a monitor command.