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

Function timer_stop

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

* ֹͣ��ʱ�� * @timer_info ��ʱ�� */

Source from the content-addressed store, hash-verified

141 * @timer_info ��ʱ��
142 */
143void timer_stop(timer_info_t *timer_info)
144{
145 unsigned int timer_reg_base = 0;
146
147 // ����
148 if (NULL == timer_info)
149 {
150 return ;
151 }
152
153 timer_reg_base = timer_get_reg_base(timer_info->timer);
154 reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL));
155
156 return ;
157}
158
159/*
160 * ��ȡ��ʱ���ӳ�ʼ�������ڵ�ʱ��(ʵ�ּ�ʱ����)����λns

Callers

nothing calls this directly

Calls 2

timer_get_reg_baseFunction · 0.85
reg_write_32Function · 0.70

Tested by

no test coverage detected