* ��ʱ�������� * @timer_info ��ʱ����Ϣ */
| 230 | * @timer_info ��ʱ����Ϣ |
| 231 | */ |
| 232 | void timer_cnt_clr(timer_info_t *timer_info) |
| 233 | { |
| 234 | unsigned int timer_reg_base = 0; // �Ĵ�������ַ |
| 235 | unsigned int ctrl ; |
| 236 | |
| 237 | // ���� |
| 238 | if (NULL == timer_info) |
| 239 | { |
| 240 | return ; |
| 241 | } |
| 242 | timer_reg_base = timer_get_reg_base(timer_info->timer); // ��ȡ�Ĵ�������ַ |
| 243 | ctrl = reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); |
| 244 | ctrl = ctrl | (1<<LS1C_PWM_CNTR_RST); |
| 245 | reg_write_32(ctrl , (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); |
| 246 | ctrl = ctrl & (~(1<<LS1C_PWM_CNTR_RST)) ; |
| 247 | reg_write_32(ctrl , (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); |
| 248 | |
| 249 | return ; |
| 250 | } |
| 251 | |
| 252 | /* |
| 253 | * ��ʼ����ʱ��������ʼ�ж϶�ʱ |
nothing calls this directly
no test coverage detected