2020-07-30 16:15:27 -03:00
|
|
|
include ../CubeOrange/hwdef.dat
|
|
|
|
|
|
|
|
undef IOMCU_UART
|
|
|
|
undef USART6
|
|
|
|
undef ROMFS
|
|
|
|
undef HAL_HAVE_SAFETY_SWITCH
|
|
|
|
undef HAL_CHIBIOS_ARCH_FMUV3
|
2020-07-14 18:31:14 -03:00
|
|
|
undef BOOTLOADER_DEV_LIST
|
|
|
|
|
2020-07-30 16:15:27 -03:00
|
|
|
# board ID for firmware load
|
|
|
|
APJ_BOARD_ID 1400
|
|
|
|
|
|
|
|
# setup build for a peripheral firmware
|
|
|
|
env AP_PERIPH 1
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-10 20:46:34 -04:00
|
|
|
define AP_CAN_SLCAN_ENABLED 1
|
2021-05-01 01:36:52 -03:00
|
|
|
define HAL_PERIPH_ENABLE_BATTERY
|
2020-07-30 16:15:27 -03:00
|
|
|
define HAL_PERIPH_ENABLE_GPS
|
|
|
|
define HAL_PERIPH_ENABLE_MAG
|
|
|
|
define HAL_PERIPH_ENABLE_BARO
|
2020-11-23 20:38:22 -04:00
|
|
|
define HAL_PERIPH_ENABLE_RC_OUT
|
2020-12-22 04:16:12 -04:00
|
|
|
define HAL_PERIPH_ENABLE_NOTIFY
|
2020-07-30 16:15:27 -03:00
|
|
|
|
2022-12-22 21:27:14 -04:00
|
|
|
define AP_INERTIALSENSOR_ENABLED 1
|
2023-03-16 21:25:48 -03:00
|
|
|
define AP_KDECAN_ENABLED 1
|
2020-07-30 16:15:27 -03:00
|
|
|
|
|
|
|
# single GPS and compass for peripherals
|
|
|
|
define GPS_MAX_RECEIVERS 1
|
|
|
|
define GPS_MAX_INSTANCES 1
|
|
|
|
define HAL_COMPASS_MAX_SENSORS 1
|
|
|
|
|
|
|
|
define HAL_NO_MONITOR_THREAD
|
|
|
|
|
|
|
|
define HAL_USE_RTC FALSE
|
|
|
|
|
|
|
|
define HAL_BARO_ALLOW_INIT_NO_BARO
|
|
|
|
|
|
|
|
|
2023-06-07 02:56:50 -03:00
|
|
|
define AP_SCRIPTING_ENABLED 0
|
2020-07-30 16:15:27 -03:00
|
|
|
|
|
|
|
# use blue LED
|
|
|
|
define HAL_GPIO_PIN_LED HAL_GPIO_PIN_FMU_LED_AMBER
|
|
|
|
|
|
|
|
undef HAL_OS_FATFS_IO
|
|
|
|
|
|
|
|
undef SDMMC1
|
|
|
|
|
|
|
|
MAIN_STACK 0x2000
|
|
|
|
PROCESS_STACK 0x6000
|
|
|
|
|
2020-12-15 21:26:59 -04:00
|
|
|
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
|
|
|
|
|
|
|
|
|