Using bmp085 pressure sensor
Using bmp085 pressure sensor
Code taken from my project than you need to set your own variables to store values instead of my extern ones.
This code realize interaction with bmp085 and calculates height from pressure using table function + linear interpolation. If you have lots of flash in your MCU than you can calculate whole table and simply select appropriate value from it. Or you can use floating point math for calculation instead of table function. My variant provide tradeoff between this methods.
In archive you can found simple python script to calculate table. It contain formula that can be used in the second (floating point) way.
Function bmp085_calc() can be easily merged with polling thread.
Enjoy.
This code realize interaction with bmp085 and calculates height from pressure using table function + linear interpolation. If you have lots of flash in your MCU than you can calculate whole table and simply select appropriate value from it. Or you can use floating point math for calculation instead of table function. My variant provide tradeoff between this methods.
In archive you can found simple python script to calculate table. It contain formula that can be used in the second (floating point) way.
Function bmp085_calc() can be easily merged with polling thread.
Enjoy.
- Attachments
-
- bmp085.zip
- (4.41 KiB) Downloaded 1079 times
Re: Using bmp085 pressure sensor
Hm... 4 times downloaded and no one comments. Any questions/suggestions/disparagements?
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Using bmp085 pressure sensor
Hi Barthess,
As explain in a previous post, I have some problems with the EEPROM coeff.
I have tried many different tests (slow down bus, only read one coeff, add delay between read...) and coeff are not at each time the same.
As I don't know the order of magnitude of coeff, it is difficult to identify the problem.
Could you give me your coeff to compare with mine (order of magnitude).
I have tried with my scope to verify the first coeff and it seems OK : EE AA EF then 16 bit coeff
Thanks
As explain in a previous post, I have some problems with the EEPROM coeff.
I have tried many different tests (slow down bus, only read one coeff, add delay between read...) and coeff are not at each time the same.
As I don't know the order of magnitude of coeff, it is difficult to identify the problem.
Could you give me your coeff to compare with mine (order of magnitude).
I have tried with my scope to verify the first coeff and it seems OK : EE AA EF then 16 bit coeff
Thanks
Re: Using bmp085 pressure sensor
I can not provide my coeffs because my hardware now broken. But you can look in bmp085 datasheet on page 13.
Re: Using bmp085 pressure sensor
Hi,
Some comments:
1- To read coeff it's necessary to run twice the init_bmp085(); : may be for synchro problem...
2- To read coeff I change the original code
by this one:
3 - In the pressure calculation I need to cast with long : X2 = ((long)(-7357 * Pressure)) >> 16;
To verify if the code is ok, I recommend to use datasheet coef, UT and UP values, and to verify step by step each result (see datasheet p14).
Cyrille
Some comments:
1- To read coeff it's necessary to run twice the init_bmp085(); : may be for synchro problem...
2- To read coeff I change the original code
Code: Select all
#define read_cal(adr, dest){\
txbuf[0] = adr;\
i2cMasterTransmit(&I2CD_bmp085, &bmp085, bmp085_addr, txbuf, 1, rxbuf, 2);\
dest = (rxbuf[0] << 8) + rxbuf[1];\
}
i2cAcquireBus(&I2CD_bmp085);
read_cal(0xAA, AC1);
read_cal(0xAC, AC2);
read_cal(0xAE, AC3);
read_cal(0xB0, AC4);
read_cal(0xB2, AC5);
read_cal(0xB4, AC6);
read_cal(0xB6, B1);
read_cal(0xB8, B2);
read_cal(0xBA, MB);
read_cal(0xBC, MC);
read_cal(0xBE, MD);
i2cReleaseBus(&I2CD_bmp085);by this one:
Code: Select all
i2cAcquireBus(&I2CD_bmp085);
txbuf[0] = 0xAA;
i2cMasterTransmit(&I2CD_bmp085, &bmp085, bmp085_addr, txbuf, 1, rxbuf, 22);
AC1 = (rxbuf[0] << 8) + rxbuf[1];
AC2 = (rxbuf[2] << 8) + rxbuf[3];
AC3 = (rxbuf[4] << 8) + rxbuf[5];
AC4 = (rxbuf[6] << 8) + rxbuf[7];
AC5 = (rxbuf[8] << 8) + rxbuf[9];
AC6 = (rxbuf[10] << 8) + rxbuf[11];
B1 = (rxbuf[12] << 8) + rxbuf[13];
B2 = (rxbuf[14] << 8) + rxbuf[15];
MB = (rxbuf[16] << 8) + rxbuf[17];
MC = (rxbuf[18] << 8) + rxbuf[19];
MD = (rxbuf[20] << 8) + rxbuf[21];
i2cReleaseBus(&I2CD_bmp085);3 - In the pressure calculation I need to cast with long : X2 = ((long)(-7357 * Pressure)) >> 16;
To verify if the code is ok, I recommend to use datasheet coef, UT and UP values, and to verify step by step each result (see datasheet p14).
Cyrille
Re: Using bmp085 pressure sensor
2 - Hmm... I was sure that sensor allow to read only 2 bytes at one transaction.
I will check my code later. Thanks.
I will check my code later. Thanks.
Re: Using bmp085 pressure sensor
in your bmp085.c
you have a:
#include "message.h"
it was not included in the down load and I ca not find it, even searching on line could you post it also?
Thanks.
Kevin
you have a:
#include "message.h"
it was not included in the down load and I ca not find it, even searching on line could you post it also?
Thanks.
Kevin
Re: Using bmp085 pressure sensor
Hi Kevin,
It contains just a definition of global structure with all measured data. Posted code produces ready to use pressure value, place it in your own place.
It contains just a definition of global structure with all measured data. Posted code produces ready to use pressure value, place it in your own place.
Re: Using bmp085 pressure sensor
Hm, the bmp085 lib doesn't seem to work at all with my STM32F3Discovery. It doesn't even compile:
What happens to be here:
1) Unknown file "message.h". I didn't find it in my ChibiOS/RT source tree;
2) "#include nested too deeply" What the...
3) Some undeclared functions and data types, also some improperly called functions.
What am I doing wrong?
Code: Select all
Compiling bmp085.c
Compiling main.c
In file included from bmp085.h:4:0,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.c:4:
bmp085.h:1:16: error: #include nested too deeply
bmp085.h:2:17: error: #include nested too deeply
bmp085.h:4:20: error: #include nested too deeply
bmp085.h:5:26: error: #include nested too deeply
bmp085.h:6:21: error: #include nested too deeply
bmp085.h:10:1: error: unknown type name 'RawData'
bmp085.h:11:1: error: unknown type name 'LogItem'
bmp085.h:14:1: error: unknown type name 'i2cblock_t'
bmp085.h:14:25: error: 'BMP085_RX_DEPTH' undeclared here (not in a function)
bmp085.h:15:1: error: unknown type name 'i2cblock_t'
bmp085.h:15:25: error: 'BMP085_TX_DEPTH' undeclared here (not in a function)
bmp085.h: In function 'pres_to_height':
bmp085.h:47:13: error: 'BMP085_MAX_PRES' undeclared (first use in this function)
bmp085.h:47:13: note: each undeclared identifier is reported only once for each function it appears in
bmp085.h:48:12: error: 'ptable' undeclared (first use in this function)
bmp085.h:49:14: error: 'BMP085_MIN_PRES' undeclared (first use in this function)
bmp085.h:49:32: error: 'BMP085_STEP' undeclared (first use in this function)
bmp085.h: In function 'bmp085_calc':
bmp085.h:85:12: error: request for member 'temp_bmp085' in something not a structure or union
bmp085.h:109:13: error: request for member 'pressure_static' in something not a structure or union
bmp085.h:114:13: error: request for member 'baro_altitude' in something not a structure or union
bmp085.h: At top level:
bmp085.h:124:1: error: unknown type name 'I2CSlaveConfig'
bmp085.h:130:1: error: unknown type name 'I2CSlaveConfig'
bmp085.h:131:3: warning: initialization makes integer from pointer without a cast [enabled by default]
bmp085.h:131:3: warning: (near initialization for 'bmp085') [enabled by default]
bmp085.h:132:2: warning: excess elements in scalar initializer [enabled by default]
bmp085.h:132:2: warning: (near initialization for 'bmp085') [enabled by default]
bmp085.h: In function 'PollBaroThread':
bmp085.h:151:18: error: 'BOSCH_CTL' undeclared (first use in this function)
bmp085.h:152:18: error: 'BOSCH_TEMP' undeclared (first use in this function)
bmp085.h:154:79: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:154:7: error: 'i2cMasterTransmit' undeclared (first use in this function)
bmp085.h:161:18: error: 'BOSCH_ADC_MSB' undeclared (first use in this function)
bmp085.h:163:79: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:172:77: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:180:16: error: 'BOSCH_ADC_XLSB' undeclared (first use in this function)
bmp085.h:182:77: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:189:77: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h: In function 'init_bmp085':
bmp085.h:210:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:210:3: error: 'i2cMasterTransmit' undeclared (first use in this function)
bmp085.h:211:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:212:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:213:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:214:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:215:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:216:20: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:217:20: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:218:20: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:219:19: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:220:19: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
In file included from bmp085.h:4:0,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.c:4:
bmp085.h: At top level:
bmp085.h:6:21: fatal error: message.h: No such file or directory
compilation terminated.
make: *** [build/obj/bmp085.o] Ошибка 1
make: *** Ожидание Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ð¹...
In file included from bmp085.h:4:0,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from main.c:32:
bmp085.h:1:16: error: #include nested too deeply
bmp085.h:2:17: error: #include nested too deeply
bmp085.h:4:20: error: #include nested too deeply
bmp085.h:5:26: error: #include nested too deeply
bmp085.h:6:21: error: #include nested too deeply
bmp085.h:10:1: error: unknown type name 'RawData'
bmp085.h:11:1: error: unknown type name 'LogItem'
bmp085.h:14:1: error: unknown type name 'i2cblock_t'
bmp085.h:14:25: error: 'BMP085_RX_DEPTH' undeclared here (not in a function)
bmp085.h:15:1: error: unknown type name 'i2cblock_t'
bmp085.h:15:25: error: 'BMP085_TX_DEPTH' undeclared here (not in a function)
bmp085.h: In function 'pres_to_height':
bmp085.h:47:13: error: 'BMP085_MAX_PRES' undeclared (first use in this function)
bmp085.h:47:13: note: each undeclared identifier is reported only once for each function it appears in
bmp085.h:48:12: error: 'ptable' undeclared (first use in this function)
bmp085.h:49:14: error: 'BMP085_MIN_PRES' undeclared (first use in this function)
bmp085.h:49:32: error: 'BMP085_STEP' undeclared (first use in this function)
bmp085.h: In function 'bmp085_calc':
bmp085.h:85:12: error: request for member 'temp_bmp085' in something not a structure or union
bmp085.h:109:13: error: request for member 'pressure_static' in something not a structure or union
bmp085.h:114:13: error: request for member 'baro_altitude' in something not a structure or union
bmp085.h: At top level:
bmp085.h:124:1: error: unknown type name 'I2CSlaveConfig'
bmp085.h:130:1: error: unknown type name 'I2CSlaveConfig'
bmp085.h:131:3: warning: initialization makes integer from pointer without a cast [enabled by default]
bmp085.h:131:3: warning: (near initialization for 'bmp085') [enabled by default]
bmp085.h:132:2: warning: excess elements in scalar initializer [enabled by default]
bmp085.h:132:2: warning: (near initialization for 'bmp085') [enabled by default]
bmp085.h: In function 'PollBaroThread':
bmp085.h:151:18: error: 'BOSCH_CTL' undeclared (first use in this function)
bmp085.h:152:18: error: 'BOSCH_TEMP' undeclared (first use in this function)
bmp085.h:154:79: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:154:7: error: 'i2cMasterTransmit' undeclared (first use in this function)
bmp085.h:161:18: error: 'BOSCH_ADC_MSB' undeclared (first use in this function)
bmp085.h:163:79: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:172:77: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:180:16: error: 'BOSCH_ADC_XLSB' undeclared (first use in this function)
bmp085.h:182:77: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:189:77: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h: In function 'init_bmp085':
bmp085.h:210:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:210:3: error: 'i2cMasterTransmit' undeclared (first use in this function)
bmp085.h:211:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:212:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:213:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:214:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:215:21: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:216:20: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:217:20: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:218:20: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:219:19: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
bmp085.h:220:19: error: macro "i2cMasterTransmit" passed 7 arguments, but takes just 6
In file included from bmp085.h:4:0,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from bmp085.h:4,
from main.c:32:
bmp085.h: At top level:
bmp085.h:6:21: fatal error: message.h: No such file or directory
compilation terminated.
make: *** [build/obj/main.o] Ошибк
What happens to be here:
1) Unknown file "message.h". I didn't find it in my ChibiOS/RT source tree;
2) "#include nested too deeply" What the...
3) Some undeclared functions and data types, also some improperly called functions.
What am I doing wrong?