MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / timer_print_regs

Function timer_print_regs

bsp/loongson/ls1cdev/libraries/ls1c_timer.c:191–203  ·  view source on GitHub ↗

* ��ӡtimer��ؼĴ�����ֵ * @timer_info Ӳ����ʱ�� */

Source from the content-addressed store, hash-verified

189 * @timer_info Ӳ����ʱ��
190 */
191void timer_print_regs(timer_info_t *timer_info)
192{
193 unsigned int timer_reg_base = 0;
194
195 timer_reg_base = timer_get_reg_base(timer_info->timer);
196 printf("CNTR=0x%x, HRC=0x%x, LRC=0x%x, CTRL=0x%x\n",
197 reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CNTR)),
198 reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_HRC)),
199 reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_LRC)),
200 reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)));
201
202 return ;
203}
204
205/*
206 * ��ʱ���ж���

Callers

nothing calls this directly

Calls 3

timer_get_reg_baseFunction · 0.85
reg_read_32Function · 0.70
printfFunction · 0.50

Tested by

no test coverage detected