Writing Servo pwm

hi guys
I wrote this code for write pwm in aux pin0 but I couldn’t see pwm signal in this pin with oscope.

#ifdef USERHOOK_SUPERSLOWLOOP
uint16_t pwm = 2000;
void userhook_SuperSlowLoop()
{
uint8_t _channel=9;
pwm = 3000 - pwm;
hal.rcout->enable_ch(_channel-1);
hal.rcout->write(_channel-1, pwm);
}
#endif

any idea what i do wrong?
tanks

I’m not sure if that’s enough code to make it work and I’m not the best person to answer it.

But my question would be: you have defined USERHOOK_SUPERSLOWLOOP right?

yes I defined USERHOOK_SUPERSLOWLOOP the loop work correctly