hwdef.dat 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for Holybro PH4-mini 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. # order of UARTs (and USB). Telem2 is UART4 on the mini, USART3 is not available
  9. UART_ORDER OTG1 USART1 USART2 UART4 USART6 UART7 OTG2
  10. # enable TX on USART6 (disabled for fmuv5 with iomcu)
  11. PG14 USART6_TX USART6 NODMA
  12. # disable the IOMCU UART
  13. undef IOMCU_UART
  14. undef UART8_TX
  15. undef UART8_RX
  16. undef AP_FEATURE_SBUS_OUT
  17. # allow the first 3 capture ports to be used as PWM outputs or GPIOs
  18. undef PA5
  19. undef PB3
  20. undef PB11
  21. undef FMU_CAP1
  22. undef FMU_CAP2
  23. undef FMU_CAP3
  24. PA5 TIM2_CH1 TIM2 PWM(9) GPIO(58)
  25. PB3 TIM2_CH2 TIM2 PWM(10) GPIO(59)
  26. PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60)
  27. # RCInput on the PPM pin, for all protocols
  28. PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW
  29. # setup for supplied power brick
  30. undef HAL_BATT_VOLT_SCALE
  31. define HAL_BATT_VOLT_SCALE 18.182
  32. undef HAL_BATT_CURR_SCALE
  33. define HAL_BATT_CURR_SCALE 36.364
  34. # setup safety switch
  35. PE12 LED_SAFETY OUTPUT
  36. PE10 SAFETY_IN INPUT PULLDOWN