Rev 2108 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2108 | Rev 2133 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | // Start the read-data loop. |
7 | // Start the read-data loop. |
8 | #define TWI_STATE_LOOP_0 5 |
8 | #define TWI_STATE_LOOP_0 5 |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 10... | Line 10... | ||
10 | #define SCL_CLOCK 400000L |
10 | #define SCL_CLOCK 400000L |
11 | 11 | ||
12 | // This is for the IMU3200 sensor. |
12 | // This is for the ITG3200 sensor. |
Line 13... | Line 13... | ||
13 | #define SLA 0b1101001 |
13 | #define SLA 0b1101001 |
14 | #define TWSR_FILTER (TWSR & 0b11111100) |
14 | #define TWSR_FILTER (TWSR & 0b11111100) |
Line 26... | Line 26... | ||
26 | #define MR_DATA_NACK 0x58 |
26 | #define MR_DATA_NACK 0x58 |
Line 27... | Line 27... | ||
27 | 27 | ||
28 | /* |
28 | /* |
29 | * We take the temperature measurement as well as gyro. |
29 | * We take the temperature measurement as well as gyro. |
30 | */ |
30 | */ |
Line -... | Line 31... | ||
- | 31 | extern volatile int16_t ITG3200SensorInputs[4]; |
|
31 | extern volatile uint16_t IMU3200SensorInputs[4]; |
32 | |
32 | - | ||
33 | void twimaster_setNeutral(void); |
33 | void twimaster_init(void); |
Line 34... | Line 34... | ||
34 | 34 | void twimaster_setNeutral(void); |