mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-29 02:38:07 +08:00
[chibios] Add STM32H7 (#2859)
* [chibios] Add STM32H7 * [chibios] Update to latest version * [chibios] Cleanup board configuration * [chibios] Cleanup peripheral drivers * [chibios] Fix bootloader interrupt vector done inside ChibiOS * [sdlogger] Enable RTC by default * [chibios] Fix DMA buffers SPI/I2C * [formatting] Fix formatting/styling of files * [chibios] Change PWM configuration (small fixes i2c and makefile) * [chibios] Generic board files * [boards] Fix apogee board * [conf] Cleanup airframes and remove Navstik board
This commit is contained in:
@@ -17,16 +17,8 @@
|
||||
<raw>
|
||||
ifeq ($(USE_BARO_BOARD), TRUE)
|
||||
|
||||
# Navstik baro
|
||||
ifeq ($(BOARD), navstik)
|
||||
BARO_BOARD_CFLAGS += -DUSE_I2C3
|
||||
BARO_BOARD_CFLAGS += -DBARO_BOARD=BARO_BOARD_BMP085
|
||||
BARO_BOARD_SRCS += peripherals/bmp085.c
|
||||
BARO_BOARD_SRCS += $(SRC_BOARD)/baro_board.c
|
||||
|
||||
|
||||
# Lisa/M baro
|
||||
else ifeq ($(BOARD), lisa_m)
|
||||
ifeq ($(BOARD), lisa_m)
|
||||
ifeq ($(BOARD_VERSION), 1.0)
|
||||
# on lisa_m_1.0: defaults to i2c baro bmp085 on the board
|
||||
LISA_M_BARO ?= BARO_BOARD_BMP085
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE module SYSTEM "../module.dtd">
|
||||
|
||||
<module name="cube_orange" dir="boards">
|
||||
<doc>
|
||||
<description>
|
||||
Specific configuration for Cube Orange with ChibiOS
|
||||
</description>
|
||||
</doc>
|
||||
<dep>
|
||||
<depends>spi_master,baro_ms5611_spi</depends>
|
||||
</dep>
|
||||
<makefile target="!sim|nps|fbw">
|
||||
<configure name="SDLOG_USE_RTC" value="FALSE"/>
|
||||
<configure name="MS5611_SPI_DEV" value="spi1"/> <!-- spi4 -->
|
||||
<configure name="MS5611_SLAVE_IDX" value="SPI_SLAVE6"/> <!-- SPI_SLAVE4 -->
|
||||
</makefile>
|
||||
</module>
|
||||
@@ -1,14 +0,0 @@
|
||||
<!DOCTYPE module SYSTEM "../module.dtd">
|
||||
|
||||
<module name="navstik_1.0" dir="boards">
|
||||
<doc>
|
||||
<description>
|
||||
Specific configuration for Navstik 1.0
|
||||
</description>
|
||||
</doc>
|
||||
<dep>
|
||||
<depends>i2c,baro_board</depends>
|
||||
</dep>
|
||||
<makefile target="!sim|nps|fbw"/>
|
||||
</module>
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
<dep>
|
||||
<depends>spi_master,baro_board</depends>
|
||||
</dep>
|
||||
<makefile target="!sim|nps|fbw"/>
|
||||
<makefile target="!sim|nps|fbw">
|
||||
<configure name="SDLOG_USE_RTC" value="FALSE"/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
<!DOCTYPE module SYSTEM "module.dtd">
|
||||
|
||||
<module name="imu_navstik" dir="imu" task="sensors">
|
||||
<doc>
|
||||
<description>
|
||||
Navstik IMU: MPU60x0 and HMC5883 via I2C.
|
||||
</description>
|
||||
<configure name="NAVSTIK_MAG_I2C_DEV" value="i2c3" description="I2C device to use for MAG"/>
|
||||
<configure name="NAVSTIK_MPU_I2C_DEV" value="i2c1" description="I2C device to use for MPU"/>
|
||||
<section name="IMU" prefix="IMU_">
|
||||
<define name="MAG_X_NEUTRAL" value="2358"/>
|
||||
<define name="MAG_Y_NEUTRAL" value="2362"/>
|
||||
<define name="MAG_Z_NEUTRAL" value="2119"/>
|
||||
|
||||
<define name="MAG_X_SENS" value="3.4936416" integer="16"/>
|
||||
<define name="MAG_Y_SENS" value="3.607713" integer="16"/>
|
||||
<define name="MAG_Z_SENS" value="4.90788848" integer="16"/>
|
||||
</section>
|
||||
</doc>
|
||||
<dep>
|
||||
<depends>i2c,imu_common</depends>
|
||||
<provides>imu,mag</provides>
|
||||
</dep>
|
||||
<autoload name="imu_nps"/>
|
||||
<autoload name="imu_sim"/>
|
||||
<header>
|
||||
<file name="imu_navstik.h"/>
|
||||
</header>
|
||||
<init fun="imu_navstik_init()"/>
|
||||
<periodic fun="imu_navstik_periodic()"/>
|
||||
<event fun="imu_navstik_event()"/>
|
||||
<makefile target="!sim|nps|fbw">
|
||||
<configure name="NAVSTIK_MAG_I2C_DEV" default="i2c3" case="lower|upper"/>
|
||||
<define name="NAVSTIK_MAG_I2C_DEV" value="$(NAVSTIK_MAG_I2C_DEV_LOWER)"/>
|
||||
<define name="USE_$(NAVSTIK_MAG_I2C_DEV_UPPER)"/>
|
||||
<configure name="NAVSTIK_MPU_I2C_DEV" default="i2c1" case="lower|upper"/>
|
||||
<define name="NAVSTIK_MPU_I2C_DEV" value="$(NAVSTIK_MPU_I2C_DEV_LOWER)"/>
|
||||
<define name="USE_$(NAVSTIK_MPU_I2C_DEV_UPPER)"/>
|
||||
|
||||
<define name="IMU_TYPE_H" value="modules/imu/imu_navstik.h" type="string"/>
|
||||
|
||||
<file name="mpu60x0.c" dir="peripherals"/>
|
||||
<file name="mpu60x0_i2c.c" dir="peripherals"/>
|
||||
<file name="hmc58xx.c" dir="peripherals"/>
|
||||
<file name="imu_navstik.c"/>
|
||||
</makefile>
|
||||
</module>
|
||||
Reference in New Issue
Block a user