Rev 489 | Rev 591 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 489 | Rev 584 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | #include "i2c.h" |
5 | #include "i2c.h" |
Line 6... | Line 6... | ||
6 | 6 | ||
7 | #define NCMAG_PORT_EXTERN I2C0 |
7 | #define NCMAG_PORT_EXTERN I2C0 |
Line -... | Line 8... | ||
- | 8 | #define NCMAG_PORT_INTERN I2C1 |
|
- | 9 | ||
- | 10 | // supported magnetic sensor types |
|
- | 11 | #define TYPE_NONE 0 |
|
- | 12 | #define TYPE_HMC5843 1 |
|
- | 13 | #define TYPE_LSM303DLH 2 |
|
8 | #define NCMAG_PORT_INTERN I2C1 |
14 | #define TYPE_LSM303DLM 3 |
9 | 15 | ||
10 | extern u8 NCMAG_Present; |
16 | extern u8 NCMAG_Present; |
- | 17 | extern u8 NCMAG_IsCalibrated; |
|
Line 11... | Line 18... | ||
11 | extern u8 NCMAG_IsCalibrated; |
18 | extern u8 NCMAG_Orientation; |
12 | extern u8 NCMAG_Orientation; |
19 | extern u8 NCMAG_SensorType; |
13 | 20 | ||
14 | u8 NCMAG_Init(void); |
21 | u8 NCMAG_Init(void); |