From 2b86c0e962cff5be18a75f05e79337e3c61a39b9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Feb 2018 22:13:39 +1100 Subject: [PATCH] HAL_ChibiOS: tweak DMA settings for skyviper-v2450 this resolves a problem with the cypress radio. Thanks to Sid for working this out --- .../AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat index 093a3a156a..59660fd25f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat @@ -4,13 +4,15 @@ # start with fmuv3 base port include ../fmuv3/hwdef.dat -# remove some unnecessary features from fmuv3 +# remove some unnecessary features inherited from fmuv3 undef UART8 undef UART8_TX undef UART8_RX undef USART3 undef USART3_TX undef USART3_RX +undef CAN1 +undef CAN2 undef HAL_WITH_UAVCAN undef IOMCU_UART undef AP_FEATURE_SBUS_OUT @@ -18,6 +20,7 @@ undef HAL_OS_FATFS_IO undef AP_FEATURE_RTSCTS undef HAL_WITH_RAMTRON undef IOMCU_UART +undef SDIO UART_ORDER OTG1 UART4 USART2 @@ -37,3 +40,10 @@ define LAND_DETECTOR_ACCEL_MAX 2.0f 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 + +# SPI2 for the cypress needs exclusive access or we will end up with +# lost packets +DMA_PRIORITY SPI2_* +DMA_NOSHARE SPI2_* +undef PA1 +PA1 UART4_RX UART4 NODMA