Searched refs:PWM_REG (Results 1 – 1 of 1) sorted by relevance
/Zephyr-Core-3.6.0/drivers/pwm/ |
D | pwm_sifive.c | 21 #define PWM_REG(z_config, _offset) ((mem_addr_t) ((z_config)->base + _offset)) macro 87 sys_set_bit(PWM_REG(config, REG_PWMCFG), SF_PWMZEROCMP); in pwm_sifive_init() 90 sys_set_bit(PWM_REG(config, REG_PWMCFG), SF_PWMENALWAYS); in pwm_sifive_init() 93 sys_clear_bit(PWM_REG(config, REG_PWMCFG), SF_PWMSTICKY); in pwm_sifive_init() 94 sys_clear_bit(PWM_REG(config, REG_PWMCFG), SF_PWMDEGLITCH); in pwm_sifive_init() 99 sys_write32(0, PWM_REG(config, REG_PWMCMP(i))); in pwm_sifive_init() 102 sys_clear_bit(PWM_REG(config, REG_PWMCFG), SF_PWMCMPCENTER(i)); in pwm_sifive_init() 103 sys_clear_bit(PWM_REG(config, REG_PWMCFG), SF_PWMCMPGANG(i)); in pwm_sifive_init() 162 sys_set_mask(PWM_REG(config, REG_PWMCFG), in pwm_sifive_set_cycles() 167 sys_write32((period_cycles >> pwmscale), PWM_REG(config, REG_PWMCMP0)); in pwm_sifive_set_cycles() [all …]
|