2018-01-13 21:41:04 -04:00
|
|
|
# hardware setup for V2450, based around FMUv3 but no IO MCU and
|
|
|
|
# custom config options for ArduCopter
|
|
|
|
|
|
|
|
# start with fmuv3 base port
|
|
|
|
include ../fmuv3/hwdef.dat
|
|
|
|
|
2018-02-08 07:13:39 -04:00
|
|
|
# remove some unnecessary features inherited from fmuv3
|
2018-02-08 01:18:11 -04:00
|
|
|
undef UART8
|
|
|
|
undef UART8_TX
|
|
|
|
undef UART8_RX
|
|
|
|
undef USART3
|
|
|
|
undef USART3_TX
|
|
|
|
undef USART3_RX
|
2018-02-08 07:13:39 -04:00
|
|
|
undef CAN1
|
2018-03-01 02:38:10 -04:00
|
|
|
undef CAN1_RX
|
|
|
|
undef CAN1_TX
|
2018-02-08 07:13:39 -04:00
|
|
|
undef CAN2
|
2018-03-01 02:38:10 -04:00
|
|
|
undef CAN2_RX
|
|
|
|
undef CAN2_TX
|
2018-02-08 01:18:11 -04:00
|
|
|
undef IOMCU_UART
|
|
|
|
undef AP_FEATURE_SBUS_OUT
|
|
|
|
undef HAL_OS_FATFS_IO
|
|
|
|
undef AP_FEATURE_RTSCTS
|
|
|
|
undef HAL_WITH_RAMTRON
|
|
|
|
undef IOMCU_UART
|
2018-02-08 07:13:39 -04:00
|
|
|
undef SDIO
|
2018-02-13 16:35:09 -04:00
|
|
|
undef HAL_BOARD_LOG_DIRECTORY
|
|
|
|
undef HAL_BOARD_TERRAIN_DIRECTORY
|
2018-02-08 01:18:11 -04:00
|
|
|
|
2020-04-24 08:10:08 -03:00
|
|
|
SERIAL_ORDER OTG1 USART2 EMPTY UART4
|
2018-02-08 01:18:11 -04:00
|
|
|
|
2018-01-13 21:41:04 -04:00
|
|
|
# enable AP_Radio support
|
|
|
|
define HAL_RCINPUT_WITH_AP_RADIO 1
|
|
|
|
|
|
|
|
define HAL_GPIO_RADIO_RESET 1 // PB0 GPIO from FMU3
|
2018-03-16 18:49:40 -03:00
|
|
|
|
|
|
|
# setup for radio IRQ on PD15
|
|
|
|
undef PD15
|
|
|
|
PD15 MPU_DRDY INPUT GPIO(100)
|
|
|
|
define HAL_GPIO_RADIO_IRQ 100
|
2018-01-13 21:41:04 -04:00
|
|
|
|
|
|
|
# setup defines for ArduCopter config
|
|
|
|
define TOY_MODE_ENABLED ENABLED
|
|
|
|
define ARMING_DELAY_SEC 0
|
|
|
|
define LAND_START_ALT 700
|
|
|
|
define LAND_DETECTOR_ACCEL_MAX 2.0f
|
|
|
|
|
|
|
|
# support cypress and cc2500 radios
|
2018-01-18 03:18:48 -04:00
|
|
|
SPIDEV cypress SPI2 DEVID11 FRAM_CS MODE0 2*MHZ 2*MHZ
|
|
|
|
SPIDEV cc2500 SPI2 DEVID12 FRAM_CS MODE0 4*MHZ 4*MHZ
|
|
|
|
SPIDEV pixartflow SPI4 DEVID13 MPU_EXT_CS MODE3 2*MHZ 2*MHZ
|
2018-02-08 07:13:39 -04:00
|
|
|
|
|
|
|
# SPI2 for the cypress needs exclusive access or we will end up with
|
|
|
|
# lost packets
|
2019-12-29 03:57:57 -04:00
|
|
|
DMA_PRIORITY SPI2_* SPI* ADC*
|
2018-02-08 07:13:39 -04:00
|
|
|
DMA_NOSHARE SPI2_*
|
|
|
|
undef PA1
|
|
|
|
PA1 UART4_RX UART4 NODMA
|
2018-03-01 02:51:39 -04:00
|
|
|
|
2020-03-10 23:52:59 -03:00
|
|
|
# use flash storage
|
|
|
|
define STORAGE_FLASH_PAGE 22
|
|
|
|
|
2018-03-24 02:12:10 -03:00
|
|
|
env DEFAULT_PARAMETERS 'Tools/Frame_params/SkyViper-2450GPS/defaults.parm'
|
2018-04-10 19:06:27 -03:00
|
|
|
|
|
|
|
# the web UI uses an abin file for firmware uploads
|
|
|
|
env BUILD_ABIN True
|
2021-04-19 14:09:02 -03:00
|
|
|
|
|
|
|
# Disable un-needed hardware drivers
|
|
|
|
define HAL_WITH_ESC_TELEM 0
|