You can probably run your ESC using a stepgen. You need to set it to velocity mode to get a fixed-frequency output to suit the ESC then alter the step-length to give the required pulse length.
However: The pulse-length is a HAL _parameter_ not a pin, so can't be directly connected in HAL. You would need to use (as an example) a custom M-code that issues a "halcmd setp hm2_7i92.0.stepgen.04.step-length NNN" command.