mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:53:33 +08:00
Merge branch 'master' into px4io-i2c
This commit is contained in:
@@ -79,7 +79,7 @@ LDSCRIPT = ld.script
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
# Windows-native toolchains
|
||||
DIRLINK = $(TOPDIR)/tools/winlink.sh
|
||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||
@@ -88,7 +88,7 @@ ifeq ($(WINTOOL),y)
|
||||
else
|
||||
ifeq ($(PX4_WINTOOL),y)
|
||||
# Windows-native toolchains (MSYS)
|
||||
DIRLINK = $(TOPDIR)/tools/winlink.sh
|
||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||
|
||||
@@ -348,14 +348,8 @@ CONFIG_CAN_LOOPBACK=n
|
||||
CONFIG_CAN1_BAUD=700000
|
||||
CONFIG_CAN2_BAUD=700000
|
||||
|
||||
#
|
||||
# I2C configuration
|
||||
#
|
||||
CONFIG_I2C=y
|
||||
#CONFIG_I2C_POLLED=y
|
||||
CONFIG_I2C_TRANSFER=y
|
||||
CONFIG_I2C_TRACE=n
|
||||
CONFIG_I2C_RESET=y
|
||||
|
||||
# XXX remove after integration testing
|
||||
# Allow 180 us per byte, a wide margin for the 400 KHz clock we're using
|
||||
# e.g. 9.6 ms for an EEPROM page write, 0.9 ms for a MAG update
|
||||
CONFIG_STM32_I2CTIMEOUS_PER_BYTE=200
|
||||
@@ -364,6 +358,42 @@ CONFIG_STM32_I2CTIMEOUS_START_STOP=700
|
||||
# XXX this is bad and we want it gone
|
||||
CONFIG_I2C_WRITEREAD=y
|
||||
|
||||
#
|
||||
# I2C configuration
|
||||
#
|
||||
CONFIG_I2C=y
|
||||
CONFIG_I2C_POLLED=y
|
||||
CONFIG_I2C_TRANSFER=y
|
||||
CONFIG_I2C_TRACE=n
|
||||
CONFIG_I2C_RESET=y
|
||||
|
||||
|
||||
|
||||
# XXX re-enable after integration testing
|
||||
|
||||
#
|
||||
# I2C configuration
|
||||
#
|
||||
#CONFIG_I2C=y
|
||||
#CONFIG_I2C_POLLED=y
|
||||
#CONFIG_I2C_TRANSFER=y
|
||||
#CONFIG_I2C_TRACE=n
|
||||
#CONFIG_I2C_RESET=y
|
||||
|
||||
# Dynamic timeout
|
||||
#CONFIG_STM32_I2C_DYNTIMEO=y
|
||||
#CONFIG_STM32_I2C_DYNTIMEO_STARTSTOP=500
|
||||
#CONFIG_STM32_I2C_DYNTIMEO_USECPERBYTE=200
|
||||
|
||||
# Fixed per-transaction timeout
|
||||
#CONFIG_STM32_I2CTIMEOSEC=0
|
||||
#CONFIG_STM32_I2CTIMEOMS=10
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# General build options
|
||||
#
|
||||
|
||||
@@ -72,7 +72,7 @@ LDSCRIPT = ld.script
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
# Windows-native toolchains
|
||||
DIRLINK = $(TOPDIR)/tools/winlink.sh
|
||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||
@@ -81,7 +81,7 @@ ifeq ($(WINTOOL),y)
|
||||
else
|
||||
ifeq ($(PX4_WINTOOL),y)
|
||||
# Windows-native toolchains (MSYS)
|
||||
DIRLINK = $(TOPDIR)/tools/winlink.sh
|
||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||
|
||||
Reference in New Issue
Block a user