HAL_ChibiOS: added skyviper-v2450 hwdef config

This commit is contained in:
Andrew Tridgell 2018-01-14 12:41:04 +11:00
parent c8beddf1e4
commit cde930f5c8
2 changed files with 27 additions and 1 deletions

View File

@ -139,7 +139,6 @@ SPIDEV lsm9ds0_am SPI1 DEVID3 ACCEL_EXT_CS MODE3 11*MHZ 11*MHZ
SPIDEV lsm9ds0_ext_g SPI4 DEVID4 GYRO_EXT_CS MODE3 11*MHZ 11*MHZ
SPIDEV lsm9ds0_ext_am SPI4 DEVID3 ACCEL_EXT_CS MODE3 11*MHZ 11*MHZ
SPIDEV ramtron SPI2 DEVID10 FRAM_CS MODE3 8*MHZ 8*MHZ
SPIDEV cypress SPI4 DEVID11 FRAM_CS MODE0 2*MHZ 2*MHZ
SPIDEV external0m0 SPI4 DEVID5 MPU_EXT_CS MODE0 2*MHZ 2*MHZ
SPIDEV external0m1 SPI4 DEVID5 MPU_EXT_CS MODE1 2*MHZ 2*MHZ
SPIDEV external0m2 SPI4 DEVID5 MPU_EXT_CS MODE2 2*MHZ 2*MHZ

View File

@ -0,0 +1,27 @@
# 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
# enable AP_Radio support
define HAL_RCINPUT_WITH_AP_RADIO 1
define HAL_GPIO_RADIO_RESET 1 // PB0 GPIO from FMU3
define HAL_GPIO_RADIO_IRQ 15 // PD15
# disable FRAM for storage
undef HAL_WITH_RAMTRON
# 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
# disable IOMCU
undef IOMCU_UART
# support cypress and cc2500 radios
SPIDEV cypress SPI2 DEVID11 FRAM_CS MODE0 2*MHZ 2*MHZ
SPIDEV cc2500 SPI2 DEVID12 FRAM_CS MODE0 4*MHZ 4*MHZ