libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KL05Z/pwmout_api.c
// Set the PWM period, keeping the duty cycle the same.
Set the PWM period, keeping the duty cycle the same.
Set the PWM period keeping the duty cycle the same .
void pwmout_period_us(pwmout_t* obj, int us) {
    float dc = pwmout_read(obj);
    *obj->MOD = PWM_CLOCK_MHZ * us;
    pwmout_write(obj, dc);
}
void pwmout_period_us ( pwmout_t * obj , int us ) { float dc = pwmout_read ( obj ) ; * obj -> MOD = PWM_CLOCK_MHZ * us ; pwmout_write ( obj , dc ) ; }
Set the PWM period, keeping the duty cycle the same.
Set the PWM period keeping the duty cycle the same .