Interface code for Gyro with TI CC2540