comparison Small_CPU/Inc/i2c.h @ 165:e9cce686fe41

Minor: Some documentation for new hardware
author heinrichsweikamp
date Fri, 08 Mar 2019 10:31:32 +0100
parents 5f11787b4f42
children 9ecc2e60418d
comparison
equal deleted inserted replaced
164:3e3d1ebba956 165:e9cce686fe41
1 /* Define to prevent recursive inclusion -------------------------------------*/ 1 /* Define to prevent recursive inclusion -------------------------------------*/
2 #ifndef I2C_H 2 #ifndef I2C_H
3 #define I2C_H 3 #define I2C_H
4 4
5 /* Drucksensor */ 5 /* Pressure Sensor */
6 #define DEVICE_PRESSURE 0xEE 6 #define DEVICE_PRESSURE 0xEE // 2019 hardware (gen 3) will use 0xEC (MS5837), all other use 0xEE (MS5803)
7 7
8 /* Kompass */ 8 /* Compass/Accelerometer */
9 #define DEVICE_ACCELARATOR_MMA8452Q 0x38 // 0x1C // chip 3 9 #define DEVICE_ACCELARATOR_MMA8452Q 0x38 // Hardware gen 1 (Two chip solution with MMA8452Q and HMC5883L)
10 #define DEVICE_COMPASS_HMC5883L 0x3C //0x1E // chip 4 10 #define DEVICE_COMPASS_HMC5883L 0x3C // Hardware gen 1
11 11
12 //#define DEVICE_ACCELARATOR_303D 0x1E // x0011110 // SA0 to GND 12 #define DEVICE_COMPASS_303D 0x3C // Hardware gen 2 (Single chip solution LSM303D)
13 #define DEVICE_COMPASS_303D 0x3C // 0x1E // x0011110_ // SA0 to GND 13 #define DEVICE_ACCELARATOR_303DLHC 0x32 // Hardware gen 2 (Single chip solution LSM303DLHC)
14 #define DEVICE_ACCELARATOR_303DLHC 0x32 // 0x19 // x0011001_ // SA0 to GND 14 #define DEVICE_COMPASS_303AGR 0x3C // Hardware gen 3 (Single chip solution LSM303AGR)
15 15
16 /* Battery Gas Gauge */ 16 /* Battery Gas Gauge */
17 #define DEVICE_BATTERYGAUGE 0xC8 // 0x64 17 #define DEVICE_BATTERYGAUGE 0xC8 // LTC2941 battery gauge
18 18
19 19
20 /* Includes ------------------------------------------------------------------*/ 20 /* Includes ------------------------------------------------------------------*/
21 #include "stm32f4xx_hal.h" 21 #include "stm32f4xx_hal.h"
22 22