2022-04-12 22:54:22 -03:00
|
|
|
# Revo-mini target with I2C and SD card support
|
2022-02-22 10:23:50 -04:00
|
|
|
|
|
|
|
AUTOBUILD_TARGETS
|
|
|
|
|
|
|
|
include ../revo-mini-i2c/hwdef.dat
|
|
|
|
|
|
|
|
PA0 UART4_TX UART4 ALT(6)
|
|
|
|
PA1 UART4_RX UART4 ALT(6)
|
|
|
|
|
|
|
|
PA15 SDCARD_CS CS
|
|
|
|
|
|
|
|
SPIDEV sdcard SPI3 DEVID2 SDCARD_CS MODE0 400*KHZ 25*MHZ
|
|
|
|
|
|
|
|
# disable logging to dataflash
|
|
|
|
undef HAL_LOGGING_DATAFLASH_ENABLED
|
|
|
|
|
|
|
|
# filesystem setup on sdcard
|
|
|
|
define HAL_OS_FATFS_IO 1
|
|
|
|
define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"
|
|
|
|
define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
|
|
|
|
|
2022-06-28 14:00:17 -03:00
|
|
|
# disable SMBUS monitors to save flash
|
2023-03-06 22:02:49 -04:00
|
|
|
define AP_BATTERY_SMBUS_ENABLED 0
|
2022-02-22 10:23:50 -04:00
|
|
|
|
|
|
|
# disable parachute and sprayer to save flash
|
|
|
|
define HAL_PARACHUTE_ENABLED 0
|
|
|
|
define HAL_SPRAYER_ENABLED 0
|
|
|
|
|
|
|
|
# reduce max size of embedded params for apj_tool.py
|
|
|
|
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
|
2022-06-27 04:07:48 -03:00
|
|
|
define HAL_GYROFFT_ENABLED 0
|
2022-02-22 10:23:50 -04:00
|
|
|
|
|
|
|
# save some flash
|
2022-10-25 02:17:01 -03:00
|
|
|
include ../include/save_some_flash.inc
|
|
|
|
|
2022-09-20 04:37:47 -03:00
|
|
|
define AP_GRIPPER_ENABLED 0
|