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

Function pwm_disable

bsp/loongson/ls1cdev/libraries/ls1c_pwm.c:62–76  ·  view source on GitHub ↗

* ��ֹpwm * @pwm_info PWMn����ϸ��Ϣ */

Source from the content-addressed store, hash-verified

60 * @pwm_info PWMn����ϸ��Ϣ
61 */
62void pwm_disable(pwm_info_t *pwm_info)
63{
64 unsigned int pwm_reg_base = 0;
65
66 // ������
67 if (NULL == pwm_info)
68 {
69 return ;
70 }
71
72 pwm_reg_base = pwm_get_reg_base(pwm_info->gpio);
73 reg_write_32(0, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_CTRL));
74
75 return ;
76}
77
78
79

Callers 1

controlFunction · 0.50

Calls 2

pwm_get_reg_baseFunction · 0.85
reg_write_32Function · 0.70

Tested by

no test coverage detected