Alternative PWM rate

Where can I make changes to the code to achieve higher PWM rates in the 70 - 300Hz range for digital servos and at the same time use 400Hz or OneShot for the ESC, because as soon as 400Hz is set to ESC, the rest is automatically parameterised to 50Hz.