mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
494e3f3ad9
When adding a test node to a makefile section, with required compilation flags, include and other options, all the files (not arch dependent files) can be compiled with a TAP compatible program, included in the standard tests of the CI servers. Not all module's XML files are converted, but a large part of the most important parts are already covered. More will be added later. The number of tested airframes (full compilation of all targets) have been reduced to speed the CI compile time but still covers the relevant architecture and boards. The main benefit is that the overall coverage is already better than before as previous test aircraft were compiling more or less the same part of the airborne code, while this new mechanism is more efficient to test modules not included in any config.
32 lines
1.3 KiB
XML
32 lines
1.3 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="baro_bmp3" dir="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>
|
|
<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 arch="test">
|
|
<define name="USE_I2C1"/>
|
|
<define name="BMP3_I2C_DEV" value="i2c1"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|
|
|