2020-12-29 00:20:29 -04:00
|
|
|
include ../MatekH743/hwdef.dat
|
|
|
|
|
|
|
|
undef ROMFS
|
|
|
|
undef HAL_HAVE_SAFETY_SWITCH
|
|
|
|
undef IMU
|
|
|
|
undef BOOTLOADER_DEV_LIST
|
|
|
|
undef HAL_OS_FATFS_IO
|
|
|
|
undef OSD_ENABLED
|
|
|
|
undef SDMMC1
|
|
|
|
|
|
|
|
# board ID for firmware load
|
|
|
|
APJ_BOARD_ID 1013
|
|
|
|
|
|
|
|
# setup build for a peripheral firmware
|
|
|
|
env AP_PERIPH 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define HAL_PERIPH_ENABLE_GPS
|
|
|
|
define HAL_PERIPH_ENABLE_MAG
|
|
|
|
define HAL_PERIPH_ENABLE_BARO
|
|
|
|
define HAL_PERIPH_ENABLE_AIRSPEED
|
|
|
|
define HAL_PERIPH_ENABLE_ADSB
|
|
|
|
define HAL_PERIPH_ENABLE_RANGEFINDER
|
|
|
|
define HAL_PERIPH_ENABLE_RC_OUT
|
|
|
|
define HAL_PERIPH_ENABLE_BATTERY
|
|
|
|
|
|
|
|
|
|
|
|
# single GPS, compass and RF for peripherals
|
|
|
|
define GPS_MAX_RECEIVERS 1
|
|
|
|
define GPS_MAX_INSTANCES 1
|
|
|
|
define HAL_COMPASS_MAX_SENSORS 1
|
|
|
|
|
|
|
|
# set up for sensors
|
|
|
|
define HAL_BARO_ALLOW_INIT_NO_BARO
|
|
|
|
define HAL_AIRSPEED_BUS_DEFAULT 0
|
|
|
|
define AIRSPEED_MAX_SENSORS 1
|
|
|
|
|
|
|
|
define HAL_PERIPH_ADSB_PORT_DEFAULT 3
|
|
|
|
# default ADSB off by setting 0 baudrate
|
|
|
|
define HAL_PERIPH_ADSB_BAUD_DEFAULT 0
|
|
|
|
|
|
|
|
define HAL_USE_RTC FALSE
|
|
|
|
|
2023-06-07 02:56:50 -03:00
|
|
|
define AP_SCRIPTING_ENABLED 0
|
2020-12-29 00:20:29 -04:00
|
|
|
|
|
|
|
MAIN_STACK 0x2000
|
|
|
|
PROCESS_STACK 0x6000
|
|
|
|
|
|
|
|
define HAL_CAN_DRIVER_DEFAULT 1
|
|
|
|
|
|
|
|
# listen for reboot command from uploader.py script
|
|
|
|
# undefine to disable. Use -1 to allow on all ports, otherwise serial number index defined in SERIAL_ORDER starting at 0
|
|
|
|
define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0
|
2022-11-08 01:10:57 -04:00
|
|
|
|
|
|
|
# setup for MSP
|
|
|
|
define HAL_MSP_ENABLED 1
|
2023-08-10 05:56:59 -03:00
|
|
|
|
|
|
|
# bootloader embedding / bootloader flashing not available
|
|
|
|
define AP_BOOTLOADER_FLASHING_ENABLED 0
|
2024-03-31 21:00:58 -03:00
|
|
|
|
|
|
|
define HAL_SERIAL_ESC_COMM_ENABLED 1
|