mirror of https://github.com/rusefi/rusefi.git
f407-discovery: can have one of three possible MEMs accels
This commit is contained in:
parent
11c0b96c7d
commit
5d88ede22e
|
@ -59,5 +59,17 @@ ifndef IS_RE_BOOTLOADER
|
|||
DDEFS += -DHAL_USE_EEPROM=TRUE
|
||||
endif
|
||||
|
||||
# DDEFS += -DEFI_ONBOARD_MEMS=TRUE
|
||||
# todo re-enable lis302dl.mk
|
||||
# This board has some Accelerometer onboard
|
||||
DDEFS += -DEFI_ONBOARD_MEMS=TRUE
|
||||
|
||||
# Original STM32F4DISCOVERY has LIS302DL
|
||||
EFI_ONBOARD_MEMS_LIS302DL = yes
|
||||
DDEFS += -DLIS302DL_USE_SPI=TRUE -DLIS302DL_USE_I2C=FALSE -DLIS302DL_SHARED_SPI=TRUE
|
||||
|
||||
# Later versions of STM32F4DISCOVERY has LIS3DSH
|
||||
EFI_ONBOARD_MEMS_LIS3DSH = yes
|
||||
DDEFS += -DLIS3DSH_USE_SPI=TRUE -DLIS3DSH_USE_I2C=FASLE -DLIS3DSH_SHARED_SPI=TRUE
|
||||
|
||||
# And some custom board have LIS2DW12TR
|
||||
EFI_ONBOARD_MEMS_LIS2DW12 = yes
|
||||
DDEFS += -DLIS2DW12_USE_SPI=TRUE -DLIS2DW12_SHARED_SPI=TRUE
|
||||
|
|
|
@ -9,3 +9,5 @@
|
|||
#define ts_show_output_diag true
|
||||
#define ts_show_vr_threshold_all true
|
||||
#define ts_show_vr_threshold_2 true
|
||||
|
||||
#define ts_show_onboard_accelerometer true
|
||||
|
|
Loading…
Reference in New Issue