Home
last modified time | relevance | path

Searched refs:reg_shift (Results 1 – 1 of 1) sorted by relevance

/bsp/allwinner/libraries/sunxi-hal/hal/source/pwm/
A Dhal_pwm.c370 unsigned int reg_offset, reg_shift, reg_width; in hal_pwm_control() local
494 reg_shift = channel; in hal_pwm_control()
496 value = SET_BITS(reg_shift, 1, value, 1);/* set gating */ in hal_pwm_control()
501 reg_shift = PWM_PRESCAL_SHIFT; in hal_pwm_control()
504 temp = SET_BITS(reg_shift, reg_width, temp, prescale); in hal_pwm_control()
509 reg_shift = PWM_ACT_CYCLES_SHIFT; in hal_pwm_control()
512 temp = SET_BITS(reg_shift, reg_width, temp, active_cycles); in hal_pwm_control()
517 reg_shift = PWM_PERIOD_CYCLES_SHIFT; in hal_pwm_control()
520 temp = SET_BITS(reg_shift, reg_width, temp, (entire_cycles - 1)); in hal_pwm_control()

Completed in 4 milliseconds