mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-21 20:04:09 +08:00
6de702a144
* Enables MPU6500 with MPU60x0 spi driver, adds hmc59xx and enables BMP280 SPI and I2C --------- Co-authored-by: Florian Sansou <florian.sansou@enac.fr>
35 lines
1.3 KiB
XML
35 lines
1.3 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="baro_bmp3" dir="sensors" task="sensors">
|
|
<doc>
|
|
<description>
|
|
Bosch-Sensortech BMP3xx pressure sensor
|
|
</description>
|
|
<configure name="BMP3_I2C_DEV" value="i2cX" description="select which i2c peripheral to use (default i2c1)"/>
|
|
<define name="BMP3_SLAVE_ADDR" value="BMP3_I2C_ADDR|BMP3_I2C_ADDR_ALT" description="i2c slave address (default BMP3_I2C_ADDR)"/>
|
|
<define name="BMP3_SYNC_SEND" description="flag to transmit the data as it is acquired"/>
|
|
<define name="BMP3_COMPENSATION" value="BMP3_SINGLE_PRECISION_COMPENSATION" description="select precision for compensation (single precision, double precision, or integer)"/>
|
|
</doc>
|
|
<dep>
|
|
<depends>i2c</depends>
|
|
<provides>baro</provides>
|
|
</dep>
|
|
<header>
|
|
<file name="baro_bmp3.h"/>
|
|
</header>
|
|
<init fun="baro_bmp3_init()"/>
|
|
<periodic fun="baro_bmp3_periodic()" freq="50"/>
|
|
<event fun="baro_bmp3_event()"/>
|
|
<makefile target="ap">
|
|
<configure name="BMP3_I2C_DEV" default="i2c1" case="upper|lower"/>
|
|
<define name="USE_$(BMP3_I2C_DEV_UPPER)"/>
|
|
<define name="BMP3_I2C_DEV" value="$(BMP3_I2C_DEV_LOWER)"/>
|
|
<file name="baro_bmp3.c"/>
|
|
<file name="bmp3_i2c.c" dir="peripherals"/>
|
|
<test>
|
|
<define name="USE_I2C1"/>
|
|
<define name="BMP3_I2C_DEV" value="i2c1"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|