Files
paparazzi/conf/modules/imu_apogee.xml
T
Gautier Hattenberger 494e3f3ad9 [tests] add a compilation test node to modules (#2653)
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.
2021-02-08 17:24:19 +01:00

39 lines
1.1 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="imu_apogee" dir="imu">
<doc>
<description>
Driver for IMU on Apogee board.
- Accelerometer/Gyroscope: MPU60x0 via I2C1
</description>
</doc>
<autoload name="imu_common"/>
<autoload name="imu_nps"/>
<header>
<file name="imu_apogee.h" dir="boards/apogee"/>
</header>
<init fun="imu_apogee_init()"/>
<periodic fun="imu_apogee_periodic()"/>
<event fun="imu_apogee_event()"/>
<makefile target="!sim|nps|fbw">
<!-- MPU is on I2C1 on Apogee -->
<define name="IMU_APOGEE_I2C_DEV" value="i2c1"/>
<define name="USE_I2C1"/>
<define name="IMU_TYPE_H" value="boards/apogee/imu_apogee.h" type="string"/>
<file name="mpu60x0.c" dir="peripherals"/>
<file name="mpu60x0_i2c.c" dir="peripherals"/>
<file name="imu_apogee.c" dir="boards/apogee"/>
<test>
<define name="USE_I2C1"/>
<define name="IMU_APOGEE_I2C_DEV" value="i2c1"/>
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/>
<define name="DOWNLINK_DEVICE" value="uart0"/>
<define name="USE_UART0"/>
</test>
</makefile>
</module>