Searched refs:xlnx_axi_timer_write32 (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/drivers/counter/ |
D | counter_xlnx_axi_timer.c | 66 static inline void xlnx_axi_timer_write32(const struct device *dev, in xlnx_axi_timer_write32() function 87 xlnx_axi_timer_write32(dev, tcsr, TCSR0_OFFSET); in xlnx_axi_timer_start() 103 xlnx_axi_timer_write32(dev, TCSR1_DEFAULT, TCSR1_OFFSET); in xlnx_axi_timer_stop() 105 xlnx_axi_timer_write32(dev, TCSR0_DEFAULT, TCSR0_OFFSET); in xlnx_axi_timer_stop() 153 xlnx_axi_timer_write32(dev, cfg->ticks, TLR1_OFFSET); in xlnx_axi_timer_set_alarm() 154 xlnx_axi_timer_write32(dev, TCSR1_DEFAULT | TCSR_LOAD, TCSR1_OFFSET); in xlnx_axi_timer_set_alarm() 164 xlnx_axi_timer_write32(dev, TCSR1_DEFAULT | tcsr, TCSR1_OFFSET); in xlnx_axi_timer_set_alarm() 180 xlnx_axi_timer_write32(dev, TCSR1_DEFAULT, TCSR1_OFFSET); in xlnx_axi_timer_cancel_alarm() 223 xlnx_axi_timer_write32(dev, cfg->ticks, TLR0_OFFSET); in xlnx_axi_timer_set_top_value() 226 xlnx_axi_timer_write32(dev, tcsr | TCSR_LOAD, TCSR0_OFFSET); in xlnx_axi_timer_set_top_value() [all …]
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_xlnx_axi_timer.c | 56 static inline void xlnx_axi_timer_write32(const struct device *dev, in xlnx_axi_timer_write32() function 142 xlnx_axi_timer_write32(dev, TCSR_PWM, TCSR0_OFFSET); in xlnx_axi_timer_set_cycles() 143 xlnx_axi_timer_write32(dev, TCSR_PWM, TCSR1_OFFSET); in xlnx_axi_timer_set_cycles() 146 xlnx_axi_timer_write32(dev, tlr0, TLR0_OFFSET); in xlnx_axi_timer_set_cycles() 147 xlnx_axi_timer_write32(dev, TCSR_PWM | TCSR_LOAD, TCSR0_OFFSET); in xlnx_axi_timer_set_cycles() 150 xlnx_axi_timer_write32(dev, tlr1, TLR1_OFFSET); in xlnx_axi_timer_set_cycles() 151 xlnx_axi_timer_write32(dev, TCSR_PWM | TCSR_LOAD, TCSR1_OFFSET); in xlnx_axi_timer_set_cycles() 157 xlnx_axi_timer_write32(dev, tcsr0, TCSR0_OFFSET); in xlnx_axi_timer_set_cycles() 158 xlnx_axi_timer_write32(dev, tcsr1, TCSR1_OFFSET); in xlnx_axi_timer_set_cycles()
|