Searched refs:num_ticks (Results 1 - 2 of 2) sorted by relevance

/seL4-refos-master/projects/util_libs/libplatsupport/src/plat/hifive/
H A Dpwm.c64 size_t num_ticks = ns / (NS_IN_S / PWM_INPUT_FREQ); local
65 if (num_ticks > MAX_TIMEOUT_NS) {
76 size_t prescale = num_ticks >> (PWMCMP_WIDTH);
86 pwm->pwm_map->pwmcmp0 = (num_ticks >> base_2) +1;
88 assert((num_ticks >> base_2) +1);
117 uint64_t num_ticks = (pwm->time_h * (PWMCMP_MASK << PWMSCALE_MASK) + pwm->pwm_map->pwmcount); local
118 uint64_t time = num_ticks * (NS_IN_S / PWM_INPUT_FREQ);
/seL4-refos-master/libs/libplatsupport/src/plat/hifive/
H A Dpwm.c64 size_t num_ticks = ns / (NS_IN_S / PWM_INPUT_FREQ); local
65 if (num_ticks > MAX_TIMEOUT_NS) {
76 size_t prescale = num_ticks >> (PWMCMP_WIDTH);
86 pwm->pwm_map->pwmcmp0 = (num_ticks >> base_2) +1;
88 assert((num_ticks >> base_2) +1);
117 uint64_t num_ticks = (pwm->time_h * (PWMCMP_MASK << PWMSCALE_MASK) + pwm->pwm_map->pwmcount); local
118 uint64_t time = num_ticks * (NS_IN_S / PWM_INPUT_FREQ);

Completed in 29 milliseconds