Mercurial > public > ostc4
comparison Small_CPU/Inc/i2c.h @ 356:cb3870f79e9d
Add Support for new end-2019 hardware:
new pressure sensor MS5837 support with autodetect in pressure.c
define the sensors in i2c.h
minor typo fixed in scheduler.c
advance version number and update release date in baseCPU2.c
Beware: Messing up the I2C function may require factory maintance in gen 1 and gen 2 hardware!
author | heinrichsweikamp |
---|---|
date | Sat, 23 Nov 2019 15:36:38 +0100 |
parents | 9ecc2e60418d |
children | c3d511365552 |
comparison
equal
deleted
inserted
replaced
355:afa55a50cc72 | 356:cb3870f79e9d |
---|---|
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 /* Pressure Sensor */ | 5 /* Pressure Sensor */ |
6 #define DEVICE_PRESSURE 0xEE // 2019 hardware (gen 3) will use 0xEC (MS5837), all other use 0xEE (MS5803) | 6 #define DEVICE_PRESSURE_MS5803 0xEE // gen 1 and gen 2 use 0xEE (MS5803) |
7 #define DEVICE_PRESSURE_MS5837 0xEC // end-2019 hardware (gen 3) uses 0xEC (MS5837) | |
7 | 8 |
8 /* Compass/Accelerometer */ | 9 /* Compass/Accelerometer */ |
9 #define DEVICE_ACCELARATOR_MMA8452Q 0x38 // Hardware gen 1 (Two chip solution with MMA8452Q and HMC5883L) | 10 #define DEVICE_ACCELARATOR_MMA8452Q 0x38 // Hardware gen 1 (Two chip solution with MMA8452Q and HMC5883L) |
10 #define DEVICE_COMPASS_HMC5883L 0x3C // Hardware gen 1 | 11 #define DEVICE_COMPASS_HMC5883L 0x3C // Hardware gen 1 |
11 | 12 |