* ֹͣ��ʱ�� * @timer_info ��ʱ�� */
| 141 | * @timer_info ��ʱ�� |
| 142 | */ |
| 143 | void 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 |
nothing calls this directly
no test coverage detected