hwdef.dat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # hardware setup for V2450, based around FMUv3 but no IO MCU and
  2. # custom config options for ArduCopter
  3. # start with fmuv3 base port
  4. include ../fmuv3/hwdef.dat
  5. # remove some unnecessary features inherited from fmuv3
  6. undef UART8
  7. undef UART8_TX
  8. undef UART8_RX
  9. undef USART3
  10. undef USART3_TX
  11. undef USART3_RX
  12. undef CAN1
  13. undef CAN1_RX
  14. undef CAN1_TX
  15. undef CAN2
  16. undef CAN2_RX
  17. undef CAN2_TX
  18. undef IOMCU_UART
  19. undef AP_FEATURE_SBUS_OUT
  20. undef HAL_OS_FATFS_IO
  21. undef AP_FEATURE_RTSCTS
  22. undef HAL_WITH_RAMTRON
  23. undef IOMCU_UART
  24. undef SDIO
  25. undef HAL_BOARD_LOG_DIRECTORY
  26. undef HAL_BOARD_TERRAIN_DIRECTORY
  27. UART_ORDER OTG1 UART4 USART2
  28. # enable AP_Radio support
  29. define HAL_RCINPUT_WITH_AP_RADIO 1
  30. define HAL_GPIO_RADIO_RESET 1 // PB0 GPIO from FMU3
  31. # setup for radio IRQ on PD15
  32. undef PD15
  33. PD15 MPU_DRDY INPUT GPIO(100)
  34. define HAL_GPIO_RADIO_IRQ 100
  35. # setup defines for ArduCopter config
  36. define TOY_MODE_ENABLED ENABLED
  37. define ARMING_DELAY_SEC 0
  38. define LAND_START_ALT 700
  39. define LAND_DETECTOR_ACCEL_MAX 2.0f
  40. # support cypress and cc2500 radios
  41. SPIDEV cypress SPI2 DEVID11 FRAM_CS MODE0 2*MHZ 2*MHZ
  42. SPIDEV cc2500 SPI2 DEVID12 FRAM_CS MODE0 4*MHZ 4*MHZ
  43. SPIDEV pixartflow SPI4 DEVID13 MPU_EXT_CS MODE3 2*MHZ 2*MHZ
  44. # SPI2 for the cypress needs exclusive access or we will end up with
  45. # lost packets
  46. DMA_PRIORITY SPI2_*
  47. DMA_NOSHARE SPI2_*
  48. undef PA1
  49. PA1 UART4_RX UART4 NODMA
  50. env DEFAULT_PARAMETERS 'Tools/Frame_params/SkyViper-2450GPS/defaults.parm'
  51. # the web UI uses an abin file for firmware uploads
  52. env BUILD_ABIN True