hwdef.dat 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for CUAVv5Nano 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. # start with PE3 low
  9. undef PE3
  10. PE3 VDD_3V3_SENSORS_EN OUTPUT LOW
  11. # order of UARTs (and USB).
  12. UART_ORDER OTG1 USART1 USART2 USART3 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. # allow the first 3 capture ports to be used as PWM outputs or GPIOs
  21. undef PA5
  22. undef PB3
  23. undef PB11
  24. undef FMU_CAP1
  25. undef FMU_CAP2
  26. undef FMU_CAP3
  27. PA5 TIM2_CH1 TIM2 PWM(9) GPIO(58)
  28. PB3 TIM2_CH2 TIM2 PWM(10) GPIO(59)
  29. PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60)
  30. undef BOARD_PWM_COUNT_DEFAULT
  31. define BOARD_PWM_COUNT_DEFAULT 11
  32. # RCInput on the PPM pin, for all protocols
  33. undef PG9
  34. undef USART6_RX
  35. PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW
  36. # setup for supplied power brick
  37. undef HAL_BATT_VOLT_SCALE
  38. define HAL_BATT_VOLT_SCALE 18.182
  39. undef HAL_BATT_CURR_SCALE
  40. define HAL_BATT_CURR_SCALE 36.364
  41. # setup safety switch
  42. PE12 LED_SAFETY OUTPUT
  43. PE10 SAFETY_IN INPUT PULLDOWN
  44. # extra LEDs, active low, used using the pixracer LED scheme
  45. # must be opendrain as supply for LEDs is 5V
  46. PH10 LED_R1 OUTPUT OPENDRAIN HIGH GPIO(0)
  47. PH11 LED_G1 OUTPUT OPENDRAIN HIGH GPIO(1)
  48. PH12 LED_B1 OUTPUT OPENDRAIN HIGH GPIO(2)
  49. undef HAL_GPIO_A_LED_PIN
  50. undef HAL_GPIO_B_LED_PIN
  51. define HAL_GPIO_A_LED_PIN 0
  52. define HAL_GPIO_B_LED_PIN 1
  53. define HAL_GPIO_C_LED_PIN 2
  54. define HAL_GPIO_LED_ON 0
  55. define HAL_GPIO_LED_OFF 1
  56. define HAL_HAVE_PIXRACER_LED