mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 05:42:49 +08:00
[gps_i2c] gps_i2c module rewritten, added ubx ucenter compatibility
This commit is contained in:
@@ -4,18 +4,25 @@
|
||||
<doc>
|
||||
<description>
|
||||
U-blox GPS (I2C)
|
||||
(apparently currently broken)
|
||||
</description>
|
||||
<configure name="GPS_UBX_I2C_DEV" value="i2cX" description="set i2c peripheral (default: i2c0)"/>
|
||||
</doc>
|
||||
|
||||
<header>
|
||||
<file name="gps_i2c.h"/>
|
||||
</header>
|
||||
<init fun="gps_i2c_init()"/>
|
||||
<periodic fun="gps_i2c_periodic()" freq="4." delay="4" autorun="TRUE"/>
|
||||
<event fun="gps_i2cEvent()"/>
|
||||
<makefile target="ap">
|
||||
<init fun="gps_ubx_i2c_init()"/>
|
||||
<periodic fun="gps_ubx_i2c_periodic()" freq="10."/>
|
||||
<event fun="GpsUbxi2cEvent()"/>
|
||||
|
||||
<makefile>
|
||||
<configure name="GPS_UBX_I2C_DEV" default="i2c2" case="upper|lower"/>
|
||||
<define name="USE_$(GPS_UBX_I2C_DEV_UPPER)"/>
|
||||
<define name="GPS_UBX_I2C_DEV" value="$(GPS_UBX_I2C_DEV_LOWER)"/>
|
||||
<define name="GPS_I2C"/>
|
||||
<define name="I2C_BUF_LEN" value="255"/>
|
||||
<file name="gps_i2c.c"/>
|
||||
<define name="GPS_CONFIGURE" />
|
||||
</makefile>
|
||||
|
||||
</module>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user