hwdef.dat 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for TBS Colibri F7 hardware.
  3. # This is a varient of fmuv5 without the IOMCU
  4. include ../fmuv5/hwdef.dat
  5. # we shift the system timer to TIM5 to allow
  6. # us to use TIM2 for extra PWM outputs
  7. STM32_ST_USE_TIMER 5
  8. # enabling PE3 on the Colibri causes it to reset on startup
  9. undef PE3
  10. PE3 VDD_3V3_SENSORS_EN OUTPUT LOW
  11. # order of UARTs (and USB). Telem2 is UART4 on the mini, USART3 is not available
  12. UART_ORDER OTG1 USART1 USART2 UART4 USART6 UART7 OTG2
  13. # enable TX on USART6 (disabled for fmuv5 with iomcu)
  14. PG14 USART6_TX USART6 NODMA
  15. # disable the IOMCU UART
  16. undef IOMCU_UART
  17. undef UART8_TX
  18. undef UART8_RX
  19. undef AP_FEATURE_SBUS_OUT
  20. # SD power is active low on TBS board
  21. undef PG7
  22. undef VDD_3V3_SD_CARD_EN
  23. PG7 nVDD_3V3_SD_CARD_EN OUTPUT HIGH
  24. # allow the first 3 capture ports to be used as PWM outputs or GPIOs
  25. undef PA5
  26. undef PB3
  27. undef PB11
  28. undef FMU_CAP1
  29. undef FMU_CAP2
  30. undef FMU_CAP3
  31. PA5 TIM2_CH1 TIM2 PWM(9) GPIO(58)
  32. PB3 TIM2_CH2 TIM2 PWM(10) GPIO(59)
  33. PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60)
  34. # RCInput on the PPM pin, for all protocols
  35. undef PG9
  36. undef USART6_RX
  37. PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW
  38. # setup for supplied power brick
  39. undef HAL_BATT_VOLT_SCALE
  40. define HAL_BATT_VOLT_SCALE 18.182
  41. undef HAL_BATT_CURR_SCALE
  42. define HAL_BATT_CURR_SCALE 36.364
  43. # setup for IMU heater, with 45C target default
  44. define HAL_HAVE_IMU_HEATER 1
  45. define HAL_IMU_TEMP_DEFAULT 45
  46. # setup safety switch
  47. PE12 LED_SAFETY OUTPUT
  48. PE10 SAFETY_IN INPUT PULLDOWN