Omnibus f4 add extra motor pin

PB9 is idle on the controller. Can we do this pin to motor output? Also, PB6 output is avaible.

I need 8 motor outputs for gimbal control.( 6motor + 2 gimbal control).

PB6 to PWM7
PB9 to PWM8

is it possible to do that? can someone compile for me?

Thanks.

According to libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat it’s already there:

#pwm output. 1 - 4 on main header, 5 & 6 on separated header w/o 5V supply, 7 & 8 on CH5 and CH6 pads
PB0 TIM1_CH2N TIM1 PWM(1) GPIO(50)
PB1 TIM1_CH3N TIM1 PWM(2) GPIO(51)
PA3 TIM2_CH4  TIM2 PWM(3) GPIO(52)
PA2 TIM2_CH3  TIM2 PWM(4) GPIO(53)
PA1 TIM2_CH2  TIM2 PWM(5) GPIO(54)
PA8 TIM1_CH1  TIM1 PWM(6) GPIO(55)
PC8 TIM8_CH3  TIM8 PWM(7) GPIO(56)
PC9 TIM8_CH4  TIM8 PWM(8) GPIO(59)

pro version has 8 pwm output. but non pro version has 6.